swc-project / swc-node

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

fix(core): respect sourceMaps swcrc value #742

Closed dsyddall closed 7 months ago

dsyddall commented 7 months ago

Fixes #741

When using a .swcrc file, the sourceMaps setting is ignored and always set as "inline" in the SWC config.

This PR fixes the issue by leaving sourceMaps undefined in the SWC config, so that the value from the .swcrc file takes effect.