0.2.4 • Published 26 days ago

@nailyjs/babel-plugin-reflection v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

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