Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"prettier-plugin-tailwindcss": "^0.6.12",
"pretty-quick": "^4.0.0",
"qwik-nx": "^3.2.0",
"rollup": "4.50.0",
"sass": "^1.77.2",
"shiki": "^3.4.2",
"simple-git-hooks": "2.11.1",
Expand Down
33 changes: 33 additions & 0 deletions patches/rollup.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff --git a/dist/es/shared/node-entry.js b/dist/es/shared/node-entry.js
index 5700a270678df36456ae65dcad01a2be4a28189b..58ec105e925c9f7c9c41ebef3946fb175fabd61c 100644
--- a/dist/es/shared/node-entry.js
+++ b/dist/es/shared/node-entry.js
@@ -19384,7 +19384,7 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry) {
const modulesInManualChunks = new Set(manualChunkAliasByEntry.keys());
const manualChunkModulesByAlias = Object.create(null);
for (const [entry, alias] of manualChunkAliasByEntry) {
- addStaticDependenciesToManualChunk(entry, (manualChunkModulesByAlias[alias] ||= []), modulesInManualChunks);
+ (manualChunkModulesByAlias[alias] ||= []).push(entry);
}
const manualChunks = Object.entries(manualChunkModulesByAlias);
const chunkDefinitions = new Array(manualChunks.length);
@@ -19394,18 +19394,7 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry) {
}
return { chunkDefinitions, modulesInManualChunks };
}
-function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesInManualChunks) {
- const modulesToHandle = new Set([entry]);
- for (const module of modulesToHandle) {
- modulesInManualChunks.add(module);
- manualChunkModules.push(module);
- for (const dependency of module.dependencies) {
- if (!(dependency instanceof ExternalModule || modulesInManualChunks.has(dependency))) {
- modulesToHandle.add(dependency);
- }
- }
- }
-}
+
function analyzeModuleGraph(entries) {
const dynamicEntryModules = new Set();
const awaitedDynamicEntryModules = new Set();
52 changes: 30 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ onlyBuiltDependencies:
- tree-sitter-typescript
- unrs-resolver
- workerd

patchedDependencies:
rollup: patches/rollup.patch
Loading