This commit is contained in:
parent
57f21c0d20
commit
2fd5ddfea6
|
@ -17,9 +17,7 @@ class ContextExclusionPlugin {
|
|||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
compiler.hooks.contextModuleFactory.tap("ContextExclusionPlugin", (
|
||||
/** @type {ContextModuleFactory} */ cmf
|
||||
) => {
|
||||
compiler.hooks.contextModuleFactory.tap("ContextExclusionPlugin", cmf => {
|
||||
cmf.hooks.contextModuleFiles.tap("ContextExclusionPlugin", files => {
|
||||
return files.filter(filePath => !this.negativeMatcher.test(filePath));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue