We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35be021 commit 5a836b7Copy full SHA for 5a836b7
lib/plugins.js
@@ -35,19 +35,11 @@ module.exports = function plugins (config) {
35
} else {
36
config = config.plugins
37
38
- const load = (plugin, options) => {
39
- if (options === null || Object.keys(options).length === 0) {
40
- try {
41
- return require(plugin)
42
- } catch (err) {
43
- console.log(err)
44
- }
45
- } else {
46
47
- return require(plugin)(options)
48
49
50
+ const load = (plugin, options = {}) => {
+ try {
+ return require(plugin)(options)
+ } catch (err) {
+ console.log(err)
51
}
52
53
0 commit comments