Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Max Schmitt6d5ab534d9a6
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()));