Skip to content

Commit af01769

Browse files
committed
add ALL dynamic imports to bundle graph
1 parent d70d709 commit af01769

File tree

1 file changed

+5
-7
lines changed
  • packages/qwik/src/optimizer/src/plugins

1 file changed

+5
-7
lines changed

packages/qwik/src/optimizer/src/plugins/vite.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1171,18 +1171,16 @@ export function convertManifestToBundleGraph(manifest: QwikManifest): QwikBundle
11711171
let didAdd = false;
11721172
for (const depName of bundle.dynamicImports || []) {
11731173
// If we dynamically import a qrl segment that is not a handler, we'll probably need it soon
1174-
const dep = graph[depName];
1174+
// const dep = graph[depName];
11751175
if (!graph[depName]) {
11761176
// external dependency
11771177
continue;
11781178
}
1179-
if (dep.isTask) {
1180-
if (!didAdd) {
1181-
deps.add('<dynamic>');
1182-
didAdd = true;
1183-
}
1184-
deps.add(depName);
1179+
if (!didAdd) {
1180+
deps.add('<dynamic>');
1181+
didAdd = true;
11851182
}
1183+
deps.add(depName);
11861184
}
11871185
map.set(bundleName, { index, deps });
11881186
bundleGraph.push(bundleName);

0 commit comments

Comments
 (0)