diff --git a/src/app/plugins/react-custom-html-parser.tsx b/src/app/plugins/react-custom-html-parser.tsx index 60aead019..17cbb84fb 100644 --- a/src/app/plugins/react-custom-html-parser.tsx +++ b/src/app/plugins/react-custom-html-parser.tsx @@ -125,7 +125,7 @@ function KatexRenderer({ useEffect(() => { let mounted = true; - void Promise.all([import('katex'), import('katex/dist/katex.min.css')]).then(([katex]) => { + void import('katex').then((katex) => { if (mounted) { setHtml(katex.default.renderToString(math, { throwOnError: false, displayMode })); } diff --git a/src/app/utils/mediaTransport.test.ts b/src/app/utils/mediaTransport.test.ts index 1381b642f..de6caf937 100644 --- a/src/app/utils/mediaTransport.test.ts +++ b/src/app/utils/mediaTransport.test.ts @@ -115,8 +115,7 @@ describe('fetchMediaBlob', () => { ); it('selects the JSON-encoded active session instead of falling back to the first account', async () => { - const { getActiveMediaSession, getCurrentMediaSessionScope } = - await import('./mediaTransport'); + const { getActiveMediaSession, getCurrentMediaSessionScope } = await import('./mediaTransport'); localStorage.setItem( 'matrixSessions', diff --git a/src/index.tsx b/src/index.tsx index 1b67abe5b..ded943743 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,6 +7,7 @@ import '@fontsource/space-mono/400.css'; import '@fontsource/space-mono/700.css'; import '@fontsource/space-mono/400-italic.css'; import '@fontsource/space-mono/700-italic.css'; +import 'katex/dist/katex.min.css'; import 'folds/dist/style.css'; import { configClass, varsClass } from 'folds'; import App from './app/pages/App'; diff --git a/vite.config.ts b/vite.config.ts index f980a90c8..e1dd090b7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -143,7 +143,7 @@ export default defineConfig(({ command }) => { clearScreen: false, appType: 'spa', publicDir: false, - base: buildConfig.base, + base: command === 'build' && isTauriBuild ? './' : buildConfig.base, envPrefix: ['VITE_', 'TAURI_ENV_*'], define: { APP_VERSION: JSON.stringify(appVersion),