-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for JSX dev runtime #15
Conversation
// @ts-expect-error Acorn nodes are assignable to ESTree nodes. | ||
Parser.extend(acornJsx()).parse( | ||
doc.replace(/'name'/, "'jsx (estree-util-build-jsx, automatic)'"), | ||
{sourceType: 'module', ecmaVersion: 2021} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might error (it just did for me on the above ones, see the ts-ignore
for more info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh it passes, weird 🤷♂️ well nvm then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I had to resolve some merge conflicts here. Not sure what happened upstream.
This comment has been minimized.
This comment has been minimized.
Thanks, released in 3.1.0! |
Initial checklist
Description of changes
This adds support for the JSX automatic development runtime.