Skip to content

Commit ba64edc

Browse files
author
Austin Wood
committed
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: gatsbyjs/gatsby#3780 Ref: mdx-js#542
1 parent 7855779 commit ba64edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-theme-mdx/gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = {
3535
{
3636
resolve: 'gatsby-plugin-compile-es6-packages',
3737
options: {
38-
modules: ['gatsby-theme-mdx']
38+
modules: ['gatsby-theme-mdx', 'gatsby-plugin-mdx']
3939
}
4040
},
4141
{

0 commit comments

Comments
 (0)