Note: only one of sourceMap or inlineSourceMap can be on at the same time in tsconfig, so this checks for inline, and if not set falls back to evaluating the sourceMap opiton.
on snapshot update
The snapshot is now correct. The correct line for the error is 30:5:
Error: ␊
at /packages/integrate/__tests__/sourcemaps/sourcemaps.spec.ts:30:5␊
This error is thrown in line 30 here:
Would you like me to work on a dedicated test for testing inlineSourceMap? Didn't naturally fit into the current test suite, but could definitely whip something up.
Fixes https://github.com/swc-project/swc-node/issues/848 Improves upon the original fix in https://github.com/swc-project/swc-node/pull/726 that broke the source maps for non inline cases.
Note: only one of sourceMap or inlineSourceMap can be on at the same time in tsconfig, so this checks for inline, and if not set falls back to evaluating the sourceMap opiton.
on snapshot update
The snapshot is now correct. The correct line for the error is 30:5:
This error is thrown in line 30 here:
Would you like me to work on a dedicated test for testing inlineSourceMap? Didn't naturally fit into the current test suite, but could definitely whip something up.