runConfigHook = async (name, plugins) => {
		for (const plugin of plugins) {
			if (!plugin[name]) continue;

			const res = await plugin[name](options);
			if (res) {
				if (res.plugins) {
					throw new Error(`In plugin ${plugin.name}: Plugin method "${name}()" must not return a "plugins" property.`);
				}
				options = mergeConfig(options, res);
			}
		}
	}
@param {keyof import('wmr').Plugin} name
@param {import('wmr').Plugin[]} plugins