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:
parent
b39043f3ab
commit
17f669be38
|
|
@ -189,7 +189,7 @@ function minify(files, options) {
|
|||
options.output.source_map = SourceMap({
|
||||
file: options.sourceMap.filename,
|
||||
orig: source_maps,
|
||||
root: options.sourceMap.root
|
||||
sourceRoot: options.sourceMap.root
|
||||
});
|
||||
if (options.sourceMap.includeSources) {
|
||||
if (files instanceof AST_Toplevel) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user