An ESBuild plugin that enables TypeScript decorator support during bundling. Version 0.4.0 compiles decorators using SWC under the hood, preserving semantics while maintaining fast build speeds. It integrates as an esbuild plugin with no config changes beyond registration. Key differentiators: leverages SWC's stable decorator transform, supports both legacy and TC39 stage 3 decorators, and works alongside other ESBuild plugins. Updated irregularly.
Verified import paths — ran on the pinned version, not inferred.
Default export only. ESBuild plugins are often loaded via ESM default import.
The package has a default export. Name your import anything you like.
Type import for configuration options. Exported as a named type.
Shows how to register the decorator plugin with esbuild, specifying the tsconfig path and decorator version (legacy for TypeScript <5.0, tc39 for modern).
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.