MCPcopy
hub / github.com/rollup/rollup / getCamelizedPluginBaseName

Function getCamelizedPluginBaseName

cli/run/commandPlugins.ts:105–113  ·  view source on GitHub ↗
(pluginText: string)

Source from the content-addressed store, hash-verified

103}
104
105function 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
115async function requireOrImport(pluginPath: string): Promise<any> {
116 try {

Callers 1

loadAndRegisterPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…