summaryrefslogtreecommitdiff
path: root/packages/integrations/vue
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/vue
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/vue')
-rw-r--r--packages/integrations/vue/README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/integrations/vue/README.md b/packages/integrations/vue/README.md
index cc1613efb..08c8c6780 100644
--- a/packages/integrations/vue/README.md
+++ b/packages/integrations/vue/README.md
@@ -43,13 +43,14 @@ Now, apply this integration to your `astro.config.*` file using the `integration
__`astro.config.mjs`__
-```js
+```js ins={2} "vue()"
+import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue';
-export default {
+export default defineConfig({
// ...
integrations: [vue()],
-}
+});
```
## Getting started
@@ -79,9 +80,10 @@ This integration is powered by `@vitejs/plugin-vue`. To customize the Vue compil
__`astro.config.mjs`__
```js
+import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue';
-export default {
+export default defineConfig({
// ...
integrations: [vue({
template: {
@@ -92,7 +94,7 @@ export default {
}
// ...
})],
-}
+});
```
### appEntrypoint