@nailyjs/babel-plugin-reflection
v0.2.4
Published
The ultimate reflection typings for TypeScript 5.x's stage 3 decorators
Downloads
9
Maintainers
Readme
Naily Reflection
The untimate reflection typings for TypeScript 5.x's stage 3 decorators.
基于 TypeScript 5.x 的 stage 3 装饰器的类型反射库
Installation
Must have babel, typescript installed, and @babel/preset-typescript
preset、@babel/plugin-proposal-decorators
plugin, and install the following packages:
npm install @nailyjs/babel-plugin-reflection babel-plugin-transform-typescript-metadata
babel-plugin-transform-typescript-metadata
will emit the typescript original metadata.
How to use
Configure your babel options:
{
"presets": ["@babel/preset-typescript"],
"plugins": [
"@nailyjs/babel-plugin-reflection",
"babel-plugin-transform-typescript-metadata",
["@babel/plugin-proposal-decorators", { "version": "2023-11" }]
]
}
License
MIT