Skip to content

Commit

Permalink
Update ModuleNotFoundPlugin to support Webpack 5 (facebook#10205)
Browse files Browse the repository at this point in the history
  • Loading branch information
raix authored and akxcv committed Apr 28, 2021
1 parent a37679d commit 543d6ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/react-dev-utils/ModuleNotFoundPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ class ModuleNotFoundPlugin {
const { prettierError } = this;
compiler.hooks.make.intercept({
register(tap) {
// "SingleEntryPlugin" can be removed when Webpack 4 no longer have to be supported
if (
!(tap.name === 'MultiEntryPlugin' || tap.name === 'SingleEntryPlugin')
!(
tap.name === 'MultiEntryPlugin' ||
tap.name === 'SingleEntryPlugin' ||
tap.name === 'EntryPlugin'
)
) {
return tap;
}
Expand Down

0 comments on commit 543d6ad

Please sign in to comment.