(pluginText: string)
| 103 | } |
| 104 | |
| 105 | function getCamelizedPluginBaseName(pluginText: string): string { |
| 106 | return (pluginText.match(/(@rollup\/plugin-|rollup-plugin-)(.+)$/)?.[2] || pluginText) |
| 107 | .split(/[/\\]/) |
| 108 | .slice(-1)[0] |
| 109 | .split('.')[0] |
| 110 | .split('-') |
| 111 | .map((part, index) => (index === 0 || !part ? part : part[0].toUpperCase() + part.slice(1))) |
| 112 | .join(''); |
| 113 | } |
| 114 | |
| 115 | async function requireOrImport(pluginPath: string): Promise<any> { |
| 116 | try { |
no outgoing calls
no test coverage detected
searching dependent graphs…