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

SUGGESTION: Modify useBuiltIns for babel-preset-env in babelrc #104

Open
ecbrodie opened this issue Nov 30, 2018 · 0 comments
Open

SUGGESTION: Modify useBuiltIns for babel-preset-env in babelrc #104

ecbrodie opened this issue Nov 30, 2018 · 0 comments

Comments

@ecbrodie
Copy link

The supported values for the useBuiltIns option of babel-preset-env config changed from Babel v6 to Babel v7. It used to be just a boolean in v6. However, in v7, the supported values are false, "usage" or "entry". (https://babeljs.io/docs/en/babel-preset-env#usebuiltins)

I suggest that babel-upgrade supports automatically converting an option of useBuildIns = true to one of "usage" or "entry". This helps remove a manual operation that the developer will have to do, possibly forget about (since this option change is not mentioned in the Babel v7 Upgrade Guide).

I hope this suggestion is helpful.

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

No branches or pull requests

1 participant