(runtime: Record<string, string> | undefined)
| 59 | } |
| 60 | |
| 61 | function toNativeStyle(runtime: Record<string, string> | undefined) { |
| 62 | if (!runtime) { |
| 63 | return {}; |
| 64 | } |
| 65 | if (runtime.default) { |
| 66 | const normalized: Record<string, string> = {}; |
| 67 | Object.keys(runtime).forEach((pseudo) => { |
| 68 | if (pseudo === 'extra') { |
| 69 | normalized[pseudo] = runtime[pseudo]; |
| 70 | return; |
| 71 | } |
| 72 | normalized[pseudo] = toNativeStyle(runtime[pseudo]); |
| 73 | }); |
| 74 | return normalized; |
| 75 | } |
| 76 | |
| 77 | const normalized = {}; |
| 78 | Object.keys(runtime).forEach((key) => { |
| 79 | normalized[camelize(key)] = runtime[key]; |
| 80 | }); |
| 81 | return normalized; |
| 82 | } |
| 83 | |
| 84 | function normalizeStyle(style) { |
| 85 | if (!style) { |
no test coverage detected
searching dependent graphs…