Files
site/nova-components/NovaLeader/node_modules/webpack/lib/ContextExclusionPlugin.js
2025-04-21 16:03:20 +02:00

18 lines
384 B
JavaScript
Vendored

"use strict";
class ContextExclusionPlugin {
constructor(negativeMatcher) {
this.negativeMatcher = negativeMatcher;
}
apply(compiler) {
compiler.plugin("context-module-factory", (cmf) => {
cmf.plugin("context-module-files", (files) => {
return files.filter(filePath => !this.negativeMatcher.test(filePath));
});
});
}
}
module.exports = ContextExclusionPlugin;