Skip to content

Commit

Permalink
fix: tabler icon chunks (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa18289 authored Dec 17, 2024
1 parent eda0a07 commit 7d4ba58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7d4ba58

Please sign in to comment.