MCPcopy
hub / github.com/rollup/rollup / getConfigList

Function getConfigList

cli/run/loadConfigFile.ts:184–192  ·  view source on GitHub ↗
(configFileExport: any, commandOptions: any)

Source from the content-addressed store, hash-verified

182}
183
184async function getConfigList(configFileExport: any, commandOptions: any): Promise<any[]> {
185 const config = await (typeof configFileExport === 'function'
186 ? configFileExport(commandOptions)
187 : configFileExport);
188 if (Object.keys(config).length === 0) {
189 return error(logMissingConfig());
190 }
191 return Array.isArray(config) ? config : [config];
192}

Callers 1

loadConfigFileFunction · 0.85

Calls 2

errorFunction · 0.90
logMissingConfigFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…