From 8566f5030ccb84d285d5e2bfd0d1993ccf88b76d Mon Sep 17 00:00:00 2001 From: orzi <1063614727@qq.com> Date: Sat, 14 Mar 2026 17:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/vite.config.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index b80c6e85..40903edd 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ resolvers: [NaiveUiResolver()], }), // esmExternalRequirePlugin({ - // external: ['vue', /^node:/] + // external: [/^node:/] // }), ], resolve: { @@ -23,20 +23,20 @@ export default defineConfig({ '@': path.resolve(__dirname, 'src'), }, }, - // build: { - // chunkSizeWarningLimit: 1000, - // rollupOptions: { - // output: { - // manualChunks(id) { - // if (id.includes('node_modules')) { - // return id - // .toString() - // .split('node_modules/')[1] - // .split('/')[0] - // .toString(); - // } - // }, - // }, - // }, - // }, + build: { + chunkSizeWarningLimit: 1000, + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id + .toString() + .split('node_modules/')[1] + .split('/')[0] + .toString(); + } + }, + }, + }, + }, });