diff --git a/gatsby-config.js b/gatsby-config.js index 8df88ad..697f8f3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -6,5 +6,14 @@ module.exports = { /* Your site config here */ - plugins: ['gatsby-ipfs-web-wallet', 'bch-wallet-plugin-postoffice'] + plugins: [ + 'gatsby-ipfs-web-wallet', + 'bch-wallet-plugin-postoffice', + { + resolve: 'gatsby-plugin-compile-es6-packages', + options: { + modules: ['bch-wallet-plugin-postoffice'] + } + } + ] } diff --git a/package.json b/package.json index 9214ed9..d43dd75 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,10 @@ "test": "npm run lint" }, "dependencies": { - "bch-wallet-plugin-postoffice": "^1.0.0", + "bch-wallet-plugin-postoffice": "^1.0.7", "gatsby": "^2.23.7", - "gatsby-ipfs-web-wallet": "^1.5.1" + "gatsby-ipfs-web-wallet": "^1.5.1", + "gatsby-plugin-compile-es6-packages": "^2.1.0" }, "repository": { "type": "git",