Skip to content

Commit

Permalink
Exclude astro from Vite optimization (#5545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 6, 2022
1 parent 3e16022 commit 9082a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-papayas-build.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

Exclude astro from Vite optimization
2 changes: 1 addition & 1 deletion packages/astro/src/core/create-vite.ts
Expand Up @@ -93,7 +93,7 @@ export async function createVite(
appType: 'custom',
optimizeDeps: {
entries: ['src/**/*'],
exclude: ['node-fetch'],
exclude: ['astro', 'node-fetch'],
},
plugins: [
configAliasVitePlugin({ settings }),
Expand Down

0 comments on commit 9082a85

Please sign in to comment.