Browse Source

Make CSS transform global by default

master
Sven Slootweg 11 months ago
parent
commit
62947c2332
  1. 4
      index.js

4
index.js

@ -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