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:
parent
341dcdcbeb
commit
d3a70c8714
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue