aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartii <thalamew@q.com>2016-02-06 12:46:18 -0700
committerRichard van Velzen <rvanvelzen@experty.com>2016-02-08 10:45:42 +0100
commitcdba43cfa44c15fe12f87c356dad4caa5a946b5b (patch)
tree492cd3c96bc14b962877e05e74be1dc63d618462 /tools
parenta123e232b9e4d2fdc3905016fb56b71c5ab3ffcc (diff)
downloadtracifyjs-cdba43cfa44c15fe12f87c356dad4caa5a946b5b.tar.gz
tracifyjs-cdba43cfa44c15fe12f87c356dad4caa5a946b5b.zip
Create and map `bare-returns` into new `parse` property name
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/node.js b/tools/node.js
index 5764286e..fa8c19dc 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -42,7 +42,8 @@ exports.minify = function(files, options) {
mangleProperties : false,
nameCache : null,
output : null,
- compress : {}
+ compress : {},
+ parse : {}
});
UglifyJS.base54.reset();
@@ -62,7 +63,8 @@ exports.minify = function(files, options) {
sourcesContent[file] = code;
toplevel = UglifyJS.parse(code, {
filename: options.fromString ? i : file,
- toplevel: toplevel
+ toplevel: toplevel,
+ bare_returns: options.parse ? options.parse.bare_returns : undefined
});
});
}