1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix for being able to use npm link with @oceanprotocol/react

This commit is contained in:
Matthias Kretschmann 2020-07-30 20:33:51 +02:00
parent e315144f91
commit 3826051d01
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,3 +1,4 @@
const path = require('path')
const createFields = require('./gatsby/createFields')
const createMarkdownPages = require('./gatsby/createMarkdownPages')
@ -30,6 +31,14 @@ exports.onCreateWebpackConfig = ({ actions }) => {
fs: 'empty'
},
// fix for 'got'/'swarm-js' dependency
externals: ['got']
externals: ['got'],
// fix for being able to use `npm link` with @oceanprotocol/react
// see https://github.com/facebook/react/issues/13991
resolve: {
alias: {
react: path.resolve('./node_modules/react')
}
}
})
}