Skip to content

Commit

Permalink
Merge pull request #14434 from buzuosheng/fix-chunkId
Browse files Browse the repository at this point in the history
replace chunkIds[i] with chunkId in JsonpChunkLoadingRuntimeModule
  • Loading branch information
sokra committed Jan 10, 2022
2 parents f1833b1 + dbf8b35 commit 98887e4
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 188 deletions.
2 changes: 1 addition & 1 deletion lib/web/JsonpChunkLoadingRuntimeModule.js
Expand Up @@ -419,7 +419,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
`if(${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) && installedChunks[chunkId]) {`,
Template.indent("installedChunks[chunkId][0]();"),
"}",
"installedChunks[chunkIds[i]] = 0;"
"installedChunks[chunkId] = 0;"
]),
"}",
withOnChunkLoad
Expand Down
8 changes: 4 additions & 4 deletions test/Stats.test.js
Expand Up @@ -175,10 +175,10 @@ describe("Stats", () => {
"assets": Array [
Object {
"name": "entryB.js",
"size": 2964,
"size": 2961,
},
],
"assetsSize": 2964,
"assetsSize": 2961,
"auxiliaryAssets": undefined,
"auxiliaryAssetsSize": 0,
"childAssets": undefined,
Expand Down Expand Up @@ -223,10 +223,10 @@ describe("Stats", () => {
"info": Object {
"javascriptModule": false,
"minimized": true,
"size": 2964,
"size": 2961,
},
"name": "entryB.js",
"size": 2964,
"size": 2961,
"type": "asset",
},
Object {
Expand Down

0 comments on commit 98887e4

Please sign in to comment.