Navigation Menu

Skip to content
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 #12745

Closed
linshuohao opened this issue Aug 16, 2022 · 0 comments · Fixed by #12747
Closed

use decorator before export default may cause compilation problems #12745

linshuohao opened this issue Aug 16, 2022 · 0 comments · Fixed by #12747

Comments

@linshuohao
Copy link
Contributor

linshuohao commented Aug 16, 2022

Version

2.7.8

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

@Component
export default class App extends Vue {
  a = `;export xxx default`;
}

into

@Component
class App extends Vue {
  a = `;export xxx default`;
}
const ${as} = App

so that vite can work correctly

What is actually happening?

same as vuejs/core#6318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant