From 6f016322310590b4b2562fc9ddb8e9b5483b8ba2 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:09:30 +0800 Subject: [PATCH] fix(website): build error --- packages/website/vite.config.js | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/packages/website/vite.config.js b/packages/website/vite.config.js index 9a16cf5..b6c3651 100644 --- a/packages/website/vite.config.js +++ b/packages/website/vite.config.js @@ -21,39 +21,13 @@ export default defineConfig({ clearScreen: false, plugins: [react(), tailwindcss()], build: { + chunkSizeWarningLimit: 2000, cssCodeSplit: true, rollupOptions: { onwarn: function (message, handler) { if (message.code === 'EVAL') return handler(message) }, - output: { - manualChunks(id) { - // React core - if (id.includes('node_modules/react-dom') || id.includes('node_modules/react/')) { - return 'react' - } - // Radix UI - if (id.includes('node_modules/@radix-ui')) { - return 'radix' - } - // Motion animation - if (id.includes('node_modules/motion')) { - return 'motion' - } - // Icons - if ( - id.includes('node_modules/lucide-react') || - id.includes('node_modules/simple-icons') - ) { - return 'icons' - } - // i18n - if (id.includes('node_modules/i18next') || id.includes('node_modules/react-i18next')) { - return 'i18n' - } - }, - }, }, }, resolve: {