Skip to content

Commit

Permalink
updated: improve sourcemaps generation
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 23, 2017
1 parent 56fd441 commit 057bcba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ module.exports = function generate(opts) {
file: opts.file
})

// set explicitely the source contents
map.setSourceContent(opts.file, opts.source)

var outputLines = opts.generated.split(LINES_RE).map(cleanLine).filter(l => l.length)

opts.source.split(LINES_RE).forEach(function(line, index) {
Expand Down

0 comments on commit 057bcba

Please sign in to comment.