swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.69k stars 69 forks source link

fix(register): inline sourcemap #708

Closed robbiespeed closed 1 year ago

robbiespeed commented 1 year ago

Fixes #697, passes along inlineSourceMap to swc when specified in tsconfig.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

robbiespeed commented 1 year ago

@Brooooooklyn it looks like this fixing a regression from this commit 9802700778807d09450daa47f1dc641b2d7ef107. I don't think inputSourceMap: options.inlineSourceMap, is necessary. I could be wrong but from my understanding inputSourceMap is used for reading sourcemaps from input files not inlining them in the output (https://swc.rs/docs/usage/core#options).