Make CSS transform global by default
This commit is contained in:
parent
a067c361e5
commit
62947c2332
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…
Reference in a new issue