8000 feat(runtime): Add preset-wind3 integration to runtime (#4934) · unocss/unocss@f341004 · GitHub
[go: up one dir, main page]

Skip to content

Commit f341004

Browse files
authored
feat(runtime): Add preset-wind3 integration to runtime (#4934)
1 parent 75b252b commit f341004

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 { PresetWind3Options } from '@unocss/preset-wind3'
2+
import type { RuntimeContext } from '..'
3+
import presetWind3 from '@unocss/preset-wind3'
4+
5+
window.__unocss_runtime = window.__unocss_runtime ?? {} as RuntimeContext
6+
window.__unocss_runtime.presets = Object.assign(window.__unocss_runtime?.presets ?? {}, {
7+
presetWind3: (options: PresetWind3Options) => presetWind3(options),
8+
})

0 commit comments

Comments
 (0)
0