Skip to content

Commit 7ddd7ba

Browse files
authored
Merge pull request #422 from jpudysz/fix/build
fix: circular dependency fail
2 parents a547b41 + a5e11fb commit 7ddd7ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web/runtime.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import type { UnistylesMiniRuntime } from '../specs/UnistylesRuntime'
44
import { WebContentSizeCategory } from '../types'
55
import { UnistylesListener } from './listener'
66
import { NavigationBar, StatusBar } from './mock'
7-
import { UnistylesState } from './state'
87
import { error, isServer, schemeToTheme } from './utils'
98

9+
// Keep this import here, otherwise circular dependency will occur and break the build
10+
import { UnistylesState } from './state'
11+
1012
class UnistylesRuntimeBuilder {
1113
lightMedia = this.getLightMedia()
1214
darkMedia = this.getDarkMedia()

0 commit comments

Comments
 (0)