Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 88ded47

Browse files
ChadKillingsworthDominator008
authored andcommitted
Fix a bug which was passing input source maps in on a misnamed property (#34)
1 parent 44ee97f commit 88ded47

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/gulp/concat-to-json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function json_file(src, path, source_map) {
3333
}
3434

3535
if (source_map) {
36-
filejson.source_map = source_map;
36+
filejson.sourceMap = source_map;
3737
}
3838

3939
return filejson;

lib/gulp/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ module.exports = function(initOptions) {
182182
outputFiles[i].sourceMap = undefined;
183183

184184
for (var j = 0; j < jsonFiles.length; j++) {
185-
if (!jsonFiles[j].source_map) {
185+
if (!jsonFiles[j].sourceMap) {
186186
continue;
187187
}
188188
generator.applySourceMap(
189-
new SourceMapConsumer(jsonFiles[j].source_map),
189+
new SourceMapConsumer(jsonFiles[j].sourceMap),
190190
jsonFiles[j].path.substr(1));
191191
}
192192
applySourceMap(outputFiles[i], generator.toString());

test/gulp.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ describe('gulp-google-closure-compiler', function() {
306306
module: [
307307
'three:1',
308308
'four:1:three'
309-
],
310-
module_output_path_prefix: 'build/'
309+
]
311310
}))
312311
.pipe(closureCompiler({
313312
compilation_level: 'SIMPLE',

0 commit comments

Comments
 (0)