-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Target Babel to latest Chrome Versions in dev #3806
Conversation
I'm a bit concerned doing this - the amount of times I have to swap to FF and/or Safari (and really should be IE as well) to test the platforms and address issues is a lot. I fear that this may make it more difficult to have all-over compatibility. (Since the dev tools is important when looking at other browsers) |
Ok fair. So what about these 3 options :
I would rather have the 1. option since I am using Chrome most of the time, and having Safari support in dev mode right now means not using any ES2016 features. I could also go with |
We need to make is easier to swap browsers, not more difficult. I would not want to jump through hoops to test and run. (As an aside, actually thinking of swapping my default way from Chrome just to ensure we are getting some better coverage cross browser, each time I try in others there are obvious nigglies that pop up, rather catch it earlier) |
PS: I also prefer a dev build that is closer to the production build instead of further away - I'd rather not have too many repeats of the Transfer issues out there which we couldn't replicate. (I'd rather have to deal with one thing only, Uglify, than more code-generation that is not in-sync) |
Okay, I'll change to option 3. then with opt-in. Still think that most users running |
Well the dev environment won't be the same as the build one anyway ; we don't want to run UglifyJS and stuff while developing. That's why there is: |
The point is that with that setup it really doesn't really get used that at all, expect maybe by you in some cases - just another option that doesn't get full exposure and just seems complicated. (I wouldn't even know how to start it, let alone remember all the required options.) Much easier to actually just build a full Parity, since it is "standard" and actually reflects as-run - even though it takes ages. And yes, I mentioned Uglify - already have that to deal with, more moving parts is a no-go by default. |
Well it would be as simple as running The thing is that the dev environment isn't a test environment, but really something to make development easier and faster. There are already those differences (in dev mode):
The point is : we want to make developing the UI easier and not necessarily reproducing exactly the production environment at each step of developing a new feature. I think that before merging a PR, we should use this |
Happy with opt-in as it is. The point is though - if the dev environment doesn't replicate compiled in terms of functionality & browser compatibility, it doesn't matter how fast it is, it is lacking. (Things like extracting CSS, dupes & commons doesn't change behaviour) I don' think running another difficult to configure environment (as it stands) is a solution since it is an extra step since it will get missed and as it stands we are not getting through everything fast enough. If that is the solution, we should just develop against it. (Which is not possible and very unproductive.) |
Use
babel-preset-env
to target Babel to latest Chrome Versions.This increases re-build speeds by 25% (from ~4s to ~3s). It isn't much yet, but could eventually get better while Chrome is shipping new features.