From 0e39a07499469a9c3ed236eb8e0c955a009b4b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20K=C5=82osi=C5=84ski?= Date: Mon, 16 Dec 2024 00:29:36 +0100 Subject: [PATCH] fix: Repair chunks load for @tabler/icons-react MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add alias as a workaround recommended by creators of the library. Refs: CU-86973a6tu Signed-off-by: Patryk Kłosiński --- frontend/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 44797e1..fd0fb1d 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -16,6 +16,12 @@ export default defineConfig(({mode}) => { }, }, }, + resolve: { + alias: { + // /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created + '@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs', + } + } // base: '/MeowHub/', } }) \ No newline at end of file