Skip to content

Commit db716ee

Browse files
fix: compatibility with webpack v4
1 parent 9b8223a commit db716ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@ class Server {
10331033

10341034
providePlugin.apply(compiler);
10351035

1036+
// TODO remove after drop webpack v4 support
1037+
compiler.options.plugins = compiler.options.plugins || [];
1038+
10361039
if (
10371040
this.options.hot &&
10381041
!compiler.options.plugins.find(

0 commit comments

Comments
 (0)