(plugin)
| 67 | } |
| 68 | |
| 69 | export function parseConfig(plugin) { |
| 70 | let path; |
| 71 | let config; |
| 72 | if (isArray(plugin)) { |
| 73 | [path, config] = plugin; |
| 74 | } else if (isPlainObject(plugin) && !isNil(plugin.path)) { |
| 75 | ({ path, ...config } = plugin); |
| 76 | } else { |
| 77 | path = plugin; |
| 78 | } |
| 79 | |
| 80 | return [path, config || {}]; |
| 81 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…