From 61020528325a90c403a0a2a46dbbb0c235dbd370 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Fri, 25 Sep 2020 15:25:54 -0700 Subject: [PATCH] Revert "chore: don't hold sourcemap reference in prod build (#3959)" (#3979) I like my tests showing TS source lines more! --- tsconfig.json | 1 + utils/watch.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 8bc42e7be4..8b6528ed5a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "ESNext", "module": "commonjs", "lib": ["esnext", "dom", "DOM.Iterable"], + "sourceMap": true, "rootDir": "./src", "outDir": "./lib", "strict": true, diff --git a/utils/watch.js b/utils/watch.js index 4faa93f085..5ea01ad09b 100644 --- a/utils/watch.js +++ b/utils/watch.js @@ -20,7 +20,7 @@ const fs = require('fs'); const spawns = [ child_process.spawn('node', [path.join(__dirname, 'runWebpack.js'), '--mode="development"', '--watch', '--silent'], { stdio: 'inherit', shell: true }), - child_process.spawn('npx', ['tsc', '-w', '--preserveWatchOutput', '--sourceMap', '-p', path.join(__dirname, '..')], { stdio: 'inherit', shell: true }), + child_process.spawn('npx', ['tsc', '-w', '--preserveWatchOutput', '-p', path.join(__dirname, '..')], { stdio: 'inherit', shell: true }), ]; process.on('exit', () => spawns.forEach(s => s.kill()));