Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[WIP] Add ecmascript target to babel-preset-env #6731
changed the title from
WIP: Add ecmascript target to babel-preset-env
Add ecmascript target to babel-preset-env
Nov 2, 2017
This PR makes it much easier for library authors to explicitly support a certain minimum ECMAscript version, or even publish multiple versions of their code (targeting different ECMAScript specs). I think this is a nice alternative to requiring consumers to run arbitrary transformations deeply in
referenced this pull request
Jan 5, 2018
I haven't strong confidence about that and there will be not much use cases. It's better to know needed targets instead of just es version, which not optimized for common cases.
For example, we have all modern browsers (and stable node) which support es2015-es2017. And ie.. which doesn't.
By using specific targets we could more accurately specify what plugins to avoid. Even ie will ignore some of es2015 transformations and safari TP - some of stage-3. And having
But on the other hand, the idea to publish multiple bundles for library authors is cool!