babel-parser throws syntax error for import string names with flow
plugin
#12209
Labels
area: flow
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
Bug Report
Current behavior
babel-parser throws syntax error
Unexpected token (1:9)
withmoduleStringNames
plugin andflow
plugin. (REPL)This happens on
import
only,export
works fine. (REPL)Input Code
Expected behavior
No syntax error is thrown.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
Call
parse
directly.Environment
Possible Solution
Additional context
Found from working on prettier/prettier#9408
The text was updated successfully, but these errors were encountered: