From 23cc204dc433f642a9fd87b56080985041ddd88f Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Fri, 17 Apr 2020 16:26:10 +0530 Subject: [PATCH] fix(#29): source map issue --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 4a00946..5a27812 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -46,6 +46,8 @@ const getExtensionFileType = (browser) => { }; module.exports = { + devtool: false, // https://github.com/webpack/webpack/issues/1194#issuecomment-560382342 + mode: nodeEnv, entry: { @@ -118,6 +120,8 @@ module.exports = { plugins: [ // Plugin to not generate js bundle for manifest entry new WextManifestWebpackPlugin(), + // Generate sourcemaps + new webpack.SourceMapDevToolPlugin({filename: false}), new ForkTsCheckerWebpackPlugin(), // environmental variables new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),