10BC0 feat(runtime): Add preset-wind4 integration to runtime (#4933) · unocss/unocss@75b252b · GitHub
[go: up one dir, main page]

Skip to content

Commit 75b252b

Browse files
authored
feat(runtime): Add preset-wind4 integration to runtime (#4933)
1 parent c8562a3 commit 75b252b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { PresetWind4Options } from '@unocss/preset-wind4'
2+
import type { RuntimeContext } from '..'
3+
import presetWind4 from '@unocss/preset-wind4'
4+
5+
window.__unocss_runtime = window.__unocss_runtime ?? {} as RuntimeContext
6+
window.__unocss_runtime.presets = Object.assign(window.__unocss_runtime?.presets ?? {}, {
7+
presetWind4: (options: PresetWind4Options) => presetWind4(options),
8+
})

0 commit comments

Comments
 (0)
0