From 41289bf895eab8ee590288d232ccb1ddaf589a6b Mon Sep 17 00:00:00 2001 From: TanninOne Date: Wed, 16 May 2018 11:28:44 +0200 Subject: [PATCH] fixed source map support in development --- tsconfig.json | 4 ++-- webpack.renderer.config.js | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1a35d3404..49673fdd6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,8 @@ "preserveConstEnums": true, "rootDir": "./src", "outDir": "./out", - "sourceMap": true, - "mapRoot": "/", + "inlineSourceMap": true, + "inlineSources": true, "skipLibCheck": true, "jsx":"react" }, diff --git a/webpack.renderer.config.js b/webpack.renderer.config.js index d95c124c1..e0ad584b5 100644 --- a/webpack.renderer.config.js +++ b/webpack.renderer.config.js @@ -19,6 +19,13 @@ module.exports = { test: /\.tsx?$/, loader: 'ts-loader', exclude: /node_modules/, + options: { + compilerOptions: { + sourceMap: true, + inlineSourceMap: false, + inlineSources: false, + } + } }, ] },