( importName: string, displayName: string, pluginType: string, )
| 121 | } |
| 122 | |
| 123 | function buildPluginString( |
| 124 | importName: string, |
| 125 | displayName: string, |
| 126 | pluginType: string, |
| 127 | ): string { |
| 128 | if (pluginType === 'function') { |
| 129 | return `${importName}()` |
| 130 | } |
| 131 | return `{ name: ${JSON.stringify(displayName)}, render: <${importName} /> }` |
| 132 | } |
| 133 | |
| 134 | export const transformAndInject = ( |
| 135 | code: string, |
no outgoing calls
no test coverage detected