@@ -45,7 +45,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
4545 let result ;
4646
4747 if ( prepareData . hmr ) {
48- result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . webpackRuntimeFiles , message . entryPointFiles ) ;
48+ result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . chunkFiles ) ;
4949 } else {
5050 result = { emittedFiles : message . emittedFiles , fallbackFiles : < string [ ] > [ ] , hash : "" } ;
5151 }
@@ -218,16 +218,13 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
218218 return args ;
219219 }
220220
221- private getUpdatedEmittedFiles ( emittedFiles : string [ ] , webpackRuntimeFiles : string [ ] , entryPointFiles : string [ ] ) {
221+ private getUpdatedEmittedFiles ( emittedFiles : string [ ] , chunkFiles : string [ ] ) {
222222 let fallbackFiles : string [ ] = [ ] ;
223223 let hotHash ;
224224 let result = emittedFiles . slice ( ) ;
225225 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 ) ;
231228 }
232229 hotUpdateScripts . forEach ( hotUpdateScript => {
233230 const { name, hash } = this . parseHotUpdateChunkName ( hotUpdateScript ) ;
0 commit comments