An esbuild plugin for TypeScript decorator metadata (emitDecoratorMetadata and experimentalDecorators). Current stable version 1.0.0, maintained on GitHub by reconbot. It handles the tsconfig setting `emitDecoratorMetadata: true` by inspecting .ts files for decorators and transpiling them with the TypeScript compiler, since esbuild does not natively support TypeScript experimental decorators. Releases are infrequent; the plugin is a fork of the anatine organization's esbuildnx plugin with fixed peer dependencies and ESM/CJS module support. Alternatives include `esbuild-plugin-decorator` and `esbuild-decorators-loader`, but this package focuses on simplicity and direct tsconfig integration.
Verified import paths — ran on the pinned version, not inferred.
Only named export. Default import is not available.
CJS require with destructuring because the module exports a named object.
TypeScript type export for the plugin options interface.
Shows how to integrate the plugin into an esbuild build, passing the tsconfig and optional options.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.