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:
truiken
2014-08-29 11:41:13 -07:00
committed by Richard van Velzen
parent 4613644cce
commit 0f80b1058d

View File

@@ -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);