(json: MitosisComponent, options: ToSolidOptions)
| 37 | |
| 38 | // Transform <foo.bar key={value} /> to <Dynamic compnent={foo.bar} key={value} /> |
| 39 | function processDynamicComponents(json: MitosisComponent, options: ToSolidOptions) { |
| 40 | let found = false; |
| 41 | traverse(json).forEach((node) => { |
| 42 | if (isMitosisNode(node)) { |
| 43 | if (node.name.includes('.') && !node.name.endsWith('.Provider')) { |
| 44 | node.bindings.component = createSingleBinding({ code: node.name }); |
| 45 | node.name = 'Dynamic'; |
| 46 | found = true; |
| 47 | } |
| 48 | } |
| 49 | }); |
| 50 | return found; |
| 51 | } |
| 52 | |
| 53 | function getContextString(component: MitosisComponent, options: ToSolidOptions) { |
| 54 | let str = ''; |
no test coverage detected
searching dependent graphs…