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:
parent
e315144f91
commit
3826051d01
@ -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')
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user