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);