Resolve the relative path to lib files last
This allows usage of UglifyJS on build systems which have a flat (or non-matching relative) directory structure for source files.
This commit is contained in:
committed by
Richard van Velzen
parent
4613644cce
commit
0f80b1058d
@@ -35,7 +35,7 @@ var FILES = exports.FILES = [
|
||||
"../lib/sourcemap.js",
|
||||
"../lib/mozilla-ast.js"
|
||||
].map(function(file){
|
||||
return path.join(path.dirname(fs.realpathSync(__filename)), file);
|
||||
return fs.realpathSync(path.join(path.dirname(__filename), file));
|
||||
});
|
||||
|
||||
FILES.forEach(load_global);
|
||||
|
||||
Reference in New Issue
Block a user