diff options
Diffstat (limited to 'lib/minify.js')
-rw-r--r-- | lib/minify.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/minify.js b/lib/minify.js index 72d99576..ab397f5e 100644 --- a/lib/minify.js +++ b/lib/minify.js @@ -203,6 +203,7 @@ function minify(files, options) { if (!HOP(options.output, "code") || options.output.code) { if (options.sourceMap) { options.output.source_map = SourceMap({ + content: options.sourceMap.includeSources, file: options.sourceMap.filename, orig: source_maps, root: options.sourceMap.root @@ -211,10 +212,8 @@ function minify(files, options) { if (files instanceof AST_Toplevel) { throw new Error("original source content unavailable"); } else for (var name in files) if (HOP(files, name)) { - options.output.source_map.get().setSourceContent(name, files[name]); + options.output.source_map.setSourceContent(name, files[name]); } - } else { - options.output.source_map.get()._sourcesContents = null; } } delete options.output.ast; |