-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Two core-js dependencies #1421
Comments
Well spotted! Thanks for bringing this up @dmnd. Some dev dependencies (like |
I'm using Relay in production, so in the interest of asset sizes, I'd prefer to collapse the duplicate dependencies sooner where possible 😉 Who do we need to convince to release a proper version of fbjs? |
First thing's first is probably opening an issue on the repo, but I see you just did that... I can also ping internally to ask why we have the alpha release at all anyway (it's not tagged in GitHub). |
I don't think the double dependency is much of an issue since Speaking of bundle size; I hope I am really exited about |
Yep @yasserkaddour. I'd like to see more granular modular imports moving forward too. Let's make it happen. |
🎉 @wincent good to hear. Can I know what |
@yasserkaddour, I believe it provides the regenerator runtime (which we're not currently using, but could use in the future for |
+1 for the size reduction |
Sorry, I wasn't clear; I wanted to know what subset of es5/es6 function is used by relay? and why use a polyfill instead of a transpiler? |
I could give you a semi-accurate answer off the top of my head, but your best bet is probably to have a skim through the source code and have a look. |
How soon do you think until we can provide our own polyfills? We have 3 differents versions of core-js in our bundle and it's wasting a lot of space. Also one of those versions is causing relay to crash because Set.size is null: console.log('+++++++ LOADING APP ++++++++');
console.log('native set', (new Set()).size);
const CoreJsSet = require('babel-runtime/core-js/set').default;
console.log('babel-runtime/core-js set', (new CoreJsSet()).size); |
@sibelius Great to hear! Thank you |
Relay depends on core-js twice:
These two versions aren't semver compatible, so it means a project that includes relay will have two copies of core-js in use. It'd be nice to collapse this dependency into a single version of core-js.
You can probably fix this by depending on fbjs 0.9.0-alpha.1 but maybe that's labelled alpha for a reason?
The text was updated successfully, but these errors were encountered: