addVitePlugin allows you add a vite plugin to the Astro config. For example:
addVitePlugin
1import {2 defineIntegration,3 addVitePlugin4} from "astro-integration-kit";5import { VitePWA } from 'vite-plugin-pwa'6 7export default defineIntegration({8 // ...9 setup() {10 return {11 hooks: {12 "astro:config:setup": (params) => {13 addVitePlugin(params, {14 plugin: VitePWA({ registerType: 'autoUpdate' })15 })16 }17 }18 }19 }20})