From 8ca90b2f00a16ff3048a8b3e37ad2dcb2c3c10a5 Mon Sep 17 00:00:00 2001 From: Nat Alison <1278991+tesseralis@users.noreply.github.com> Date: Thu, 18 Jun 2020 18:40:01 -0700 Subject: [PATCH 1/2] set mimeTypes extension for Mdx type definition --- packages/gatsby-plugin-mdx/gatsby/source-nodes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js index b3030f492dacd..525689945853c 100644 --- a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js +++ b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js @@ -269,6 +269,9 @@ ${e}` }, }, interfaces: [`Node`], + extensions: { + mimeTypes: options.mediaTypes, + }, }) createTypes(MdxType) } From d6d2e933736c96b71c578d237ededa80c98bd4eb Mon Sep 17 00:00:00 2001 From: Nat Alison <1278991+tesseralis@users.noreply.github.com> Date: Thu, 18 Jun 2020 18:43:36 -0700 Subject: [PATCH 2/2] whoops --- packages/gatsby-plugin-mdx/gatsby/source-nodes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js index 525689945853c..249b626728383 100644 --- a/packages/gatsby-plugin-mdx/gatsby/source-nodes.js +++ b/packages/gatsby-plugin-mdx/gatsby/source-nodes.js @@ -270,7 +270,9 @@ ${e}` }, interfaces: [`Node`], extensions: { - mimeTypes: options.mediaTypes, + childOf: { + mimeTypes: options.mediaTypes, + }, }, }) createTypes(MdxType)