Skip to content

Commit a89a63a

Browse files
author
Morten N.O. Henriksen
committed
Remove support for SingleEntryPlugin
1 parent 58d36c2 commit a89a63a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/react-dev-utils/ModuleNotFoundPlugin.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,7 @@ class ModuleNotFoundPlugin {
100100
const { prettierError } = this;
101101
compiler.hooks.make.intercept({
102102
register(tap) {
103-
// "SingleEntryPlugin" can be removed when Webpack 4 no longer have to be supported
104-
if (
105-
!(
106-
tap.name === 'MultiEntryPlugin' ||
107-
tap.name === 'SingleEntryPlugin' ||
108-
tap.name === 'EntryPlugin'
109-
)
110-
) {
103+
if (!(tap.name === 'MultiEntryPlugin' || tap.name === 'EntryPlugin')) {
111104
return tap;
112105
}
113106
return Object.assign({}, tap, {

0 commit comments

Comments
 (0)