File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ module.exports = class HotModuleReplacementPlugin {
2626 const requestTimeout = this . requestTimeout ;
2727 const hotUpdateChunkFilename = compiler . options . output . hotUpdateChunkFilename ;
2828 const hotUpdateMainFilename = compiler . options . output . hotUpdateMainFilename ;
29+ compiler . plugin ( "additional-pass" , callback => {
30+ if ( multiStep )
31+ return setTimeout ( callback , fullBuildTimeout ) ;
32+ return callback ( ) ;
33+ } ) ;
2934 compiler . plugin ( "compilation" , ( compilation , params ) => {
3035 const hotUpdateChunkTemplate = compilation . hotUpdateChunkTemplate ;
3136 if ( ! hotUpdateChunkTemplate ) return ;
@@ -89,11 +94,6 @@ module.exports = class HotModuleReplacementPlugin {
8994 if ( multiStep && ! recompilation && ! initialPass )
9095 return true ;
9196 } ) ;
92- compiler . plugin ( "additional-pass" , callback => {
93- if ( multiStep )
94- return setTimeout ( callback , fullBuildTimeout ) ;
95- return callback ( ) ;
96- } ) ;
9797 compilation . plugin ( "additional-chunk-assets" , ( ) => {
9898 const records = compilation . records ;
9999 if ( records . hash === compilation . hash ) return ;
You can’t perform that action at this time.
0 commit comments