diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-08-05 21:17:42 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-08-05 21:17:42 +0200 |
commit | 958b6c2e57ea64cf876c3f884db2a76f11f7074f (patch) | |
tree | 46d30b2b4fc6e67ad3f8c61eb31761ab471bf933 | |
parent | ab15d676d71653706386c24c5ec9046ece6b6eaf (diff) | |
parent | 8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 (diff) | |
download | tracifyjs-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.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) { |