diff options
author | Kosei Kitahara <surgo.jp@gmail.com> | 2015-07-28 21:36:22 +0900 |
---|---|---|
committer | Kosei Kitahara <surgo.jp@gmail.com> | 2015-07-28 21:36:22 +0900 |
commit | 8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 (patch) | |
tree | 4fe396de76eb9fd59f93768102b52676c54a1313 /tools | |
parent | ba9936a5725f35c3d3452bf3aeba4055de1a1071 (diff) | |
download | tracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.tar.gz tracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.zip |
Support wrap and exportAll options.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/node.js | 3 |
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) { |