Update NormalModuleReplacementPlugin to new api

Fix for
```
Error: NormalModuleFactory.afterResolve is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created.
      at hooks.afterResolve.callAsync (webpack/lib/NormalModuleFactory.js:192:14)
```
This commit is contained in:
CertainLach 2019-06-16 20:09:54 +05:00 committed by GitHub
parent 56b8aa7006
commit 7b87312b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -40,7 +40,6 @@ class NormalModuleReplacementPlugin {
result.request = newResource;
}
}
return result;
});
nmf.hooks.afterResolve.tap("NormalModuleReplacementPlugin", result => {
const createData = result.createData;
@ -63,7 +62,6 @@ class NormalModuleReplacementPlugin {
}
}
}
return result;
});
}
);