Skip to content

Commit

Permalink
chore(blockchain-link): replace cross-fetch in workers webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Dec 18, 2024
1 parent cc01b45 commit bb1b85f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/blockchain-link/webpack/workers.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ module.exports = {
stream: require.resolve('stream-browserify'),
},
},
externals: [
{
// Replace cross-fetch with native fetch, otherwise it will use node-fetch and fails to build
'cross-fetch': 'fetch',
},
],
performance: {
hints: false,
},
Expand Down

0 comments on commit bb1b85f

Please sign in to comment.