Skip to content
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

Env default #49

Merged
merged 5 commits into from
Jan 27, 2017
Merged

Env default #49

merged 5 commits into from
Jan 27, 2017

Conversation

yavorsky
Copy link
Member

@yavorsky yavorsky commented Jan 23, 2017

This PR includes 2. from #48
Also, it removes 'es2015' and 'es2016' presets from defaults in favor of babel-preset-env. This solution wouldn't break anything for people who are using no configs and allow them to prevent writing all presets in presets array and just add env option to pick only plugins they needed. Without any specified target it works exactly like babel-preset-latest.

Possible config:

plugins: {
  babel: {
    env: {
      targets: {
        safari 7, 
        browsers: '>2%'
      },
      useBuiltIns: true
    }
  }
}

babel: {
env: {
targets: {
safari 7, // explicitly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:

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.

None yet

3 participants