Skip to content

Coinbase Wallet SDK browser pre-built usable in rollup bundles.

Notifications You must be signed in to change notification settings

DePayFi/coinbase-wallet-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinbase Wallet SDK browser pre-built

As Coinbase Wallet SDK has no ESM and UMD support, this is a webpack browser pre-built which can be used in rollup as UMD and ESM.

Development

npm run-script build
npm publish --access public

Testing with Jest (node)

In case you need to load this pre-built into a node test environment, make sure you supply globals for crypto and fetch:

// CoinbaseWalletSdk
import { Crypto } from "@peculiar/webcrypto"
global.crypto = new Crypto()
import fetch from 'cross-fetch'
global.fetch = fetch

Make sure you install @peculiar/webcrypto and cross-fetch as dev dependencies:

yarn add @peculiar/webcrypto cross-fetch --dev

About

Coinbase Wallet SDK browser pre-built usable in rollup bundles.

Resources

Stars

Watchers

Forks

Packages

No packages published