From e8731a90bde2162be78f61b6edb41e2e4b64cedc Mon Sep 17 00:00:00 2001 From: Gorgi Kosev Date: Thu, 20 Aug 2015 17:27:43 +0100 Subject: [PATCH] Don't define transform as global Global transforms run after all other transforms, which means that all other transforms will try to process the CSS file. This is bad for most transforms like e.g. brfs, which don't check whether the file is JS before proceeding This also makes https://github.com/css-modules/browserify-demo/ work --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 5132d43..0b21ab9 100644 --- a/index.js +++ b/index.js @@ -107,9 +107,7 @@ module.exports = function (browserify, options) { }); } - browserify.transform(transform, { - global: true - }); + browserify.transform(transform); // wrap the `bundle` function var bundle = browserify.bundle;