-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
use decorator before export default may cause compilation problems #6318
Comments
I can both confirm this issue, as well as that the fix in #6320 works. See also this StackOverflow question for more context: |
hykilpikonna
added a commit
to youquzhiji/voice-tools-web
that referenced
this issue
Jul 25, 2022
yyx990803
pushed a commit
that referenced
this issue
Aug 18, 2022
chrislone
pushed a commit
to chrislone/core
that referenced
this issue
Feb 4, 2023
This was referenced Jul 27, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.37
Reproduction link
stackblitz.com
Steps to reproduce
After open the above reproduction, you will see the console shows the error: [vite] Internal server error: Cannot overwrite across a split point
What is expected?
rewriteDefault can transform
into
so that vite can work correctly
What is actually happening?
when the script still contains
default export
, and fallback to a full parse."@babel/parser" parse
to
node.start
is larger thannode.declaration.start
, that cause compilation problemThe text was updated successfully, but these errors were encountered: