-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Babel transform everything for older browsers #24
Conversation
@dawsbot I checkout the branch, used
|
Great catch @maoueh! I certainly missed that, let me take a look again. We're about to do a production deploy, so if we can solve this soon, we can put it to the test immediately 🔬 EDIT: I've given this a fair effort and cannot seem to transpile away the EDIT EDIT: It looks like the remaining spread operator comes in from https://github.com/visionmedia/debug - yup that's where the problem is. They don't ship a browser-friendly version, so I'll need to build an isomorphic version of their package |
After diving deeper, I see that this PR is not the proper fix for this problem. We've temporarily navigated around this issue by moving our use of dfuse to the server-side once-again. I'll make another PR or send ideas when there's an isomorphic debug library |
Babel 7 is able to transpile modules found in The debug maintainer even suggest that and its the main reason they want to drop support for ES5 in the core library. I have a local copy of your branch, I'll fix that, and I since it updates rollup, that was even more welcome PR. |
Incredible, thank you for taking this and adding to it @maoueh! Can you tag me after on the diff or the PR so I can learn what the final diff ends up as? |
@dawsbot Worked on this most of Friday afternoon and was not able to solve it. Rollup seems to be playing against me. I'll need to revisit this later on. I did not drop the ball, will at least update the full config and everything. I might decided so switch to Webpack also, which I know more than Rollup. I'll see. |
Superb, thank you for taking a look on this. It's not fun to point out, but I think there will be several steps to getting this browser-ready. Here's what we've found:
Luckily, we're no longer in a rush on this, we've moved dfuse entirely to the server-side so that users do not get this package in their browser bundles 👌 |
While the library is indeed not isomorphic in the strict sense of the actual definition, the The UMD bundle I create use this special If you had a problem with And while working on the issue, I noted another inconsistency in my build pipeline. The module version file is named |
Closes #23
I tested this locally in the Everipedia web application and successfully created https://bloks.io/transaction/e85fc2537f739d9912107071f2e48cc110e2b43ba5ede257c53ed5d5a5cd5e8f using Scatter.
If merging this is too risky for y'all just wait a week, we're going to publish this and use it in production immediately to see if this mitigates the issue we're seeing.
File Sizes (NO CHANGE) 🙌
Obtained via
ls -lh | awk '{print $9, $5}' | grep "\.js"
Before:
After: