Skip to content

Conversation

@jderochervlk
Copy link
Collaborator

@jderochervlk jderochervlk commented Dec 1, 2025

Turning on JSX preserve mode improves HMR and sets us up to add the React Compiler.

We have a few scripts that are written in ReScript that are run using Node. These files need to be renamed from .jsx to .mjs before they can be run and bundled to fix the rescript runtime having a different file extension.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 1, 2025

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 045c092
Status: ✅  Deploy successful!
Preview URL: https://8a499fdc.rescript-lang.pages.dev
Branch Preview URL: https://preserve-jsx.rescript-lang.pages.dev

View logs

@cristianoc
Copy link
Contributor

Oh this works now? Nice!!

@jderochervlk jderochervlk merged commit 50f1807 into master Dec 2, 2025
2 checks passed
@jderochervlk jderochervlk deleted the preserve-jsx branch December 2, 2025 17:04
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.

4 participants