Disable source maps for prod extension build (#1289)

This commit is contained in:
Nathan Bierema 2022-12-04 19:04:06 -05:00 committed by GitHub
parent 6436116048
commit 92f13ed730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = function (env) { module.exports = function (env) {
return { return {
mode: env.production ? 'production' : 'development', mode: env.production ? 'production' : 'development',
devtool: env.production ? 'source-map' : 'eval-source-map', devtool: env.production ? undefined : 'eval-source-map',
entry: { entry: {
background: [ background: [
path.resolve(__dirname, 'src/chromeApiMock'), path.resolve(__dirname, 'src/chromeApiMock'),