Update flow parse options (#18641)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-15 10:24:52 +08:00
1 parent 5d5094e084
commit 8bb1341ff4
2 files changed
+24 -13

No files matched your search

+5 -1
View File
@@ -14,8 +14,12 @@ function tryParse(file, content) {
const ast = flowParser.parse(content, {
comments: false,
enums: true,
match: true,
components: true,
// assert_operator: true,
esproposal_decorators: true,
esproposal_export_star_as: true,
pattern_matching: true,
records: true,
});
if (ast.errors.length > 0) {