@civic/bitgo
v11.9.2-rc1
Published
Bundled webpack version of the bitgo SDK
Downloads
6
Maintainers
Keywords
Readme
BitGo Javascript SDK bundler for NodeJS
Description
This tool allows to bundle BitGo Javascript SDK for nodeJS using webpack.
At its current state bitgo lib has many transitive dependencies which makes the node_modules
directory size over 400MB.
This makes it impossible to use bitgo with AWS Lambdas because of the current 250MB limit per layer.
This service contains a webpack config which allows to bundle the BitGo Javascript SDK along with required dependencies. The resulting bundle is much more compact and can be used as a drop-in replacement for NPM version.
NB: The bundler has been tested with bitgo v11.7.0. Using a different version of BitGo JS SDK might affect the bundle integrity. Please test extensively before putting into production!
Requirements
node 12
Usage
- Specify the required version of the BitGo Javascript SDK in package.json.
- Run
npm install
- Run
npm publish
- Replace the NPM version of BitGo Javascript SDK in your project's package.json
"@civic/bitgo": "@<version>"
- Replace any
require('bitgo')
calls in your code with
const BitGoJS = require('@civic/bitgo');