Open KevinGruber opened 1 month ago
Hi,
Currently there is no way to configure swc. SWC is being used under the hood instead of rebuild when experimentalDecorators are being used.
swc
Because of a weird behaviour in SWC we need to set the loose attribute so that it removes an undefined class property from the compiled output.
loose
Currently I don't see any possibility to provide/change the swc config. https://github.com/egoist/tsup/blob/00188a0dc848c48fac45de245d1e021f370a84a3/src/esbuild/swc.ts#L31
Maybe I am just overlooking something. It should reconfigurable to be a valid option to be used IMO.
BR, Kev
Hi,
Currently there is no way to configure
swc
. SWC is being used under the hood instead of rebuild when experimentalDecorators are being used.Because of a weird behaviour in SWC we need to set the
loose
attribute so that it removes an undefined class property from the compiled output.Currently I don't see any possibility to provide/change the swc config. https://github.com/egoist/tsup/blob/00188a0dc848c48fac45de245d1e021f370a84a3/src/esbuild/swc.ts#L31
Maybe I am just overlooking something. It should reconfigurable to be a valid option to be used IMO.
BR, Kev
Upvote & Fund