Bascially this is just a packaged version of canvas-toBlob, so Pull Request is not accepted here.
yarn add to-blob
// Auto polyfill
import 'to-blob'
myCanvasElement.toBlob(blob => {
// Manipulate blob
})
to-blob © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @_egoistlily