function resolveGlobals(providedGlobals, enabledEnvironments) {
	return Object.assign(
		Object.create(null),
		...enabledEnvironments
			.filter(env => env.globals)
			.map(env => env.globals),
		providedGlobals,
	);
}
Combines the provided globals object with the globals from environments
@param {Record<string, GlobalConf>} providedGlobals The 'globals' key in a config
@param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments
@returns {Record<string, GlobalConf>} The resolved globals object