From 4c223bab2e0a2009de00abd6c49fc742f24c6a2b Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Tue, 3 Dec 2024 01:22:50 +0200 Subject: [PATCH] add ALL dynamic imports to bundle graph --- packages/qwik/src/optimizer/src/plugins/vite.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/qwik/src/optimizer/src/plugins/vite.ts b/packages/qwik/src/optimizer/src/plugins/vite.ts index 158188f6836..bb13559aeb0 100644 --- a/packages/qwik/src/optimizer/src/plugins/vite.ts +++ b/packages/qwik/src/optimizer/src/plugins/vite.ts @@ -1176,13 +1176,11 @@ export function convertManifestToBundleGraph(manifest: QwikManifest): QwikBundle // external dependency continue; } - if (dep.isTask) { - if (!didAdd) { - deps.add(''); - didAdd = true; - } - deps.add(depName); + if (!didAdd) { + deps.add(''); + didAdd = true; } + deps.add(depName); } map.set(bundleName, { index, deps }); bundleGraph.push(bundleName);