Bundled webpack version of the bitgo SDK

Usage no npm install needed!

<script type="module">
  import civicBitgo from 'https://cdn.skypack.dev/@civic/bitgo';


BitGo Javascript SDK bundler for NodeJS


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!


node 12


  1. Specify the required version of the BitGo Javascript SDK in package.json.
  2. Run npm install
  3. Run npm publish
  4. Replace the NPM version of BitGo Javascript SDK in your project's package.json
"@civic/bitgo": "@<version>"
  1. Replace any require('bitgo') calls in your code with
const BitGoJS = require('@civic/bitgo');