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 {
|
return {
|
||||||
name: '@astrojs/preact',
|
name: '@astrojs/preact',
|
||||||
hooks: {
|
hooks: {
|
||||||
'astro:config:setup': ({ addRenderer }) => {
|
'astro:config:setup': ({ addRenderer, updateConfig }) => {
|
||||||
addRenderer(getRenderer());
|
addRenderer(getRenderer());
|
||||||
return {
|
updateConfig({
|
||||||
vite: getViteConfiguration(),
|
vite: getViteConfiguration(),
|
||||||
};
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue