Skip to content

Commit ce0669d

Browse files
fix(prefetch): optimise prefetch script (#15874)
Co-authored-by: astrobot-houston <fred+astrobot@astro.build>
1 parent 3b47b89 commit ce0669d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/swift-terms-lose.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes a warning when using `prefetchAll`

packages/astro/src/vite-plugin-environment/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function vitePluginEnvironment({
9090
// For the dev toolbar
9191
'astro > html-escaper',
9292
],
93-
exclude: ['astro:*', 'virtual:astro:*'],
93+
exclude: ['astro:*', 'virtual:astro:*', 'astro/virtual-modules/prefetch.js'],
9494
// Astro files can't be rendered on the client
9595
entries: [`${srcDirPattern}**/*.{jsx,tsx,vue,svelte,html}`],
9696
};

0 commit comments

Comments
 (0)