From 47a05fb4ba277c2eebd4c0fcf20818f9be9c0c7d Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 24 Jun 2020 23:13:32 +0100 Subject: [PATCH] Tools: Fixed build --- gulpfile.js | 2 +- tsconfig.dev.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tsconfig.dev.json diff --git a/gulpfile.js b/gulpfile.js index d8b671ec4..3be54374c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -45,7 +45,7 @@ gulp.task('watch', function() { // For watching, we use the actual tsc tool because it's more robust and // doesn't crash when there's an error - const promise = execa('node', ['node_modules/typescript/bin/tsc', '--watch', '--project', 'tsconfig.json'], { cwd: `${__dirname}` }); + const promise = execa('node', ['node_modules/typescript/bin/tsc', '--watch', '--project', 'tsconfig.dev.json'], { cwd: `${__dirname}` }); promise.stdout.pipe(process.stdout); }); diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 000000000..281071c6e --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + // There's currently a bug in Electron that makes it fail to load the source maps + // (it tries to load them from the root of the app even though they are in + // sub-folders). So to have source maps anyway in dev, we use inline source maps. + // https://github.com/electron/electron/issues/22996 + "sourceMap": false, + "inlineSourceMap": true + } +} \ No newline at end of file