sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.09k stars 126 forks source link

fix(node): add __filename polyfill #554

Closed leon closed 2 weeks ago

leon commented 2 weeks ago

to get support for typescript emitDecoratorMetadata, the need to use typescript (or swc) from esbuild was needed.

but when I tried to transpileModule from esbuild plugin, it is run from within the eval***.mjs file, wich is ESM and typescript did not like that and needs __filename.

related to #396