diff options
author | truiken <truiken@gmail.com> | 2014-08-29 11:41:13 -0700 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-01-04 21:01:11 +0100 |
commit | 0f80b1058d233f11b95fef567d1b37dd88c94f09 (patch) | |
tree | 2e85e1fea44d9691a28db1a6a7bbab2a9d6b88d2 | |
parent | 4613644cce9f64cef4115cbfff660b41d51a9b9d (diff) | |
download | tracifyjs-0f80b1058d233f11b95fef567d1b37dd88c94f09.tar.gz tracifyjs-0f80b1058d233f11b95fef567d1b37dd88c94f09.zip |
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.
-rw-r--r-- | tools/node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js index b08559ad..9e9c2c14 100644 --- a/tools/node.js +++ b/tools/node.js @@ -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); |