Skip to content

Commit

Permalink
add ALL dynamic imports to bundle graph
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Dec 2, 2024
1 parent 0f937fc commit 4c223ba
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/qwik/src/optimizer/src/plugins/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1176,13 +1176,11 @@ export function convertManifestToBundleGraph(manifest: QwikManifest): QwikBundle
// external dependency
continue;
}
if (dep.isTask) {
if (!didAdd) {
deps.add('<dynamic>');
didAdd = true;
}
deps.add(depName);
if (!didAdd) {
deps.add('<dynamic>');
didAdd = true;
}
deps.add(depName);
}
map.set(bundleName, { index, deps });
bundleGraph.push(bundleName);
Expand Down

0 comments on commit 4c223ba

Please sign in to comment.