@@ -45,7 +45,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
45
45
let result ;
46
46
47
47
if ( prepareData . hmr ) {
48
- result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . webpackRuntimeFiles , message . entryPointFiles ) ;
48
+ result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . chunkFiles ) ;
49
49
} else {
50
50
result = { emittedFiles : message . emittedFiles , fallbackFiles : < string [ ] > [ ] , hash : "" } ;
51
51
}
@@ -218,16 +218,13 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
218
218
return args ;
219
219
}
220
220
221
- private getUpdatedEmittedFiles ( emittedFiles : string [ ] , webpackRuntimeFiles : string [ ] , entryPointFiles : string [ ] ) {
221
+ private getUpdatedEmittedFiles ( emittedFiles : string [ ] , chunkFiles : string [ ] ) {
222
222
let fallbackFiles : string [ ] = [ ] ;
223
223
let hotHash ;
224
224
let result = emittedFiles . slice ( ) ;
225
225
const hotUpdateScripts = emittedFiles . filter ( x => x . endsWith ( '.hot-update.js' ) ) ;
226
- if ( webpackRuntimeFiles && webpackRuntimeFiles . length ) {
227
- result = result . filter ( file => webpackRuntimeFiles . indexOf ( file ) === - 1 ) ;
228
- }
229
- if ( entryPointFiles && entryPointFiles . length ) {
230
- result = result . filter ( file => entryPointFiles . indexOf ( file ) === - 1 ) ;
226
+ if ( chunkFiles && chunkFiles . length ) {
227
+ result = result . filter ( file => chunkFiles . indexOf ( file ) === - 1 ) ;
231
228
}
232
229
hotUpdateScripts . forEach ( hotUpdateScript => {
233
230
const { name, hash } = this . parseHotUpdateChunkName ( hotUpdateScript ) ;
0 commit comments