Give the whole config access to plugins if needed.

This commit is contained in:
Mathieu TUDISCO 2020-04-17 11:44:51 +02:00 committed by GitHub
parent 51d0dd3252
commit 074e7aed60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export default function(plugins, config) {
const applyConfiguredPrefix = selector => {
return prefixSelector(config.prefix, selector)
}
const getConfigValue = (path, defaultValue) => _.get(config, path, defaultValue)
const getConfigValue = (path, defaultValue) => path ? _.get(config, path, defaultValue) : config
plugins.forEach(plugin => {
if (plugin.__isOptionsFunction) {