-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Vue SFC: Duplicate export of 'default' #595
Labels
Comments
Thanks for the fix @underfin! ❤️ I was also experiencing the same edge case in your vite-plugin-vue2 if you have a chance to look into it! |
Yeah.I will fix it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When the default export of a Vue SFC is written as
export { HelloWorld as default }
the following error occurs:Uncaught SyntaxError: Duplicate export of 'default'
. I think that a fix might be related to commit 59938bc.Reproduction
Let me know if you need a reproducer...
System Info
vite
version:v1.0.0-rc.3
Windows 10
v14.4.0
yarn v1.22.4
vue
version (fromyarn.lock
orpackage-lock.json
):3.0.0-rc.4
@vue/compiler-sfc
version:3.0.0-rc.4
Logs (Optional if provided reproduction)
This is the output of the rewrite of
components/HelloWorld.vue
The text was updated successfully, but these errors were encountered: