diff options
author | 2022-10-18 11:26:00 -0700 | |
---|---|---|
committer | 2022-10-18 14:26:00 -0400 | |
commit | 4c1ffef3e4753ffccd71e9b1524aa4faa1de652f (patch) | |
tree | 20c56246738a6d7d7dbfacbf836f7efe332c8556 /packages/integrations/vue | |
parent | 8cf692766bf482717cfed416f5317ae1b5fb6cf0 (diff) | |
download | astro-4c1ffef3e4753ffccd71e9b1524aa4faa1de652f.tar.gz astro-4c1ffef3e4753ffccd71e9b1524aa4faa1de652f.tar.zst astro-4c1ffef3e4753ffccd71e9b1524aa4faa1de652f.zip |
[ci] release (#5078)astro@1.5.1@astrojs/vue@1.2.0@astrojs/vercel@2.3.0@astrojs/tailwind@2.1.1@astrojs/solid-js@1.2.1@astrojs/react@1.2.1@astrojs/node@2.0.1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/vue')
-rw-r--r-- | packages/integrations/vue/CHANGELOG.md | 32 | ||||
-rw-r--r-- | packages/integrations/vue/package.json | 2 |
2 files changed, 33 insertions, 1 deletions
diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index b7ff6d03e..936c6fb11 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,37 @@ # @astrojs/vue +## 1.2.0 + +### Minor Changes + +- [#5075](https://github.com/withastro/astro/pull/5075) [`d25f54cb9`](https://github.com/withastro/astro/commit/d25f54cb9306eea9ed0445af8f77604dacacad43) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for the `appEntrypoint` option, which accepts a root-relative path to an app entrypoint. The default export of this file should be a function that accepts a Vue `App` instance prior to rendering. This opens up the ability to extend the `App` instance with [custom Vue plugins](https://vuejs.org/guide/reusability/plugins.html). + + ```js + // astro.config.mjs + import { defineConfig } from 'astro/config'; + import vue from '@astrojs/vue'; + + export default defineConfig({ + integrations: [ + vue({ + appEntrypoint: '/src/pages/_app', + }), + ], + }); + ``` + + ```js + // src/pages/_app.ts + import type { App } from 'vue'; + import i18nPlugin from '../plugins/i18n'; + + export default function setup(app: App) { + app.use(i18nPlugin, { + /* options */ + }); + } + ``` + ## 1.1.0 ### Minor Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index c5a932a3a..f4682aa47 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "1.1.0", + "version": "1.2.0", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", |