rollup-plugin-swc
rollup-plugin-swc copied to clipboard
Remove experimental decorators check from SWC config
In current code we are enabling decorators using experimentalDecorators check from tsconfig. This is no longer needed since TypeScript 5 supports decorators stage 3 proposal without a flag. Additionally experimentalDecorators flag enables the legacy decorators and SWC now supports decorators stage 3 proposal as of version 1.3.47 (See: https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion).
I will be raising a pull request for proposed changes. Let me know your thoughts.
That makes sense. Looking forward to your PR!
@scssyworks Hello, are you still planning to create the PR for your proposal?
Also, should we detect whether a user is using TypeScript 5, to avoid the breaking change?