From 6d5ab534d9a64897c163fab2ced479a884c1c07d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 24 Sep 2020 07:19:45 +0200 Subject: [PATCH] chore: don't hold sourcemap reference in prod build (#3959) --- tsconfig.json | 1 - utils/watch.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 8b6528ed5a..8bc42e7be4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "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 5ea01ad09b..4faa93f085 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', '-p', path.join(__dirname, '..')], { stdio: 'inherit', shell: true }), + child_process.spawn('npx', ['tsc', '-w', '--preserveWatchOutput', '--sourceMap', '-p', path.join(__dirname, '..')], { stdio: 'inherit', shell: true }), ]; process.on('exit', () => spawns.forEach(s => s.kill()));