Skip to content

Astro Integration

Installation

bash
npm i -D @vue-macros/astro
bash
yarn add -D @vue-macros/astro
bash
pnpm add -D @vue-macros/astro

Configuration

ts
// astro.config.mjs
import { defineConfig } from 'astro/config'
import Vue from '@astrojs/vue'
import Macros from '@vue-macros/astro'

export default defineConfig({
  integrations: [
    Vue(),
    Macros({
      // ... configs
    }),
  ],
})

TypeScript Support & Volar Support

See the corresponding chapter on Bundler Integration


🎉 Congratulations! That's all.

To learn more about the macros, please visit All Macros 😆.

Contributors

The avatar of contributor named as renovate[bot] renovate[bot]
The avatar of contributor named as gaokefei gaokefei

Changelog