Skip to content

Commit 1aac483

Browse files
Fix so sourcemapToAst is declared before it is initialized, crucial for strict mode.
1 parent 0e6504b commit 1aac483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ gulp.task('build', function(cb) {
6767
'wrap': {
6868
// All of the third party dependencies are hoisted here
6969
// It's a hack, but it's not too painful
70-
'start': ';(function(esprima, estraverse, escodegen, _) {\n',
70+
'start': ';var sourcemapToAst;(function(esprima, estraverse, escodegen, _) {\n',
7171
'end': '}(typeof esprima !== "undefined" ? esprima: null, typeof estraverse !== "undefined" ? estraverse: null, typeof escodegen !== "undefined" ? escodegen: null, typeof _ !== "undefined" ? _ : null));'
7272
},
7373
'createAnonymousAMDModule': true
@@ -136,4 +136,4 @@ gulp.task('watch', function() {
136136
watcher.on('change', function(event) {
137137
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
138138
});
139-
});
139+
});

0 commit comments

Comments
 (0)