Skip to content

Commit

Permalink
try babel plugin for default from in mdx-deck
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Jul 7, 2019
1 parent eaf83a5 commit 37dc093
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ module.exports = {
icon: `src/images/blueicon.jpg`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-compile-es6-packages`,
options: {
modules: [`@mdx-deck/gatsby-theme`]
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// `gatsby-plugin-offline`,
Expand Down
5 changes: 5 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exports.onCreateBabelConfig = function onCreateBabelConfig({ actions }) {
actions.setBabelPlugin({
name: `@babel/plugin-proposal-export-default-from`
})
}
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "1.0.0",
"author": "Marcy Sutton <[email protected]>",
"dependencies": {
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@mdx-js/mdx": "^1.0.10",
"@mdx-js/react": "^1.0.6",
"autoprefixer": "^9.6.1",
Expand Down

0 comments on commit 37dc093

Please sign in to comment.