From 0c4378a88a25a885763d509fe9c86d49fab840a9 Mon Sep 17 00:00:00 2001 From: jdcl32 Date: Fri, 16 Jun 2017 10:08:23 -0300 Subject: [PATCH] fix source map properties names (#67) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ec7eb5c..73129b5 100644 --- a/index.js +++ b/index.js @@ -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) @@ -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] )