From 49c09299aac5a93157b592e63846bdad30ea578e Mon Sep 17 00:00:00 2001 From: Nat Alison <1278991+tesseralis@users.noreply.github.com> Date: Fri, 26 Jun 2020 17:39:55 -0700 Subject: [PATCH] fix(gatsby-plugin-mdx): set childOf extension for Mdx type definition (#25112) * set mimeTypes extension for Mdx type definition * whoops --- packages/gatsby-plugin-mdx/gatsby/source-nodes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js index b3030f492dacd..249b626728383 100644 --- a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js +++ b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js @@ -269,6 +269,11 @@ ${e}` }, }, interfaces: [`Node`], + extensions: { + childOf: { + mimeTypes: options.mediaTypes, + }, + }, }) createTypes(MdxType) }