Skip to content

Commit abc74f1

Browse files
authored
Merge pull request #4703 from NativeScript/fatme/enable-source-maps
fix: enable source maps by default
2 parents 66fa28b + 6ef6998 commit abc74f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/services/webpack/webpack-compiler-service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
139139

140140
envData.verbose = this.$logger.isVerbose();
141141
envData.production = prepareData.release;
142+
if (prepareData.env.sourceMap === false || prepareData.env.sourceMap === 'false') {
143+
delete envData.sourceMap;
144+
} else if (!prepareData.release) {
145+
envData.sourceMap = true;
146+
}
142147

143148
return envData;
144149
}

0 commit comments

Comments
 (0)