-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Try restricting what we transpile to the last couple chromes. #25701
Conversation
Only doing this to see if there's a significant size difference.
Interesting. Pretty massive chunk movement: http://iscalypsofastyet.com/branch?branch=try/split-builds-by-ua vendors~build drops by 2k |
Poking at the bundle analyzer, I was surprised that the core-js Promise and Map where still being pulled into vendors~build. Turns out this is coming from |
Should we try and internalize/transpile wpcom.js the way we do notifications-panel? I don't think it's code is incompatible with ours |
I'd rather not, as it makes us a special consumer and changes the expectation of what the library is. I think ideally we redo wpcom.js to explicitly state that clients must polyfill Promise / Set / Map / whatever if they want things to work and publish is as es5 code. It's the same road that React is taking. |
Hm. I saw Babel in use for tests but I didn't see any mechanism which loads it for the build. Maybe I'm overlooking something in the code itself? I checked the |
@dmsnell that is curious! It looks like the magic is done by |
ha! I missed that |
Nice article about the future of transpiling your dependencies: https://babeljs.io/blog/2018/06/26/on-consuming-and-publishing-es2015+-packages The article mentions a nice trick how to publish two bundles at once and let the browser choose the one it's capable of executing: two |
This branch needs a rebase. Are we continuing with this PR? |
Yeah, once #26531 lands we can revist this. |
Also @blowery - I forgot about this issue - just this week we were discussing the possibility of moving |
Closing in favor of #30420 |
Only doing this to see if there's a significant size difference.