Skip to content

Commit 8b247ca

Browse files
committed
Updated TS config to fix debugging
It seems that, if you have "inlineSourceMap": true in your tsconfig, this means that your source maps are embedded directly within the generated JavaScript files as a data URI rather than being written out as separate .map files. This can be helpful in some cases, but it might cause issues if you're also using external source maps (sourcemap: true in tsup), leading to confusion in your debugger.
1 parent 8f6f466 commit 8b247ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tsconfig.shared.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
/* Source Map Options */
6363
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
6464
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
65-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
66-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
65+
"inlineSourceMap": false /* Emit a single file with source maps instead of having a separate file. */,
66+
"inlineSources": true /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */,
6767

6868
/* Experimental Options */
6969
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */

0 commit comments

Comments
 (0)