Skip to content

Commit

Permalink
fix(compile): don't create widget sourcemaps if sourcemaps are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Jun 15, 2021
1 parent beec1fc commit b1259b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alloy/commands/compile/compilerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ exports.copyWidgetResources = function(resources, resourceDir, widgetId, opts) {
path.relative(compilerConfig.dir.project, dest).yellow + '...');
U.copyFileSync(source, dest);

if (path.extname(source) === '.js') {
if (path.extname(source) === '.js' && compilerConfig.sourcemap) {
sourceMapper.generateSourceMap({
target: {
filename: file,
Expand Down

0 comments on commit b1259b1

Please sign in to comment.