This commit is contained in:
fisker Cheung authored and GitHub committed 2023-04-07 09:52:19 +08:00
1 parent e4349cae71
commit 20320a56e4
1 file changed
+1 -1
+1 -1
View File
@@ -1,3 +1,3 @@
#### [BREAKING] Remove Flow syntax support from `babel` parser (#14314 by @fisker, @thorn0)
For historical reasons, Prettier used to recognize Flow syntax in JS files when the `parser` option was set to `babel` even if the file didn't include the `@flow` pragma. This support was limited and bad for performance, so it has been removed in Prettier main. Prettier with the `babel` parser still automatically switches to the Flow syntax if it finds the `@flow` pragma or the file has the `.flow.js` extension.
For historical reasons, Prettier used to recognize Flow syntax in JS files when the `parser` option was set to `babel` even if the file didn't include the `@flow` pragma. This support was limited and bad for performance, so it has been removed in Prettier main. Prettier with the `babel` parser still automatically switches to the Flow syntax if it finds the `@flow` pragma or the file has the `.js.flow` extension.