From 4190480f38c5a54a60a8c1f64cb6c75ad8d4a0b1 Mon Sep 17 00:00:00 2001 From: "J.R. Patten" Date: Wed, 2 Jul 2014 14:57:44 -0600 Subject: [PATCH] Add globalTransforms option --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index c6bb734..67c36f8 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,11 @@ module.exports = function enchilada(opt) { bundle.transform(transform) }); } + if (opt.globalTransforms) { + opt.globalTransforms.forEach(function(transform) { + bundle.transform({ global: true }, transform) + }); + } if (opt.externals) { opt.externals.forEach(function(external) { bundle.external(external);