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
Remove flow
support from parser: babel
#8204
Comments
Could you show some benchmark results?
I guess we can if we make Prettier switch to |
Will do.
My intention is not support flow at all, but check |
Run against Test script
Run against this 18M js file from here Test script
Actual Babel options (
Result
The prototype can be found here. |
@thorn0 I've done removing Before,we can parse |
Do people write Flow code in files with |
I don't use flow , but some tests in |
We can't proceed with this if people do that. |
About this, what do you think? |
Prettier should "just work", even without config files. But if people write Flow code in |
Copying my comment from #8508:
|
Fixed by #14314 |
I was trying to improve parse performance on large files, and found it will cost almost half time on some file by removing plugins.
Something interesting come up, we have
flow
andbabel-flow
parser, but we also enabledflow
syntax inbabel
plugins https://github.com/prettier/prettier/blob/master/src/language-js/parser-babel.js#L101Shouldn't we encourage people use
flow
orbabel-flow
? People usetypescript
andbabel-ts
for.ts
, notbabel
.Can we remove it?
Refs:
Motivation for
babel-flow
#5460 (comment) and #5460 (comment)PR introduce
babel-flow
#5685The text was updated successfully, but these errors were encountered: