summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/integrations/preact/README.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/integrations/preact/README.md b/packages/integrations/preact/README.md
index 6eba098d1..f0ae3b364 100644
--- a/packages/integrations/preact/README.md
+++ b/packages/integrations/preact/README.md
@@ -53,9 +53,8 @@ npm install preact
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
-**`astro.config.mjs`**
-
-```js ins={2} "preact()"
+```js ins={3} "preact()"
+// astro.config.mjs
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
@@ -87,9 +86,8 @@ You can enable `preact/compat`, Preact’s compatibility layer for rendering Rea
To do so, pass an object to the Preact integration and set `compat: true`.
-**`astro.config.mjs`**
-
```js "compat: true"
+// astro.config.mjs
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';