feat: remove legacy.devDepsScanner. Vite 3 strat is now Vite 2.x strat!

This commit is contained in:
bholmesdev 2022-07-12 12:44:59 -04:00
parent 58a22585e7
commit 39136c6ffc

View file

@ -79,11 +79,6 @@ export async function createVite(
define: {
'import.meta.env.SITE': astroConfig.site ? `'${astroConfig.site}'` : 'undefined',
},
// fixes HMR for static components
// TODO: remove!
legacy: {
devDepsScanner: true,
},
server: {
hmr:
process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'production'