packages/purplet/src/config/vite.ts
Function createViteConfig
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function createViteConfig(config: ResolvedConfig, mode: 'development' | 'production') {
const userViteConfig = await (typeof config.vite === 'function' ? config.vite() : config.vite);
const alias: Record<string, string> = {};