From e8f1710c2746669788c095baf3132a92e1292a3e Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 21 Dec 2024 16:27:26 +0800 Subject: [PATCH] Fix build not working --- vite.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index d39a49f5..81b9edb7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -157,7 +157,9 @@ export default defineConfig({ ], build: { sourcemap: true, - cssCodeSplit: false, + // Note: In Vite 6, if cssCodeSplit = false, it will show error "Cannot read properties of undefined (reading 'includes')" + // TODO: Revisit this when this issue is fixed + // cssCodeSplit: false, rollupOptions: { treeshake: false, input: {