Skip to content

Commit

Permalink
fix: circular dependency fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Brentlok committed Dec 12, 2024
1 parent a547b41 commit a5e11fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a5e11fb

Please sign in to comment.