diff --git a/build/webpack.node.js b/build/webpack.node.js index fd1d391b..76bd5cb5 100644 --- a/build/webpack.node.js +++ b/build/webpack.node.js @@ -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, diff --git a/package.json b/package.json index 799ca5ca..9fd12a8c 100644 --- a/package.json +++ b/package.json @@ -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",