Meteor smart package which provides a Blob polyfill.
Useful when your code uses Blob
, but you are testing Meteor packages on Travis CI
which uses PhantomJS which is lacking it.
Adding this package to your Meteor application polyfills Blob
in the global scope.
Client side only.
Add it as a dependency to tests of your package which uses Blob
. In Package.on_test
section of your package.js
file add it to api.use
. For example:
Package.on_test(function (api) {
api.use(['peerlibrary:blob@0.1.4'], 'client');
});