This PR allows legacy decorators to work with strict class fields, which are now stage 3 and have shipped in a number of browsers. Allowing this will allow users of the legacy transform (which is currently recommended by the champions of the decorator proposal) to use the proper class field semantics for non-decorated fields, which should help prevent breakage later on. This change is not a breaking change, since users had to explicitly opt into loose mode in class fields before. This just gives them the option to remove that opt-in.
@babel/plugin-transform-typescript
Transform TypeScript into ES.next
See our website @babel/plugin-transform-typescript for more information.
Install
Using npm:
npm install --save-dev @babel/plugin-transform-typescript
or using yarn:
yarn add @babel/plugin-transform-typescript --dev