From 41fb7b28948dd7e3f92b941a95f6d6cb98997d9d Mon Sep 17 00:00:00 2001 From: lmeyer Date: Mon, 16 Dec 2024 07:48:19 +0100 Subject: [PATCH] fix: tabler icon chunks --- packages/components/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/components/vite.config.ts b/packages/components/vite.config.ts index f277f102a..8e19936d4 100644 --- a/packages/components/vite.config.ts +++ b/packages/components/vite.config.ts @@ -12,6 +12,12 @@ export default defineConfig({ find: /@\//, replacement: path.resolve(__dirname) + "/src/", }, + { + // https://github.com/tabler/tabler-icons/issues/1233#issuecomment-2428245119 + // /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created + find: "@tabler/icons-react", + replacement: "@tabler/icons-react/dist/esm/icons/index.mjs", + }, ], }, css: {