diff --git a/.changeset/thick-beds-flow.md b/.changeset/thick-beds-flow.md new file mode 100644 index 000000000000..69f16946b0f1 --- /dev/null +++ b/.changeset/thick-beds-flow.md @@ -0,0 +1,5 @@ +--- +'@astrojs/preact': patch +--- + +Fix integration to use updateConfig rather than returning a partial config object diff --git a/packages/integrations/preact/src/index.ts b/packages/integrations/preact/src/index.ts index 0b0896210acb..11d4e991508d 100644 --- a/packages/integrations/preact/src/index.ts +++ b/packages/integrations/preact/src/index.ts @@ -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(), - }; + }) }, }, };