Typo in minify.js

After looking through the SourceMap wrapper code, I believe `root` should be `sourceRoot` when passing to the `SourceMap`. This was causing issues for me with certain files resolving correctly when passing in the `root` option (was basically being ignored).
This commit is contained in:
Evan Black 2018-06-01 15:14:44 -05:00 committed by GitHub
parent b39043f3ab
commit 17f669be38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ function minify(files, options) {
options.output.source_map = SourceMap({ options.output.source_map = SourceMap({
file: options.sourceMap.filename, file: options.sourceMap.filename,
orig: source_maps, orig: source_maps,
root: options.sourceMap.root sourceRoot: options.sourceMap.root
}); });
if (options.sourceMap.includeSources) { if (options.sourceMap.includeSources) {
if (files instanceof AST_Toplevel) { if (files instanceof AST_Toplevel) {