Skip to content

Commit

Permalink
Update on "[compiler] Flow support for playground"
Browse files Browse the repository at this point in the history
Summary: The playground currently has limited support for Flow files--it tries to parse them if the // flow sigil is on the fist line, but this is often not the case for files one would like to inspect in practice. more importantly, component syntax isn't supported even then, because it depends on the Hermes parser.

This diff improves the state of flow support in the playground to make it more useful: when we see `flow` anywhere in the file, we'll assume it's a flow file, parse it with the Hermes parser, and disable typescript-specific features of Monaco editor.

[ghstack-poisoned]
  • Loading branch information
mvitousek committed Jun 30, 2024
1 parent d8885e5 commit e10a5c5
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e10a5c5

Please sign in to comment.