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",
"module": "commonjs",
"lib": ["esnext", "dom", "DOM.Iterable"],
"sourceMap": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,

View File

@ -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()));