Make CSS transform global by default

pull/2/head
Sven Slootweg 4 years ago
parent a067c361e5
commit 62947c2332

@ -59,7 +59,9 @@ module.exports = function (browserify, options) {
dedupePhase.push(createDedupeBundleCssStream(options));
}
browserify.transform(createTransform, options);
// NOTE: This is global because otherwise the transform will not run when processing node_modules. If this causes problems for you, please file an issue!
// FIXME: Figure out if there's a better solution for this
browserify.transform(createTransform, { ... options, global: true });
browserify.on("reset", () => {
setupPipeline();

Loading…
Cancel
Save