(style)
| 82 | } |
| 83 | |
| 84 | function normalizeStyle(style) { |
| 85 | if (!style) { |
| 86 | return {}; |
| 87 | } |
| 88 | if (style.default) { |
| 89 | const normalized = {}; |
| 90 | Object.keys(style).forEach((pseudo) => { |
| 91 | if (pseudo === 'extra') { |
| 92 | normalized[pseudo] = style[pseudo]; |
| 93 | return; |
| 94 | } |
| 95 | normalized[pseudo] = normalizeStyle(style[pseudo]); |
| 96 | }); |
| 97 | return normalized; |
| 98 | } |
| 99 | |
| 100 | const normalized: Record<string, string | Record<string, string>> = {}; |
| 101 | Object.keys(style).forEach((key) => { |
| 102 | normalized[hyphenate(key)] = style[key]; |
| 103 | }); |
| 104 | return normalized; |
| 105 | } |
| 106 | |
| 107 | function toCss(runtime) { |
| 108 | if (!runtime) { |
no test coverage detected
searching dependent graphs…