| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| decoratorMetadata: emitDecoratorMetadata, | ||
| legacyDecorator: true, | ||
| legacyDecorator: experimentalDecorators, | ||
| decoratorVersion: experimentalDecorators ? '2021-12' : '2022-03', |
There was a problem hiding this comment.
| decoratorVersion: experimentalDecorators ? '2021-12' : '2022-03', | |
| decoratorVersion: experimentalDecorators ? '2021-12' : '2023-11', |
Sorry, something went wrong.
There was a problem hiding this comment.
Where did you get that 2023-11 from? SWC doesn't have that option: https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
Sorry, something went wrong.
There was a problem hiding this comment.
Where did you get that 2023-11 from? SWC doesn't have that option: https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
I saw this value in SWC error message & Babel document, maybe it hasn't been implemented.
Sorry, something went wrong.
There was a problem hiding this comment.
no it hasn't
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Since TypeScript 5.0, stage 3 decorators had become the default while experimentalDecorators had become the legacy standard. However, with SWC enabled, ts-node doesn't work correctly with stage 3 decorators. This PR fixes the config pass to SWC to make it things work as it should.
Note: This part of the SWC config has been there since v1.3.47, so there's no need the change the dependency specifications.