36223f663e
* feat: add astro/compat entrypoint for vitest * chore: add with-vitest example * chore: add vitest as optional peer dependency * chore: update lockfile * refactor: remove astro/compat, use astro/config * feat: allow arbitrary modes for `create-vite` * feat: pass vite mode and command when using `getViteConfig` * chore: remove vitest from peer deps * chore: add changeset * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build>
13 lines
424 B
TypeScript
13 lines
424 B
TypeScript
type ViteUserConfig = import('vite').UserConfig;
|
|
type AstroUserConfig = import('./dist/types/@types/astro').AstroUserConfig;
|
|
|
|
/**
|
|
* See the full Astro Configuration API Documentation
|
|
* https://astro.build/config
|
|
*/
|
|
export function defineConfig(config: AstroUserConfig): AstroUserConfig;
|
|
|
|
/**
|
|
* Use Astro to generate a fully resolved Vite config
|
|
*/
|
|
export function getViteConfig(config: ViteUserConfig): ViteUserConfig;
|