Skip to content

Switch from babel-preset-es2015 to babel-preset-env#32

Open
OskarPersson wants to merge 1 commit into
wildlyinaccurate:masterfrom
OskarPersson:master
Open

Switch from babel-preset-es2015 to babel-preset-env#32
OskarPersson wants to merge 1 commit into
wildlyinaccurate:masterfrom
OskarPersson:master

Conversation

@OskarPersson
Copy link
Copy Markdown

See http://babeljs.io/env for more information

@wildlyinaccurate
Copy link
Copy Markdown
Owner

Hey, thanks for submitting this! My main concern with using the env preset is that it would require dropping support for older browsers. What would be the benefit of using the env preset over es2015?

@OskarPersson
Copy link
Copy Markdown
Author

OskarPersson commented May 24, 2018

From my understanding, using env without any configuration should be the same as using es2015:

Without any configuration options, @babel/preset-env behaves exactly the same as @babel/preset-es2015, @babel/preset-es2016 and @babel/preset-es2017 together (or the deprecated babel-preset-latest).

https://github.com/babel/babel/tree/master/packages/babel-preset-env#babelpreset-env----

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants