Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of Vue components with values #5

Open
akaptur opened this issue Apr 17, 2021 · 0 comments
Open

Parsing of Vue components with values #5

akaptur opened this issue Apr 17, 2021 · 0 comments
Labels
bug Something isn't working parsing Bugs in the parsing stage

Comments

@akaptur
Copy link
Owner

akaptur commented Apr 17, 2021

The parser errors on Vue components with values in the components object. Example from posed of a file that cannot be parsed today:

<template>
  <Box :pose="isVisible ? 'visible' : 'hidden'" />
</template>

<script>
import posed from 'vue-pose';

export default {
  props: ['isVisible'],
  components: {
    Box: posed.div({
      visible: { opacity: 1 },
      hidden: { opacity: 0 }
    })
  }
};
</script>

As with #3, it's possible that the easiest path forward here is to swap out the parser with something from Vue's internals.

@akaptur akaptur added bug Something isn't working parsing Bugs in the parsing stage labels Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parsing Bugs in the parsing stage
Projects
None yet
Development

No branches or pull requests

1 participant