Skip to content

Conversation

@remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

This adds support for the JSX automatic development runtime.

@remcohaszing remcohaszing requested a review from a team September 6, 2022 18:57
@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Sep 6, 2022
// @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}
Copy link
Member

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

Copy link
Member

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

Copy link
Member Author

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.

@wooorm wooorm changed the title Support JSX dev runtime Add support for JSX dev runtime Sep 8, 2022
@wooorm wooorm merged commit d0b4c88 into syntax-tree:main Sep 8, 2022
@wooorm wooorm added 🦋 type/enhancement This is great to have 💪 phase/solved Post is done labels Sep 8, 2022
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Sep 8, 2022
@wooorm
Copy link
Member

wooorm commented Sep 8, 2022

Thanks, released in 3.1.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 phase/solved Post is done 🦋 type/enhancement This is great to have

Development

Successfully merging this pull request may close these issues.

3 participants