Skip to content

Parsing of Vue components with values #5

Description

@akaptur

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsingBugs in the parsing stage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions