chore: don't hold sourcemap reference in prod build (#3959)
This commit is contained in:
parent
967f3b7505
commit
6d5ab534d9
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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()));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue