Skip to content

Commit 0a92e0c

Browse files
authored
Merge pull request #83 from JimTheCat/CU-86973a6tu_Repair-tablericons-react-to-load-unnecessary-chunks_Patryk-Kosiski
fix: Repair chunks load for @tabler/icons-react
2 parents 29790b6 + 0e39a07 commit 0a92e0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default defineConfig(({mode}) => {
1616
},
1717
},
1818
},
19+
resolve: {
20+
alias: {
21+
// /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created
22+
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
23+
}
24+
}
1925
// base: '/MeowHub/',
2026
}
2127
})

0 commit comments

Comments
 (0)