Closed yehuozhili closed 2 years ago
Hi @yehuozhili the reason for this is that this project only supports parsing JS syntax not the JSX syntax in use here. This project isn't going to be extended to support JSX but you can run a JSX preparser first before using this, or use another similar analysis tool that supports JSX instead. This was also discussed in https://github.com/guybedford/es-module-lexer/issues/47.
hello, i try to parse my code , but it cause a parse error
result:
Is there something wrong with my source file ?