-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update tsDecorators to use TS 5 transform output #86
Comments
I'm not sure the referenced issue is going to be closed out however Evan posted this update stating parsing decorators was working: evanw/esbuild#104 (comment) I have also patched this package with |
I've been using this without issue since posting the prior comment. Any interest in a PR to get this into the plugin? |
Looking into this further, the latest versions of SWC do not require specifying the decorator support version. They have moved to Stage 3 as the default decorator version and have introduced new options to switch back to legacy TS decorators. So, updating to the latest SWC and adjusting the documentation would be a way forward. |
I was waiting for a stable lowering of the new spec to ship in esbuild to change the behaviour of the plugin, so that people can use them in dev and don't need to bump to much they prod target. Edit: https://github.com/evanw/decorator-tests was updated 2 days ago, I hope Evan will find a implementation that he is ok to ship to esbuild! |
update: it's shipped in esbuild |
Yep I saw that, I'll look at a new API for the plugin once 0.21 is shipped by Vite |
Requires evanw/esbuild#104
The text was updated successfully, but these errors were encountered: