From 685fc8d7667a2d4ee7a6f46eba42ac6a197d102a Mon Sep 17 00:00:00 2001 From: rapture-party Date: Sun, 18 May 2025 13:37:37 -0400 Subject: [PATCH] feat: use source-map devtool on dev builds --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 151bb28..8117b8d 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,9 +22,10 @@ const defines = { __VERSION__: JSON.stringify(package.version), } -module.exports = [ +module.exports = (env, argv) => [ // WebExtension { + devtool: argv.mode === 'production' ? false : 'source-map', entry: { content: './src/content/content.ts', background: './src/background/background.ts',