babel / babel/website

preset-env:forceAllTransforms’ description is tautology

Open
#2,247 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

https://babeljs.io/docs/en/babel-preset-env#forcealltransforms says:

> forceAllTransforms
> boolean, defaults to false,
> By default, this preset will run all the transforms needed for the targeted environment(s). Enable this option if you want to force running all transforms, which is useful if the output will be run through UglifyJS or an environment that only supports ES5.

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the forceAllTransforms section at the linked Babel preset-env documentation and compare the stated default behavior with the true/false distinction described in the issue. Clarify the documentation so the effect of enabling the option and the ES5/UglifyJS use case are unambiguous, then verify the rendered section.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.