#Astro and Vite question
3 messages · Page 1 of 1 (latest)
Astro relies heavily on Vite as its underlying development server and build tool. Astro builds on top of Vite, using it for both development and production bundling. Many advanced configurations and plugin support in Astro are achieved by passing options directly to Vite or by using Vite and Rollup plugins within the Astro configuration. For example, you can add custom Vite plugins directly in your astro.config.mjs file, and Astro exposes hooks for integrations that allow you to modify the Vite config or inject plugins at various stages of the build process Extending file type support Installing a Vite or Rollup plugin Configuration Reference: vite.
Astro does implement its own processing pipeline for features unique to Astro (such as its component syntax, routing, and content processing), but this pipeline is layered on top of Vite rather than replacing it. The integration API and hooks (like astro:config:setup, astro:build:setup, etc.) are designed to feel familiar to those who have written Vite or Rollup plugins, and they often interact directly with Vite’s configuration and plugin system Building Your Own Integration Integration API Reference.