aboutsummaryrefslogtreecommitdiff
path: root/tools/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node.js')
-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) {