Skip to content

Conversation

@jderochervlk
Copy link
Collaborator

@jderochervlk jderochervlk commented Nov 24, 2025

  • Adds and configures vite-plugin-page-reload to enable reloads when editing .mdx files
  • Removes unused Layout module
  • Adds app folder so it picks up tailwind classes
  • Adds files to exclude to avoid any duplicated reloads
  • Configures @vitejs/plugin-react to include and watch .mjs files
  • Removes incorrect lightningcss config, which didn't do anything because it was wrong

Note: this does not enable SSR when a file has more than one React component

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 24, 2025

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e6452f
Status: ✅  Deploy successful!
Preview URL: https://d866cdf7.rescript-lang.pages.dev
Branch Preview URL: https://fix-hmr.rescript-lang.pages.dev

View logs

@jderochervlk jderochervlk merged commit 94c62bb into master Nov 24, 2025
2 checks passed
@jderochervlk jderochervlk deleted the fix-hmr branch November 24, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants