chore: don't hold sourcemap reference in prod build (#3959)

This commit is contained in:
Max Schmitt 2020-09-24 07:19:45 +02:00 committed by GitHub
parent 967f3b7505
commit 6d5ab534d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -3,7 +3,6 @@
"target": "ESNext", "target": "ESNext",
"module": "commonjs", "module": "commonjs",
"lib": ["esnext", "dom", "DOM.Iterable"], "lib": ["esnext", "dom", "DOM.Iterable"],
"sourceMap": true,
"rootDir": "./src", "rootDir": "./src",
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View file

@ -20,7 +20,7 @@ const fs = require('fs');
const spawns = [ const spawns = [
child_process.spawn('node', [path.join(__dirname, 'runWebpack.js'), '--mode="development"', '--watch', '--silent'], { stdio: 'inherit', shell: true }), 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())); process.on('exit', () => spawns.forEach(s => s.kill()));