-
Notifications
You must be signed in to change notification settings - Fork 65
Js generators break dApps #612
Comments
Hey @mqklin Thanks for reporting. Can you please provide more information about the error you're seeing. I don't have an ipad or Edge browser to test with. |
It would not be very easy to replace the ipfs depencency since most of our architecture relies on that. Depending on your situation though there might be good ways around this :) |
I believe we are transpiling our library to es5, but it seems like this is not sufficient in your case. Do you have any other suggestions for how this could potentially be fixed? Which features of 3box-js are you currently using in your dapp btw? |
We use only |
Actually, if those are the only two functions you are using you could use the If you end up making an issue in the ipfs repo, let me know so I can track it :) |
We've switched to
Also we are trying to keep all vendors in |
Hey sorry @mqklin I forgot to mention. You can import it like described here: https://github.com/3box/3box-js#optimize-build-for-read-only-3box-api |
I've included
If I'm not mistaken, they point to the same part of code. As you can see, only |
Thanks, I had to read the docs more carefully! I've just tried this code: Also it would be super cool if you had a babel-plugin for tree-shaking like lodash has, so user will type |
Ok, that seems like a bug. It should do tree shaking. @zachferland would you mind having a look at this? |
Sorry missed that you made two comments.
Thanks for finding this! Will definitely have to look into and fix this! |
Describe the bug
Projects that use 3box (like https://beta.zerion.io) fails in browsers like Edge or Safari (iPad)
To Reproduce
Expected behavior
Site should be open
Desktop (checked on browserstack):
Tablet:
Additional context
After a quick search I found that
ipfs
uses generators, so maybe you should replace it with another library.The text was updated successfully, but these errors were encountered: