Skip to content
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

Addon-docs: Use jsxOptions instead of mdxBabelOptions #20271

Merged
merged 5 commits into from
Dec 14, 2022
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Dec 14, 2022

Issue:

What I did

This removes the mdxBabelOptions setting from addon-docs, replacing it with the simplified jsxOptions, which are passed to @babel/preset-react inside the mdx compiler.

This also adds support for jsxOptions for vite, as well.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@IanVS IanVS requested review from shilman and ndelangen December 14, 2022 14:23
@IanVS IanVS changed the title Use jsxOptions instead of mdxBabelOptions Addon-docs: Use jsxOptions instead of mdxBabelOptions Dec 14, 2022
code/addons/docs/src/preset.ts Outdated Show resolved Hide resolved
@shilman shilman merged commit 4845781 into next Dec 14, 2022
@shilman shilman deleted the mdx-jsx-options branch December 14, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants