Skip to content

Commit

Permalink
Adds missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Maël Nison committed Mar 4, 2019
1 parent 89066cb commit e22e7c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/src/bootstrap/load-plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const flattenPlugins = plugins => {
return flattened
}

module.exports = async (config = {}) => {
module.exports = async (config = {}, rootDir = null) => {
// Collate internal plugins, site config plugins, site default plugins
const plugins = loadPlugins(config)
const plugins = loadPlugins(config, rootDir)

// Create a flattened array of the plugins
let flattenedPlugins = flattenPlugins(plugins)
Expand Down

0 comments on commit e22e7c1

Please sign in to comment.