File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ class ConsumeSharedRuntimeModule extends RuntimeModule {
312
312
null ,
313
313
"\t"
314
314
) } ;`,
315
+ "var startedInstallModules = {};" ,
315
316
`${
316
317
RuntimeGlobals . ensureChunkHandlers
317
318
} .consumes = ${ runtimeTemplate . basicFunction ( "chunkId, promises" , [
@@ -321,6 +322,7 @@ class ConsumeSharedRuntimeModule extends RuntimeModule {
321
322
"id" ,
322
323
[
323
324
`if(${ RuntimeGlobals . hasOwnProperty } (installedModules, id)) return promises.push(installedModules[id]);` ,
325
+ "if(!startedInstallModules[id]) {" ,
324
326
`var onFactory = ${ runtimeTemplate . basicFunction (
325
327
"factory" ,
326
328
[
@@ -333,6 +335,7 @@ class ConsumeSharedRuntimeModule extends RuntimeModule {
333
335
] ) } `
334
336
]
335
337
) } ;`,
338
+ "startedInstallModules[id] = true;" ,
336
339
`var onError = ${ runtimeTemplate . basicFunction ( "error" , [
337
340
"delete installedModules[id];" ,
338
341
`${
@@ -351,7 +354,8 @@ class ConsumeSharedRuntimeModule extends RuntimeModule {
351
354
) ,
352
355
"} else onFactory(promise);"
353
356
] ) ,
354
- "} catch(e) { onError(e); }"
357
+ "} catch(e) { onError(e); }" ,
358
+ "}"
355
359
]
356
360
) } );`
357
361
] ) ,
You can’t perform that action at this time.
0 commit comments