diff --git a/src/routes/router.ts b/src/routes/router.ts index 49e21cd..4c3ce68 100644 --- a/src/routes/router.ts +++ b/src/routes/router.ts @@ -1,6 +1,5 @@ import { createRouter } from 'sv-router'; import Home from './Home.svelte'; -import Redirect from './Redirect.svelte'; /** * Single-page router for glyphdiff. @@ -18,6 +17,8 @@ export const { '/': Home, /** * Any unmatched path redirects to home until additional routes exist. + * Lazy-loaded so `router` doesn't statically import `Redirect`, which + * imports `navigate` from here — breaks the import cycle. */ - '*notfound': Redirect, + '*notfound': () => import('./Redirect.svelte'), }); diff --git a/src/shared/lib/utils/roundToStepPrecision/roundToStepPrecision.ts b/src/shared/lib/utils/roundToStepPrecision/roundToStepPrecision.ts index f3eb854..7ef6777 100644 --- a/src/shared/lib/utils/roundToStepPrecision/roundToStepPrecision.ts +++ b/src/shared/lib/utils/roundToStepPrecision/roundToStepPrecision.ts @@ -1,4 +1,4 @@ -import { getDecimalPlaces } from '$shared/lib/utils'; +import { getDecimalPlaces } from '../getDecimalPlaces/getDecimalPlaces'; /** * Rounds a value to match the precision of a given step diff --git a/src/shared/ui/ComboControl/ComboControl.svelte b/src/shared/ui/ComboControl/ComboControl.svelte index ac72f66..99eae67 100644 --- a/src/shared/ui/ComboControl/ComboControl.svelte +++ b/src/shared/ui/ComboControl/ComboControl.svelte @@ -5,13 +5,11 @@ -->