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 @@ -25,6 +25,11 @@ module.exports = class HotModuleReplacementPlugin {
2525 const requestTimeout = this . requestTimeout ;
2626 const hotUpdateChunkFilename = compiler . options . output . hotUpdateChunkFilename ;
2727 const hotUpdateMainFilename = compiler . options . output . hotUpdateMainFilename ;
28+ compiler . plugin ( "additional-pass" , callback => {
29+ if ( multiStep )
30+ return setTimeout ( callback , fullBuildTimeout ) ;
31+ return callback ( ) ;
32+ } ) ;
2833 compiler . plugin ( "compilation" , ( compilation , params ) => {
2934 const hotUpdateChunkTemplate = compilation . hotUpdateChunkTemplate ;
3035 if ( ! hotUpdateChunkTemplate ) return ;
@@ -88,11 +93,6 @@ module.exports = class HotModuleReplacementPlugin {
8893 if ( multiStep && ! recompilation && ! initialPass )
8994 return true ;
9095 } ) ;
91- compiler . plugin ( "additional-pass" , callback => {
92- if ( multiStep )
93- return setTimeout ( callback , fullBuildTimeout ) ;
94- return callback ( ) ;
95- } ) ;
9696 compilation . plugin ( "additional-chunk-assets" , function ( ) {
9797 const records = this . records ;
9898 if ( records . hash === this . hash ) return ;
You can’t perform that action at this time.
0 commit comments