Skip to content

Commit 074e7ae

Browse files
authored
Give the whole config access to plugins if needed.
1 parent 51d0dd3 commit 074e7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/processPlugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function(plugins, config) {
2626
const applyConfiguredPrefix = selector => {
2727
return prefixSelector(config.prefix, selector)
2828
}
29-
const getConfigValue = (path, defaultValue) => _.get(config, path, defaultValue)
29+
const getConfigValue = (path, defaultValue) => path ? _.get(config, path, defaultValue) : config
3030

3131
plugins.forEach(plugin => {
3232
if (plugin.__isOptionsFunction) {

0 commit comments

Comments
 (0)