summaryrefslogtreecommitdiff
path: root/packages/integrations/preact
diff options
context:
space:
mode:
authorGravatar Subha Chanda <subhachanda88@gmail.com> 2023-01-27 00:33:00 +0530
committerGravatar GitHub <noreply@github.com> 2023-01-26 13:03:00 -0600
commit1c7eef308e808aa5ed4662b53e67ec8d1b814d1f (patch)
treedb310a2ce6c92ecc82bd75424f5f471ad0e72605 /packages/integrations/preact
parent607f0ac31a43595252bc647c01ac4b75fc774202 (diff)
downloadastro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.tar.gz
astro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.tar.zst
astro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.zip
Updated according to new configuration (#5478)
* Updated according to new configuration Astro imports the `defineConfig` function from `astro/config`. The `integrations` key needs to be passed into the `defineConfig` function, but it is not shown in the README. Updated the README according to the CLI example. * update alpine * update image * update lit * update mdx * update preact * update prefetch * update react * update sitemap * update solid * update svelte * update tailwind * update turbolinks * update vue * chore: add changeset * update image * update svelte readme Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/preact')
-rw-r--r--packages/integrations/preact/README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/preact/README.md b/packages/integrations/preact/README.md
index 319aa4ae9..9b8a5ecfd 100644
--- a/packages/integrations/preact/README.md
+++ b/packages/integrations/preact/README.md
@@ -55,7 +55,7 @@ Then, apply this integration to your `astro.config.*` file using the `integratio
__`astro.config.mjs`__
-```js
+```js ins={2} "preact()"
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
@@ -86,8 +86,9 @@ 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`.
-```js
-// astro.config.mjs
+__`astro.config.mjs`__
+
+```js "compat: true"
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';