Files
family-mp/vite.config.ts
2026-09-06 16:07:53 +08:00

12 lines
282 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig(async () => {
const UnoCSS = (await import('unocss/vite')).default // 0.59+ 纯 ESM动态导入更稳
return {
plugins: [
uni(),
UnoCSS()
]
}
})