From 006d98edbd74a8fb49795a4eaa65003011c64a9b Mon Sep 17 00:00:00 2001 From: Jim Doyle Date: Wed, 6 Sep 2017 08:31:09 +1000 Subject: [PATCH 1/2] Source maps slows down test-watch too much, so just keep source maps for 'single run' test --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 93e0ced9..78924258 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,7 +35,9 @@ module.exports = function makeWebpackConfig() { config.devtool = 'source-map'; } else if (isTest) { - config.devtool = 'inline-source-map'; + if(!isTestWatch) { // source maps slows down test-watch too much, so just keep source maps for 'single run' test + config.devtool = 'inline-source-map'; + } } else { config.devtool = 'eval-source-map'; From 1069f40a80b6906900502b76c36129000dacbc84 Mon Sep 17 00:00:00 2001 From: Jim Doyle Date: Fri, 13 Oct 2017 16:05:48 +1100 Subject: [PATCH 2/2] Restricted tslint-loader to src to avoid it looking in node_modules --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 78924258..9d56143b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -149,6 +149,7 @@ module.exports = function makeWebpackConfig() { config.module.rules.push({ test: /\.ts$/, enforce: 'pre', + include: path.resolve('src'), loader: 'tslint-loader' }); }