From e738775ce9e00bb64884a1bb0fb7bc0f89b0260a Mon Sep 17 00:00:00 2001 From: Austin Wood Date: Thu, 29 Aug 2019 15:27:59 -0700 Subject: [PATCH] Transpile gatsby-plugin-mdx with Babel for theme Unclear whether this is a steadfast solution or a patch for the issue of having ES6+ code in a npm dependency, but for now it allows the docs site to be run locally. Ref: https://github.com/gatsbyjs/gatsby/issues/3780 Ref: https://github.com/mdx-js/mdx/issues/542 --- packages/gatsby-theme-mdx/gatsby-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-theme-mdx/gatsby-config.js b/packages/gatsby-theme-mdx/gatsby-config.js index 687d1b6ed..7368d95fd 100644 --- a/packages/gatsby-theme-mdx/gatsby-config.js +++ b/packages/gatsby-theme-mdx/gatsby-config.js @@ -35,7 +35,7 @@ module.exports = { { resolve: 'gatsby-plugin-compile-es6-packages', options: { - modules: ['gatsby-theme-mdx'] + modules: ['gatsby-theme-mdx', 'gatsby-plugin-mdx'] } }, {