Bundles the library both as plain CommonJS (via main) and as UMD (via browserify, with bundle indicated via browser), allowing it to easily be used in both node (by a standard require) and in the browser (via rollup).
Also strips out unnecessary dependencies, mostly those supporting jest. Uses the lighter mocha (which was already being used to drive the property tests anyway) to drive the tests instead.
Bundles the library both as plain CommonJS (via
main
) and as UMD (via browserify, with bundle indicated viabrowser
), allowing it to easily be used in both node (by a standardrequire
) and in the browser (via rollup).Also strips out unnecessary dependencies, mostly those supporting jest. Uses the lighter mocha (which was already being used to drive the property tests anyway) to drive the tests instead.