We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
methods
Following is my code,
// MyButton.vue <template> <p>Segment: {{ segment() }}</p> </template> <script> export default { name: 'MyButton', methods: { segment() { return <b>A segment</b>; } } }; </script>
build output as es-module. Last, I got error when using it, the error:
Help me, plz~
The text was updated successfully, but these errors were encountered:
the vite plugin process vue is [email protected]
[email protected]
Sorry, something went wrong.
That's OK if drop the template block and use render function property:
render
<script> export default { methods: { segment () { return <b>A segment</b> } }, render () { return ( <p>Segment: { this.segment() }</p> ) } } </script>
But I must support the template jsx...
@sodatea Sorry to bother you, take a look at my issue plz, THX!
No branches or pull requests
Env
What happened
Following is my code,
build output as es-module. Last, I got error when using it, the error:
Help me, plz~
The text was updated successfully, but these errors were encountered: