feat: use cross-fetch instead of node-fetch (#19621)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@ -58,7 +58,7 @@ function generateConfig(configType, format) {
|
||||
'crypto-hash',
|
||||
'jayson/lib/client/browser',
|
||||
'js-sha3',
|
||||
'node-fetch',
|
||||
'cross-fetch',
|
||||
'rpc-websockets',
|
||||
'secp256k1',
|
||||
'superstruct',
|
||||
@ -87,9 +87,10 @@ function generateConfig(configType, format) {
|
||||
'bs58',
|
||||
'buffer',
|
||||
'crypto-hash',
|
||||
'http',
|
||||
'https',
|
||||
'jayson/lib/client/browser',
|
||||
'js-sha3',
|
||||
// 'node-fetch', will resolve to whatwg-fetch
|
||||
'rpc-websockets',
|
||||
'secp256k1',
|
||||
'superstruct',
|
||||
@ -99,6 +100,8 @@ function generateConfig(configType, format) {
|
||||
break;
|
||||
}
|
||||
case 'iife': {
|
||||
config.external = ['http', 'https'];
|
||||
|
||||
config.output = [
|
||||
{
|
||||
file: 'lib/index.iife.js',
|
||||
|
Reference in New Issue
Block a user