Skip to content

Commit 01ccbac

Browse files
committed
fixed changesets messages format
1 parent 307bbd5 commit 01ccbac

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.changeset/bright-experts-sip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@builder.io/qwik': patch
33
---
44

5-
tailwindcss v4 integration
5+
FEAT: tailwindcss v4 integration

.changeset/gorgeous-garlics-melt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@builder.io/qwik': patch
33
---
44

5-
fix a bug that error in the middleware occurs 404
5+
fix: error in the middleware occurs 404

packages/qwik/src/server/prefetch-utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export function prefetchUrlsEventScript(base: string, prefetchResources: Prefetc
2424
bundles: flattenPrefetchResources(prefetchResources).map((u) => u.split('/').pop()!),
2525
};
2626
const args = JSON.stringify(['prefetch', base, ...data.bundles!]);
27-
return `(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${args});`;
27+
28+
return `document.dispatchEvent(new CustomEvent("qprefetch",{detail:${JSON.stringify(data)}}));
29+
(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${args});`;
2830
}
2931

3032
export function flattenPrefetchResources(prefetchResources: PrefetchResource[]) {

0 commit comments

Comments
 (0)