WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@cknitt
Copy link
Member

@cknitt cknitt commented Dec 9, 2025

Fixes #8076

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 9, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@8077

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@8077

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@8077

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@8077

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@8077

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@8077

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@8077

commit: 5a55f16

@cknitt cknitt requested review from cristianoc and nojaf December 9, 2025 10:45
assuming "JsxRuntime". *)
let is_fragment =
match tag.expression_desc with
| J.Var (J.Qualified ({id = {name = "JsxRuntime"}}, Some "Fragment")) ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

pre-existing, but this is terrible
is there at least a file where all the "interesting" jsx preserve mode things like this are collected?
So one at least knows where to look?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know of such a file or if there are more similar problems.

I can create an issue for tracking this though.

@cknitt cknitt force-pushed the fix-empty-fragments branch from 0af7536 to 5a55f16 Compare December 9, 2025 13:29
@cknitt cknitt merged commit 034e254 into rescript-lang:master Dec 9, 2025
25 checks passed
@cknitt cknitt deleted the fix-empty-fragments branch December 9, 2025 14:48
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.

invalid JSX generated in preserve JSX mode

3 participants