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
This package is pretty much a wrapper around es-module-lexer (see #1 (comment)), which doesn't support JSX. I've considered writing my own lexer in Rust so I'll leave this open as a feature request for JSX support.
For now I would recommend transpiling and then parsing for imports using this package. Also, depending on what you use to transpile you may be able to get the imports as part of that step
Here are a couple of examples. I show the error message on the specific line referenced in the error.
The text was updated successfully, but these errors were encountered: