packages/nitro-webpack/lib/utils.js
function getEnrichedConfig(rule, config) {
	if (!config) { return rule; }

	if (config.include) {
		rule.include = config.include;
	}
	if (config.exclude) {
		rule.exclude = config.exclude;
	}
	return rule;
}
function getEnrichedConfig(rule, config) {
	if (!config) { return rule; }

	if (config.include) {
		rule.include = config.include;
	}
	if (config.exclude) {
		rule.exclude = config.exclude;
	}
	return rule;
}
function getEnrichedConfig ( rule , config ) { if ( ! config ) { return rule ; } if ( config . include ) { rule . include = config . include ; } if ( config . exclude ) { rule . exclude = config . exclude ; } return rule ; }
add optional include or exclude configs to rule
add optional include or exclude configs to rule