@samitouri / QOS-React / commits / 8971381549

[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.

Sathya Gunasekaran committed Jun 25, 2024 at 17:01 UTC 8971381549a80d476b07639833e6b38eaaa75a40
1 file changed +1 -1
compiler/packages/snap/src/runner-watch.ts
+1 -1
@@ -27,7 +27,7 @@ export function watchSrc(
27 const host = ts.createWatchCompilerHost(
28 configPath,
29 ts.convertCompilerOptionsFromJson(
30 - { module: "commonjs", outDir: "dist" },
30 + { module: "commonjs", outDir: "dist", sourceMap: true },
31 "."
32 ).options,
33 ts.sys,