Skip to content

Commit 8971381

Browse files
authored
[compiler] Enable sourceMaps in tsconfig (#30064)
With this, we can set a `debugger` breakpoint and we'll break into the source code when running tests with snap. Without this, we'd break into the transpiled js code.
1 parent f5d2feb commit 8971381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/packages/snap/src/runner-watch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function watchSrc(
2727
const host = ts.createWatchCompilerHost(
2828
configPath,
2929
ts.convertCompilerOptionsFromJson(
30-
{ module: "commonjs", outDir: "dist" },
30+
{ module: "commonjs", outDir: "dist", sourceMap: true },
3131
"."
3232
).options,
3333
ts.sys,

0 commit comments

Comments
 (0)