Compatible typescript decorators (with parameter decorators).
Using npm:
npm install --save-dev babel-plugin-typescript-decoratorsor using yarn:
yarn add --dev babel-plugin-typescript-decorators{
"presets": [
["@babel/preset-typescript", { "onlyRemoveTypeImports": true }]
],
"plugins": ["babel-plugin-typescript-decorators"]
}babel --plugins babel-plugin-typescript-decorators script.jsrequire("@babel/core").transformSync("code", {
plugins: ["babel-plugin-typescript-decorators"]"],
});Fork from @babel/plugin-proposal-decorators and inspired by babel-plugin-parameter-decorator