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

Add HMR to example of MDX w/ Vite #2474

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Add HMR to example of MDX w/ Vite #2474

merged 2 commits into from
Apr 17, 2024

Conversation

dan-lee
Copy link
Contributor

@dan-lee dan-lee commented Apr 17, 2024

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

I have updated the docs for @mdx-js/rollup: I added the suggestion from vite-plugin-reacts include option by adding mdx to the list to enable HMR.

Without it, a full page reload is required, and it took me some time to figure that out. I think one almost always wants that to be enabled.

Copy link

vercel bot commented Apr 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mdx ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2024 11:53am

Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m fine having this, just a style nit

docs/docs/getting-started.mdx Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (908ff45) to head (756374d).
Report is 18 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2474   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           23        23           
  Lines         2693      2709   +16     
  Branches         2         2           
=========================================
+ Hits          2693      2709   +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wooorm wooorm changed the title Add include mdx to vite react plugin Add HMR to example of MDX w/ Vite Apr 17, 2024
@wooorm wooorm merged commit 51500e2 into mdx-js:main Apr 17, 2024
6 checks passed
@wooorm
Copy link
Member

wooorm commented Apr 17, 2024

Thanks!

@wooorm wooorm added the 💪 phase/solved Post is done label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

3 participants