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
That said, it probably would not be too hard to extend the parser yourself to do so. Something along the lines of
let{ GenericParser }=require('shift-parser');// or ParserWithLocation if you want the location side-tableclassJSXParserextendsGenericParser{parsePrimaryExpression(){if(this.match(TokenType.LT)){returnthis.parseJSX();}returnsuper.parsePrimaryExpression();}parseJSX(){// implementation goes here}}letast=(newJSXParser(code)).parseModule();
You might need to override the tokenizer methods as well; I don't know JSX well enough to know.
Are there any plans to add support for JSX?
The text was updated successfully, but these errors were encountered: