mirror of https://github.com/webpack/webpack.git
perf: remove useless startupEntrypoint for ESM
This commit is contained in:
parent
10fb5566e7
commit
fab6c686fa
|
@ -126,7 +126,6 @@ class ModuleChunkFormatPlugin {
|
||||||
if (chunk.hasRuntime()) return;
|
if (chunk.hasRuntime()) return;
|
||||||
if (compilation.chunkGraph.getNumberOfEntryModules(chunk) > 0) {
|
if (compilation.chunkGraph.getNumberOfEntryModules(chunk) > 0) {
|
||||||
set.add(RuntimeGlobals.require);
|
set.add(RuntimeGlobals.require);
|
||||||
set.add(RuntimeGlobals.startupEntrypoint);
|
|
||||||
set.add(RuntimeGlobals.externalInstallChunk);
|
set.add(RuntimeGlobals.externalInstallChunk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue