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: {