We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d05dae + 91415e9 commit 3c2195fCopy full SHA for 3c2195f
lib/services/webpack/webpack-compiler-service.ts
@@ -138,7 +138,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
138
139
envData.verbose = this.$logger.isVerbose();
140
envData.production = prepareData.release;
141
- if (prepareData.env.sourceMap === false || prepareData.env.sourceMap === 'false') {
+ if (prepareData.env && (prepareData.env.sourceMap === false || prepareData.env.sourceMap === 'false')) {
142
delete envData.sourceMap;
143
} else if (!prepareData.release) {
144
envData.sourceMap = true;
0 commit comments