Closed NyanHelsing closed 1 year ago
i think maybe it needs to be supported in deno_ast here: https://github.com/denoland/deno_ast/blob/570007eb9cb62b527c43a355dc41db3ccfb72af8/src/transpiling/mod.rs#L309-L341 I'm not seeing where i can add in a transform via config.
This is out of scope for deno_emit. I'd recommend using swc directly.
swc supports plugins, so that the way the input is transformed can be customized.
Id like to be able to do this transform, for example this plugin can be compiled to wasm32-unknown-unknown and be passed as a plugin to swc-cli in node, and I'd prefer to call it from deno.:
It would also be very cool if deno looked for a .swcrc file in the directory the path points at and any parent directories up to and including the directory of the first deno.json found.