Skip to content

Commit

Permalink
Transpile gatsby-plugin-mdx with Babel for theme
Browse files Browse the repository at this point in the history
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: gatsbyjs/gatsby#3780
Ref: #542
  • Loading branch information
Austin Wood committed Aug 29, 2019
1 parent 7855779 commit ba64edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-mdx/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
{
resolve: 'gatsby-plugin-compile-es6-packages',
options: {
modules: ['gatsby-theme-mdx']
modules: ['gatsby-theme-mdx', 'gatsby-plugin-mdx']
}
},
{
Expand Down

0 comments on commit ba64edc

Please sign in to comment.