From bd13261f7ed9236e8720a795cdac29ea65740170 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 1 Oct 2025 23:06:45 +0200 Subject: [PATCH] Remove "fontsource" dependency Fonts get loaded dynamically through "ThemeFontLoader" Fixes #1016 along with 8c50b33a9332c27d75beeae44d12edfd8ef070a5. See explanation of linked commit. The problem with this import was that MUI by default uses font weight 300, 400, 500 and 700. For some reason importing all font weights caused the issue of the linked ticket while importing only the necessary font weighs fixed it. --- package.json | 1 - src/index.tsx | 1 - yarn.lock | 5 ----- 3 files changed, 7 deletions(-) diff --git a/package.json b/package.json index 3ef215f7..75cd1109 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "@emotion/cache": "11.14.0", "@emotion/react": "11.14.0", "@emotion/styled": "11.14.1", - "@fontsource/roboto": "5.2.6", "@juggle/resize-observer": "3.4.0", "@loadable/component": "5.16.7", "@mantine/hooks": "8.2.5", diff --git a/src/index.tsx b/src/index.tsx index 96ad2bff..441e55c0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,7 +7,6 @@ */ import '@/polyfill.manual'; -import '@fontsource/roboto'; import '@/lib/dayjs/Setup.ts'; import '@/index.css'; import { StrictMode } from 'react'; diff --git a/yarn.lock b/yarn.lock index 113c03fc..1bc41ea9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1718,11 +1718,6 @@ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.0.tgz#a5417ae8427873f1dd08b70b3574b453e67b5f7f" integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g== -"@fontsource/roboto@5.2.6": - version "5.2.6" - resolved "https://registry.yarnpkg.com/@fontsource/roboto/-/roboto-5.2.6.tgz#93a2a5ef98cc79880355de0aac71def215b873e7" - integrity sha512-hzarG7yAhMoP418smNgfY4fO7UmuUEm5JUtbxCoCcFHT0hOJB+d/qAEyoNjz7YkPU5OjM2LM8rJnW8hfm0JLaA== - "@graphql-codegen/add@^5.0.3": version "5.0.3" resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-5.0.3.tgz#1ede6bac9a93661ed7fa5808b203d079e1b1d215"