Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 401e202

Browse files
committed
Deleted legacy property fallback (removed in webpack)
1 parent 9b09740 commit 401e202

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/chunk-manifest-webpack-plugin.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,19 @@ class ChunkManifestPlugin {
3535
) {
3636
if (c.id in manifest) return manifest;
3737

38-
const hasRuntime =
39-
typeof c.hasRuntime === "function" ? c.hasRuntime() : c.entry;
40-
41-
if (hasRuntime) {
38+
if (c.hasRuntime()) {
4239
manifest[c.id] = undefined;
4340
} else {
44-
manifest[c.id] = mainTemplate.applyPluginsWaterfall(
41+
const asyncAssets = mainTemplate.applyPluginsWaterfall(
4542
"asset-path",
4643
filename,
4744
{
4845
hash: hash,
4946
chunk: c
5047
}
5148
);
49+
50+
manifest[c.id] = asyncAssets;
5251
}
5352
return c.chunks.reduce(registerChunk, manifest);
5453
},
@@ -76,7 +75,6 @@ class ChunkManifestPlugin {
7675
if (oldChunkFilename) {
7776
this.outputOptions.chunkFilename = oldChunkFilename;
7877
}
79-
8078
return _.replace(
8179
/"__CHUNK_MANIFEST__"/,
8280
`window["${manifestVariable}"][${chunkIdVariableName}]`

0 commit comments

Comments
 (0)