Skip to content

Commit

Permalink
Allow gatsbyRemarkPlugins string reference (gatsbyjs#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernanberg authored and ChristopherBiscardi committed Jun 27, 2019
1 parent efc5713 commit 4d111e9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({

// return list of remarkPlugins
const userPlugins = gatsbyRemarkPlugins
.map(plugin => (_.isString(plugin) ? { resolve: plugin } : plugin))
.filter(plugin => {
if (_.isFunction(require(plugin.resolve))) {
return true;
Expand Down

0 comments on commit 4d111e9

Please sign in to comment.