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

Only change browserslist defaults if no config file exists #9962

Closed
danez opened this issue May 9, 2019 · 2 comments
Closed

Only change browserslist defaults if no config file exists #9962

danez opened this issue May 9, 2019 · 2 comments
Labels
Has PR i: enhancement outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env
Milestone

Comments

@danez
Copy link
Member

danez commented May 9, 2019

#8897 (comment)

I guess the best solution would be to check ourself if there is a browserlist config in the fs if there are not targets specified. We could do this with browserlist.findConfig(from). If we find one we do not change defaults. But that would also be a breaking change so I guess we would need to wait for v8. https://github.com/browserslist/browserslist/blob/master/node.js#L238

@taralx
Copy link

taralx commented Dec 16, 2019

FYI it's "browserslist" and not "browserlist", which is why I did not originally find this one. :)

@JLHwung
Copy link
Contributor

JLHwung commented Mar 23, 2021

In Babel 8, preset-env (and other targets awared plugins) will defaults to defaults, no ie 11.

Closing this issue as it has been fixed in #12989.

@JLHwung JLHwung closed this as completed Mar 23, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 23, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Has PR i: enhancement outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env
Projects
None yet
3 participants