Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getConfig(lang) {
const { userConfig } = api.service;
const { plugins } = userConfig.getConfig({ force: true });
const pluginConfig = getPluginConfig(plugins, 'umi-plugin-react');
return formatConfigs(configs, {
lang,
groupMap,
}).map(p => {
const [haveKey, value] = useConfigKey(pluginConfig, p.name);
if (haveKey) {
p.value = value;
}
return p;
});
}
}).map(p => {
const [haveKey, value] = useConfigKey(pluginConfig, p.name);
if (haveKey) {
p.value = value;
}
return p;
});
}