Skip to content

Commit

Permalink
fix source map properties names (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcl32 authored and yoshuawuyts committed Jun 16, 2017
1 parent 4cf696d commit 0c4378a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function uglifyify(file, opts) {
if (debug && matched) {
opts.sourceMap.content = convert.fromJSON(
new Buffer(matched[1], 'base64').toString()
).sourceMap
).sourcemap
}

var min = ujs.minify(buffer, opts)
Expand All @@ -83,7 +83,7 @@ function uglifyify(file, opts) {

map.setProperty('sources', [path.basename(file)])
map.setProperty('sourcesContent', matched
? opts.inSourceMap.sourcesContent
? opts.sourceMap.sourcesContent
: [buffer]
)

Expand Down

0 comments on commit 0c4378a

Please sign in to comment.