diff --git a/changelog_unreleased/javascript/14314.md b/changelog_unreleased/javascript/14314.md index cbeaf52d5..d8692fac6 100644 --- a/changelog_unreleased/javascript/14314.md +++ b/changelog_unreleased/javascript/14314.md @@ -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.