From cceb1a7a1f7945c6975f22bf28280b83e2cc8297 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 26 Sep 2022 19:13:03 +0200 Subject: [PATCH] Fix sourcemap --- webpack.config.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 1f4a90f..a0373f4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,8 +12,10 @@ module.exports = (env, argv) => ({ entry: { index: './src/index.ts', }, + watchOptions: { + ignored: '**/node_modules', + }, optimization: { - minimize: true, minimizer: [ new TerserPlugin({ terserOptions: { @@ -104,15 +106,17 @@ module.exports = (env, argv) => ({ test: /\.ts$/, use: [ 'ts-loader', - { - // for removing whitespace (mainly from template strings) which are not part of comments - loader: 'string-replace-loader', - options: { - search: /(?