swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.72k stars 71 forks source link

Problem with sourcemaps #681

Closed erfanium closed 1 year ago

erfanium commented 1 year ago

when tsconfig.json is

  "sourceMap": true,
  "inlineSourceMap": true

vscode debugger breakpoints works fine, but the errors stack traces are not correct becuase source maps are inline and have not been registered.

then when I change tsconfig.json to

  "sourceMap": true,
  "inlineSourceMap": false

Now errors stack traces back to working. but vscode debugger breakpoints has problem with it.

I migrate back to ts-node --swc because of this How should I fix it?