Skip to content

Commit

Permalink
fix: 🐛 node-fetch: request is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
hzz780 committed Jul 3, 2024
1 parent 0e2969b commit ed61483
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build/webpack.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ const nodeConfig = {
// 'scryptsy$': '../scrypt-polyfill.js',
}
},
externals: {
'node-fetch': {
commonjs2: 'node-fetch',
commonjs: 'node-fetch',
umd: 'node-fetch',
root: 'node-fetch'
}
},
target: 'node',
optimization: {
removeEmptyChunks: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aelf-sdk",
"version": "3.4.14",
"version": "3.4.14-beta.1",
"description": "aelf-sdk js library",
"main": "dist/aelf.cjs.js",
"browser": "dist/aelf.umd.js",
Expand Down

0 comments on commit ed61483

Please sign in to comment.