sad refactor: use legacy devDepsScanner for component HMR
This commit is contained in:
parent
3d52d8c2ac
commit
694b3f024b
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ export async function createVite(
|
||||||
define: {
|
define: {
|
||||||
'import.meta.env.SITE': astroConfig.site ? `'${astroConfig.site}'` : 'undefined',
|
'import.meta.env.SITE': astroConfig.site ? `'${astroConfig.site}'` : 'undefined',
|
||||||
},
|
},
|
||||||
|
// fixes HMR for static components
|
||||||
|
// TODO: remove!
|
||||||
|
legacy: {
|
||||||
|
devDepsScanner: true,
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
hmr:
|
hmr:
|
||||||
process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'production'
|
process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'production'
|
||||||
|
|
Loading…
Reference in a new issue