First import defineProps
and defineEmit
, compilation result exception
#3088
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
Version
Reproduction link
https://github.com/zce/compiler-sfc-issue
Steps to reproduce
$ npm init @vitejs/app my-app $ cd myapp $ npm install
./src/components/HelloWorld.vue
What is expected?
Uncaught SyntaxError: Unexpected token ','
The compiled module code:
What is actually happening?
This exception should not occur
Change the import order to return to normal.
As long as they are not imported first
The text was updated successfully, but these errors were encountered: