We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6389902 commit 8395737Copy full SHA for 8395737
packages/qwik/src/server/prefetch-strategy.ts
@@ -48,9 +48,14 @@ export function getPreloadPaths(
48
}
49
50
// If we have a bundle graph, all we need is the symbols
51
- return (snapshotResult?.qrls as QRLInternal[])
52
- ?.map((qrl) => getSymbolHash(qrl.$refSymbol$ || qrl.$symbol$))
53
- .filter(Boolean) as string[];
+ const symbols = new Set<string>();
+ for (const qrl of (snapshotResult?.qrls || []) as QRLInternal[]) {
+ const symbol = getSymbolHash(qrl.$refSymbol$ || qrl.$symbol$);
54
+ if (symbol && symbol.length >= 10) {
55
+ symbols.add(symbol);
56
+ }
57
58
+ return [...symbols];
59
60
61
export const expandBundles = (names: string[], resolvedManifest?: ResolvedManifest) => {
0 commit comments