feat: use source-map devtool on dev builds

This commit is contained in:
2025-05-18 13:37:37 -04:00
parent 894a4de6f1
commit 685fc8d766

View File

@@ -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',