Babel: Only change browserslist defaults if no config file exists

Created on 9 May 2019  路  1Comment  路  Source: babel/babel

https://github.com/babel/babel/pull/8897#issuecomment-490659840

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

Has PR enhancement preset-env

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings