0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix: optimize preact-rts for ssr only

This commit is contained in:
bholmesdev 2022-08-01 11:08:02 -04:00
parent 341dcdcbeb
commit d3a70c8714

View file

@ -63,8 +63,10 @@ function getViteConfiguration(compat?: boolean): ViteUserConfig {
dedupe: ['preact'],
},
ssr: {
external: ['preact-render-to-string'],
},
optimizeDeps: {
include: ['preact-render-to-string']
}
}
};
if (compat) {