diff --git a/vite.config.ts b/vite.config.ts index 66fdb15d..d5091388 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,7 +20,7 @@ const __APP_INFO__ = { lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), } -export default async ({ command, mode }: ConfigEnv): Promise => { +export default ({ command, mode }: ConfigEnv): UserConfig => { const root = process.cwd() const env = loadEnv(mode, root) @@ -92,7 +92,7 @@ export default async ({ command, mode }: ConfigEnv): Promise => { }, // The vite plugin used by the project. The quantity is large, so it is separately extracted and managed - plugins: await createVitePlugins(viteEnv, isBuild), + plugins: createVitePlugins(viteEnv, isBuild), optimizeDeps: { include, exclude }, }