aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard van Velzen <rvanvelzen1@gmail.com>2015-08-05 21:17:42 +0200
committerRichard van Velzen <rvanvelzen1@gmail.com>2015-08-05 21:17:42 +0200
commit958b6c2e57ea64cf876c3f884db2a76f11f7074f (patch)
tree46d30b2b4fc6e67ad3f8c61eb31761ab471bf933
parentab15d676d71653706386c24c5ec9046ece6b6eaf (diff)
parent8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 (diff)
downloadtracifyjs-958b6c2e57ea64cf876c3f884db2a76f11f7074f.tar.gz
tracifyjs-958b6c2e57ea64cf876c3f884db2a76f11f7074f.zip
Merge pull request #753 from Surgo/master
Support wrap and exportAll options for node.js tools.
-rw-r--r--tools/node.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/node.js b/tools/node.js
index cbe49e39..7bba3231 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -84,6 +84,9 @@ exports.minify = function(files, options) {
});
});
}
+ if (options.wrap) {
+ toplevel = toplevel.wrap_commonjs(options.wrap, options.exportAll);
+ }
// 2. compress
if (options.compress) {