mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
Avoid vite 5.1 warning (#9719)
This commit is contained in:
parent
0fa8557de4
commit
7e1db8b4ce
3 changed files with 7 additions and 2 deletions
5
.changeset/green-rivers-speak.md
Normal file
5
.changeset/green-rivers-speak.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Refactors Vite config to avoid Vite 5.1 warnings
|
|
@ -7,7 +7,7 @@ import { debug } from '../logger/core.js';
|
|||
async function createViteServer(root: string, fs: typeof fsType): Promise<ViteDevServer> {
|
||||
const viteServer = await createServer({
|
||||
server: { middlewareMode: true, hmr: false, watch: null },
|
||||
optimizeDeps: { disabled: true },
|
||||
optimizeDeps: { noDiscovery: true },
|
||||
clearScreen: false,
|
||||
appType: 'custom',
|
||||
ssr: {
|
||||
|
|
|
@ -82,7 +82,7 @@ export async function syncInternal(
|
|||
await createVite(
|
||||
{
|
||||
server: { middlewareMode: true, hmr: false, watch: null },
|
||||
optimizeDeps: { disabled: true },
|
||||
optimizeDeps: { noDiscovery: true },
|
||||
ssr: { external: [] },
|
||||
logLevel: 'silent',
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue