-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Move preset-env into @babel/core
#3
Comments
nyc currently uses the transform function from I want to stress I respect whatever decision babel developers make, I understand nyc is only one user and we do have an escape hatch of directly using the individual modules. Just saw this proposal so I wanted to share my prospective. |
@coreyfarrell Supporting use cases different from "the default one" is definitely something that we'll think about: while Babel is mostly used to compile modern code to older versions, we as a team have always tried to present it as a general-purpose transformation tool. |
Not a new idea by any means, just haven't seriously considered it since it changes how people think about it so much (I think for the better).
Just means you don't need to install a package, configure the use of the preset, or track the versions (a big deal, even when comparing to other tools in this space -> whether it's Babel 5, esbuild,sucrase,buble,swc,typescript,etc). It is confusing that you have to install the package as well as configure it in the config.
I Assume that most people who use Babel intend to use this preset currently and if not, we want them too? Why not just include it then, with some way of opt-out for tooling, special builds, or people that want to do something else.
The text was updated successfully, but these errors were encountered: