@babel/preset-flow
In
Out
{
}
require("@babel/core").transform("code", {
});
boolean
, defaults to false
.
Flow will only parse Flow-specific features if a @flow
pragma is present atop the file, or the isset inside the .flowconfig
.
For example, without either of the above set, the following call expression with a type argument:
Would get parsed as a nested binary expression:
f < T > e;