Skip to content

Commit

Permalink
Enabled source maps when building parser.
Browse files Browse the repository at this point in the history
To use source maps, run node with the --enable-source-maps option.
  • Loading branch information
BadIdeaException committed Feb 17, 2024
1 parent 2f58d09 commit 203fd46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const buildParser = function() {
return gulp.src('selector.peg')
.pipe(tap(function(file) {
file.contents = new Buffer(peggy.generate(file.contents.toString('utf-8'), {
output: 'source',
output: 'source-with-inline-map',
grammarSource: 'selector.peg',
format: 'es'
}));
}))
Expand Down

0 comments on commit 203fd46

Please sign in to comment.