Package Exports
- babel-plugin-transform-typescript-metadata
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-transform-typescript-metadata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-plugin-transform-typescript-metadata
Babel plugin to emit decorator metadata like typescript compiler
Installation
With npm:
npm install --dev --save babel-plugin-transform-typescript-metadata
or with Yarn:
yarn add --dev babel-plugin-transform-typescript-metadata
Usage
With .babelrc
:
Note: should be placed before
@babel/plugin-proposal-decorators
.
{
"plugins": [
"babel-plugin-transform-typescript-metadata",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
],
"presets": [
"@babel/preset-typescript"
]
}