fix(preact): use updateConfig hook (#3166)
This commit is contained in:
parent
f73d33cb18
commit
70263cf748
2 changed files with 8 additions and 3 deletions
5
.changeset/thick-beds-flow.md
Normal file
5
.changeset/thick-beds-flow.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/preact': patch
|
||||
---
|
||||
|
||||
Fix integration to use updateConfig rather than returning a partial config object
|
|
@ -39,11 +39,11 @@ export default function (): AstroIntegration {
|
|||
return {
|
||||
name: '@astrojs/preact',
|
||||
hooks: {
|
||||
'astro:config:setup': ({ addRenderer }) => {
|
||||
'astro:config:setup': ({ addRenderer, updateConfig }) => {
|
||||
addRenderer(getRenderer());
|
||||
return {
|
||||
updateConfig({
|
||||
vite: getViteConfiguration(),
|
||||
};
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue