Skip to content

Commit 5b98a94

Browse files
committed
chore: upgrade tabler
1 parent e9252f4 commit 5b98a94

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

libs/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@mantine/core": "^7.15.1",
3030
"@mantine/dates": "^7.15.1",
3131
"@mantine/hooks": "^7.15.1",
32-
"@tabler/icons-react": "3.17.0",
32+
"@tabler/icons-react": "3.24.0",
3333
"dayjs": "^1.11.13",
3434
"react": "^18.3.1",
3535
"react-dom": "^18.3.1"

libs/ui/vite.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,25 @@ export default defineConfig({
1818
output: {
1919
globals: {
2020
dayjs: "dayjs",
21-
"dayjs/plugin/utc": "dayjsPluginUtc",
21+
"dayjs/plugin/utc.js": "dayjsPluginUtc",
22+
"dayjs/plugin/customParseFormat.js": "dayjsPluginCustomParseFormat",
23+
"dayjs/locale/de.js": "dayjsLocaleDe",
2224
react: "React",
2325
"react/jsx-runtime": "jsxRuntime",
2426
"@mantine/core": "mantineCore",
2527
"@mantine/dates": "mantineDates",
26-
"@tabler/icons-react": "tablerIconsReact",
28+
"@mantine/hooks": "mantineHooks",
29+
"@tabler/icons-react/dist/esm/icons/index.mjs": "tablerIconsReact",
2730
},
2831
},
2932
},
3033
},
3134
plugins: [dts({ entryRoot: "src", tsconfigPath: "tsconfig.json" }), react(), svgr({ svgrOptions: { ref: true }, include: "**/*.svg?react" })],
35+
resolve: {
36+
alias: {
37+
// Workaround so that tabler doesn't import all icons as separate junks
38+
// https://github.com/tabler/tabler-icons/issues/1233#issuecomment-2428245119
39+
"@tabler/icons-react": "@tabler/icons-react/dist/esm/icons/index.mjs",
40+
},
41+
},
3242
});

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)