vitejs / vitejs/vite-plugin-react
Support TC39 decorators (TS 5, esbuild 0.21, Vite 5.3)
Open
@ArnaudBarre is already working on this.
Since Apr 12, 2023.
breaking change
plugin: react-swc
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 269
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 19
Description
Update: Support for TC39 decorators has been shipped in esbuild 0.21, included in Vite 5.3.
SWC support is still not fully there, see https://github.com/swc-project/swc/pull/9488
As the goal of this plugin was since the beginning to enforce good practice and be transpiler agnostic (OXC is coming 👀), I'm still waiting before adding support to the plugin.
In the meantime, you can easily patch the library if you want to opt-in into the use of an unstable feature
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.