Skip to content

Commit 813e325

Browse files
committed
fix(prefetch-sw): don't emit empty prefetch chunks
1 parent 72c8541 commit 813e325

File tree

1 file changed

+1
-1
lines changed
  • packages/qwik/src/core/qrl

1 file changed

+1
-1
lines changed

packages/qwik/src/core/qrl/qrl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const qrl = <T = any>(
9898
announcedQRL.add(symbol);
9999
emitEvent('qprefetch', {
100100
symbols: [getSymbolHash(symbol)],
101-
bundles: [chunk],
101+
bundles: chunk && [chunk],
102102
});
103103
}
104104

0 commit comments

Comments
 (0)