diff --git a/src/web/runtime.ts b/src/web/runtime.ts index 31846ab7..fdd078c3 100644 --- a/src/web/runtime.ts +++ b/src/web/runtime.ts @@ -4,9 +4,11 @@ import type { UnistylesMiniRuntime } from '../specs/UnistylesRuntime' import { WebContentSizeCategory } from '../types' import { UnistylesListener } from './listener' import { NavigationBar, StatusBar } from './mock' -import { UnistylesState } from './state' import { error, isServer, schemeToTheme } from './utils' +// Keep this import here, otherwise circular dependency will occur and break the build +import { UnistylesState } from './state' + class UnistylesRuntimeBuilder { lightMedia = this.getLightMedia() darkMedia = this.getDarkMedia()