|
| 1 | +diff --git a/dist/es/shared/node-entry.js b/dist/es/shared/node-entry.js |
| 2 | +index 5700a270678df36456ae65dcad01a2be4a28189b..58ec105e925c9f7c9c41ebef3946fb175fabd61c 100644 |
| 3 | +--- a/dist/es/shared/node-entry.js |
| 4 | ++++ b/dist/es/shared/node-entry.js |
| 5 | +@@ -19384,7 +19384,7 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry) { |
| 6 | + const modulesInManualChunks = new Set(manualChunkAliasByEntry.keys()); |
| 7 | + const manualChunkModulesByAlias = Object.create(null); |
| 8 | + for (const [entry, alias] of manualChunkAliasByEntry) { |
| 9 | +- addStaticDependenciesToManualChunk(entry, (manualChunkModulesByAlias[alias] ||= []), modulesInManualChunks); |
| 10 | ++ (manualChunkModulesByAlias[alias] ||= []).push(entry); |
| 11 | + } |
| 12 | + const manualChunks = Object.entries(manualChunkModulesByAlias); |
| 13 | + const chunkDefinitions = new Array(manualChunks.length); |
| 14 | +@@ -19394,18 +19394,7 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry) { |
| 15 | + } |
| 16 | + return { chunkDefinitions, modulesInManualChunks }; |
| 17 | + } |
| 18 | +-function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesInManualChunks) { |
| 19 | +- const modulesToHandle = new Set([entry]); |
| 20 | +- for (const module of modulesToHandle) { |
| 21 | +- modulesInManualChunks.add(module); |
| 22 | +- manualChunkModules.push(module); |
| 23 | +- for (const dependency of module.dependencies) { |
| 24 | +- if (!(dependency instanceof ExternalModule || modulesInManualChunks.has(dependency))) { |
| 25 | +- modulesToHandle.add(dependency); |
| 26 | +- } |
| 27 | +- } |
| 28 | +- } |
| 29 | +-} |
| 30 | ++ |
| 31 | + function analyzeModuleGraph(entries) { |
| 32 | + const dynamicEntryModules = new Set(); |
| 33 | + const awaitedDynamicEntryModules = new Set(); |
0 commit comments