You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dialect of TypeScript that compiles to TypeScript to get language features supported like types and auto completion and I use Babel to do this compilation. So even if TypeScript can deal with foo. just fine, if Babel does not, my language features fail too work.
The text was updated successfully, but these errors were encountered:
Hey @msteen! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
Currently getting
SyntaxError
.Expected the parser to allow empty identifiers in error recovery mode, like TypeScript's parser does:
https://ts-ast-viewer.com/#code/GYexDog
Similar to the other syntax errors as listed in the release notes about error recovery:
https://babeljs.io/blog/2019/11/05/7.7.0#parser-error-recovery-10363
This is crucial to get auto completion to work as expected.
Environment
Possible solution
No response
Additional context
I have a dialect of TypeScript that compiles to TypeScript to get language features supported like types and auto completion and I use Babel to do this compilation. So even if TypeScript can deal with
foo.
just fine, if Babel does not, my language features fail too work.The text was updated successfully, but these errors were encountered: