Closed alanshaw closed 3 years ago
Turns out, this is already in the published package and you can use in webpack 4 like this:
import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js'
This library seems broken
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Create a prebuilt library for folks having bundling issues (like webpack 4 as used by create react app and scaffold.eth).
e.g. https://github.com/web3-storage/web3.storage/issues/304