File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
37
37
return ;
38
38
}
39
39
40
- const result = this . getUpdatedEmittedFiles ( message . emittedFiles ) ;
40
+ const result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . webpackRuntimeFiles ) ;
41
41
42
42
const files = result . emittedFiles
43
43
. filter ( ( file : string ) => file . indexOf ( "App_Resources" ) === - 1 )
@@ -173,7 +173,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
173
173
return args ;
174
174
}
175
175
176
- private getUpdatedEmittedFiles ( emittedFiles : string [ ] ) {
176
+ private getUpdatedEmittedFiles ( emittedFiles : string [ ] , webpackRuntimeFiles : string [ ] ) {
177
177
let fallbackFiles : string [ ] = [ ] ;
178
178
let hotHash ;
179
179
if ( emittedFiles . some ( x => x . endsWith ( '.hot-update.json' ) ) ) {
@@ -184,6 +184,10 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
184
184
hotHash = hash ;
185
185
// remove bundle/vendor.js files if there's a bundle.XXX.hot-update.js or vendor.XXX.hot-update.js
186
186
result = result . filter ( file => file !== `${ name } .js` ) ;
187
+ if ( webpackRuntimeFiles && webpackRuntimeFiles . length ) {
188
+ // remove files containing only the Webpack runtime (e.g. runtime.js)
189
+ result = result . filter ( file => webpackRuntimeFiles . indexOf ( file ) === - 1 ) ;
190
+ }
187
191
} ) ;
188
192
//if applying of hot update fails, we must fallback to the full files
189
193
fallbackFiles = emittedFiles . filter ( file => result . indexOf ( file ) === - 1 ) ;
You can’t perform that action at this time.
0 commit comments