From 63068db28139620a81850d01b468ee322c39bcfd Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Wed, 18 Jun 2025 10:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/vite/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/vite/index.ts b/build/vite/index.ts index 2e48231d..40033551 100644 --- a/build/vite/index.ts +++ b/build/vite/index.ts @@ -14,6 +14,7 @@ import viteCompression from 'vite-plugin-compression' import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite' import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' import UnoCSS from 'unocss/vite' +import topLevelAwait from 'vite-plugin-top-level-await' export function createVitePlugins() { const root = process.cwd() @@ -30,6 +31,7 @@ export function createVitePlugins() { progress(), PurgeIcons(), ElementPlus({}), + topLevelAwait(), AutoImport({ include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx