aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKosei Kitahara <surgo.jp@gmail.com>2015-07-28 21:36:22 +0900
committerKosei Kitahara <surgo.jp@gmail.com>2015-07-28 21:36:22 +0900
commit8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 (patch)
tree4fe396de76eb9fd59f93768102b52676c54a1313 /tools
parentba9936a5725f35c3d3452bf3aeba4055de1a1071 (diff)
downloadtracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.tar.gz
tracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.zip
Support wrap and exportAll options.
Diffstat (limited to '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) {