Skip to content

Commit

Permalink
fix: Repair chunks load for @tabler/icons-react
Browse files Browse the repository at this point in the history
Add alias as a workaround recommended by creators of the library.

Refs: CU-86973a6tu
Signed-off-by: Patryk Kłosiński <[email protected]>
  • Loading branch information
JimTheCat committed Dec 15, 2024
1 parent 24b3c4c commit 0e39a07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
}
})

0 comments on commit 0e39a07

Please sign in to comment.