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

Support decorators in .vue files. #3842

Closed
ruojianll opened this issue Jul 24, 2024 · 1 comment
Closed

Support decorators in .vue files. #3842

ruojianll opened this issue Jul 24, 2024 · 1 comment

Comments

@ruojianll
Copy link

In newest npm create vue@latest project, we could use decorators after set "experimentalDecorators": true in standalone .ts files. But it couldn't be transformed in .vue files in <script lang="ts"></script>.

I don't know if it's an esbuld issue, could you give me some advices?

vitejs/vite-plugin-vue#430

@evanw
Copy link
Owner

evanw commented Jul 24, 2024

Sorry, esbuild has nothing to do with Vue. The content types that esbuild supports are here: https://esbuild.github.io/content-types/. You'll notice that the Vue language is not listed. Decorators are supported in JavaScript and TypeScript, so if Vue uses esbuild to transform JavaScript and/or TypeScript then decorators should work (assuming the target has been configured correctly). But that's up to Vue to make use of. That's not a problem with esbuild.

I'm closing this issue because it's out of scope.

@evanw evanw closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
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

No branches or pull requests

2 participants