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

.browserslistrc is ignored by babel-preset-env #7427

Closed
thasmo opened this issue Feb 24, 2018 · 2 comments
Closed

.browserslistrc is ignored by babel-preset-env #7427

thasmo opened this issue Feb 24, 2018 · 2 comments
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@thasmo
Copy link

thasmo commented Feb 24, 2018

Currently a project's .browserslistrc file is not read by babel-preset-env. I've seen this issue, which states that it is working in beta 39, but for me this is not working in beta 40.

This .babelrc works as expected, ignoring the existing .browserslistrc file.

{
    "presets": [
        ["@babel/preset-env", {
            "useBuiltIns": "entry",
            "targets": {
                "browsers": ["chrome >= 63"]
            }
        }],
        "@babel/preset-stage-3"
    ]
}

Using this .babelrc does not use the .browserslistrc file.

{
    "presets": [
        ["@babel/preset-env", {
            "useBuiltIns": "entry",
        }],
        "@babel/preset-stage-3"
    ]
}

Software versions:

  • node: 9.5.0
  • npm: 5.6.0
  • webpack: 3.11.0
  • @babel/core: 7.0.0-beta.40
  • @babel/preset-env: 7.0.0-beta.40
  • babel-loader: 8.0.0-beta.0
@babel-bot
Copy link
Collaborator

Hey @thasmo! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@thasmo thasmo changed the title .browserslistrc is ignroed by babel-preset-env .browserslistrc is ignored by babel-preset-env Feb 24, 2018
@thasmo
Copy link
Author

thasmo commented Feb 25, 2018

Everything works fine, this is an issue with the babel-loader cache.

@thasmo thasmo closed this as completed Feb 25, 2018
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 27, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

2 participants