-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
preset-env:forceAllTransforms’ description is tautology #2247
Comments
Hey @dilyanpalauzov! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
The default behavior is
When the option is enabled,
For example, if your target environment is Chrome, the classes transform will to be enable because it's not needed. However, if you enable |
“by default” means what will happen, if the option is not explicitly provided. The documentation says, that the default value is false and by default, the preset will run all transforms This means, that when the option is absent, or is set to false, all transforms will run.
If the target is Chrome, and the classes transform are not needed:
|
https://babeljs.io/docs/en/babel-preset-env#forcealltransforms says:
This means: by default (forcealltransforms is false) all transform will run. If the default is toggled (forcealltransforms is true), then all transforms will be run.
I see no difference when forceAllTransforms is true and when forceAllTransforms is false.
The text was updated successfully, but these errors were encountered: