This commit is contained in:
Mohsen Azimi 2018-07-12 18:08:06 -07:00
parent 57f21c0d20
commit 2fd5ddfea6
1 changed files with 1 additions and 3 deletions

View File

@ -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));
});