rollup-plugin-swc icon indicating copy to clipboard operation
rollup-plugin-swc copied to clipboard

Remove experimental decorators check from SWC config

Open scssyworks opened this issue 2 years ago • 2 comments

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.

scssyworks avatar Jul 18 '23 16:07 scssyworks

That makes sense. Looking forward to your PR!

SukkaW avatar Jul 19 '23 05:07 SukkaW

@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?

SukkaW avatar Jul 28 '23 15:07 SukkaW