Exclude astro from Vite optimization (#5545)

This commit is contained in:
Bjorn Lu 2022-12-07 00:53:15 +08:00 committed by GitHub
parent 3e16022499
commit 9082a850ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Exclude astro from Vite optimization

View file

@ -93,7 +93,7 @@ export async function createVite(
appType: 'custom',
optimizeDeps: {
entries: ['src/**/*'],
exclude: ['node-fetch'],
exclude: ['astro', 'node-fetch'],
},
plugins: [
configAliasVitePlugin({ settings }),