rescript-lang / rescript-lang/rescript

Move JsxDOM types etc. into @rescript/react(-dom)

Offen
#8,400 5 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@tsnobip arbeitet bereits daran.

Seit 29.4.2026.

cleanup
Vorherrschende Sprache
OCaml
Sterne
7.5k
Forks
485
Ø Merge
1 T. 2 Std.
Gemergte PRs (30 T.)
55

Beschreibung

Proposal:

  • Remove modules Dom, Dom_storage, Dom_storage2 from the @rescript/runtime package
  • Instead of those, vendor the base package of experimental-webapi
  • Make the vendored @rescript/react depend on that
  • Split off @rescript/react-dom
  • Move JsxDOM/JsxDOMStyle/JsxEvent into @rescript/react-dom
  • Make everything work 🙂
  • Also make it work/test with rescript-react-native and a with non-React JSX runtime like Xote

Note that any vendoring here (@rescript/react, @rescript/react-dom, relevant parts of webapi and rescript-react-native/Xote) does not mean moving the source of truth for these packages into the compiler repo. It's just for easier and quicker iteration while moving things around.

Once the new shape has crystallized, things need to be synced back to the respective repos.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.