Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function resolveConfig(
base: Config,
args: BaseGenerateArguments
): Required {
const { components = [], require = [] } = args.env
? getConfig(base, args.env)
: base;
return {
components:
args.components && args.components.length ? args.components : components,
require: [...require, ...(args.require || [])]
};
}