Open ritave opened 1 year ago
Are you using this in cloudflare workers?
If you are, I believe Blob
s are now natively supported in the runtime, so this package is no longer necessary.
I'll fix it if you have another use case for this package.
I'm using this in local Node / browser extension environment. MetaMask needs to support both Node v16 and Node v18.
In the end we decided not to pursue due to maintenance cost, but this is still a problem for this library :)
Adding the extenions solve all issues with WebPack
By the way, js-formdata-ponyfill
is CommonJS while this is ESM. It's hard to get them working nicely.
Since this package is
"type": "module"
, relative import urls must include the extension.Otherwise tools like WebPack bail out: