From 8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 Mon Sep 17 00:00:00 2001 From: Kosei Kitahara Date: Tue, 28 Jul 2015 21:36:22 +0900 Subject: Support wrap and exportAll options. --- tools/node.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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) { -- cgit v1.2.3