News for hackers. Stuff that matters.
Re:React 16 by chrismorgan on Wednesday September 27, 2017 @01:59AM (#15345249)
For Topicbox (which doesn’t use React, but that’s irrelevant), I decided a good signal to check was Object.values; if it’s missing, we include core-js. Thus, older browsers (IE, Safari≤10.0, iOS≤10.2, Chrome≤53, Firefox≤46 and Edge≤13?) will pull that in, but recent versions of all browsers won’t need the weight (the check is very light, and the overhead roughly `Object.values||require('core-js')`), and you have a solid and dependable ES6+ base to build on.
Re:React 16 by realityking on Wednesday September 27, 2017 @05:15AM (#15346075)
I assume you're then dynamically loading core-js when it's required? Dynamic module loading is something we've avoided so far, maybe we need to start looking into that.
Re:React 16 by chrismorgan on Thursday September 28, 2017 @12:31AM (#15354617)