Skip to content

Commit 8224af5

Browse files
d4rekanguokpieh
authored andcommitted
fix(gatsby-plugin-mdx): pass the correct options to setParserP… (#18243)
* pass correct options to setParserPlugins * ensure plugin.options is not undefined Co-Authored-By: Michal Piechowiak <[email protected]> * chore: format
1 parent 86a376d commit 8224af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-mdx/gatsby/source-nodes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = (
9090
debug(`required`, plugin)
9191
if (_.isFunction(requiredPlugin.setParserPlugins)) {
9292
for (let parserPlugin of requiredPlugin.setParserPlugins(
93-
plugin.pluginOptions
93+
plugin.options || {}
9494
)) {
9595
if (_.isArray(parserPlugin)) {
9696
const [parser, parserPluginOptions] = parserPlugin

0 commit comments

Comments
 (0)