diff --git a/gatsby-node.js b/gatsby-node.js index 9153160e..8515ad1b 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,4 +1,3 @@ -const webpack = require('webpack') const { createMarkdownFields } = require('./gatsby/createMarkdownFields') const { createExif } = require('./gatsby/createExif') const { @@ -116,20 +115,3 @@ exports.onPostBuild = async ({ graphql }) => { return Promise.resolve() } - -// Fix web3 -// https://github.com/ethereum/web3.js/issues/1105#issuecomment-446039296 -exports.onCreateWebpackConfig = ({ actions }) => { - actions.setWebpackConfig({ - resolve: { - alias: { - // replace native `scrypt` module with pure js `js-scrypt` - scrypt: 'js-scrypt' - } - }, - plugins: [ - // ignore these plugins completely - new webpack.IgnorePlugin(/^(?:electron|ws)$/) - ] - }) -} diff --git a/package-lock.json b/package-lock.json index f93730c8..6eaa2bee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1216,9 +1216,9 @@ } }, "@ethersproject/providers": { - "version": "5.0.0-beta.155", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.0.0-beta.155.tgz", - "integrity": "sha512-fA4lsmkFO2LCcso1Ayp1jfjcAcOGDPm15NRJMxLP34V9FsEqFcWkJbG3NET5DwdoMwwgzKz5Gx2aTGNbc6cmcw==", + "version": "5.0.0-beta.159", + "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.0.0-beta.159.tgz", + "integrity": "sha512-Z/PMP/Zb+l3jHsToLr0PuP1Vd6sXZFyJCRRGgB1APEZIaTSYmaakiR9OXtq8wz7avCNo3pjVl8UpNn2LOH9GjQ==", "requires": { "@ethersproject/abstract-provider": ">=5.0.0-beta.131", "@ethersproject/abstract-signer": ">=5.0.0-beta.132", @@ -1234,7 +1234,8 @@ "@ethersproject/rlp": ">=5.0.0-beta.126", "@ethersproject/strings": ">=5.0.0-beta.130", "@ethersproject/transactions": ">=5.0.0-beta.128", - "@ethersproject/web": ">=5.0.0-beta.129" + "@ethersproject/web": ">=5.0.0-beta.129", + "ws": "7.2.3" } }, "@ethersproject/random": { diff --git a/package.json b/package.json index 92bb6cd5..e126607e 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "not op_mini all" ], "dependencies": { - "@ethersproject/providers": "5.0.0-beta.155", + "@ethersproject/providers": "^5.0.0-beta.159", "@ethersproject/units": "^5.0.0-beta.132", "@loadable/component": "^5.12.0", "@web3-react/core": "^6.0.9",