From 4e93b371f40e9ff19036f1f276c0d20d3070d291 Mon Sep 17 00:00:00 2001 From: Megghy Date: Fri, 3 Oct 2025 09:55:59 +0800 Subject: [PATCH] build: switch minifier from esbuild to oxc and remove enforce option from chunks --- vite.config.mts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vite.config.mts b/vite.config.mts index b9dbf9e..b9701a4 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -101,7 +101,7 @@ export default defineConfig({ build: { sourcemap: true, target: 'esnext', - minify: 'esbuild', + minify: 'oxc', chunkSizeWarningLimit: 1000, rollupOptions: { output: { // @ts-ignore @@ -111,13 +111,11 @@ export default defineConfig({ name: 'vue-vendor', test: /[\\/]node_modules[\\/](vue|vue-router|pinia)[\\/]/, priority: -10, - enforce: true, }, { name: 'ui-vendor', test: /[\\/]node_modules[\\/](naive-ui|@vueuse[\\/]core)[\\/]/, priority: -10, - enforce: true, }, ], },