withPlugins allows to extend hooks with custom parameters. Useful for advanced use-cases.
withPlugins
1import { defineIntegration, withPlugins } from "astro-integration-kit";2import { hasVitePluginPlugin } from "astro-integration-kit/plugins";3 4export default defineIntegration({5 name: "my-integration",6 setup({ name }) {7 return withPlugins({8 name,9 plugins: [hasVitePluginPlugin],10 hooks: {11 "astro:config:setup": ({ hasVitePluginPlugin }) => {}12 }13 })14 }15})