huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
859 stars 28 forks source link

feat: support ts decorator #521

Closed himself65 closed 2 months ago

huozhi commented 2 months ago

There're few versions in swc's decorator config, 2022-03 is marked as legacy decorator. I think it's better to support this when the synax is stable

huozhi commented 2 months ago

One way to opt-in the decorator behavior is to use TypeScript, and enable experimentalDecorators, bunchee can still compile the decorators. Will still keep JS compilation for supported final stage syntaxes