Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Duplicated playground logic between guide and playground, two copies diverged

Offen
#1,407 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

@fhammerschmidt arbeitet bereits daran.

Seit 09.10.2026.

  • #1441 von @fhammerschmidt — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
20/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
babel, nodejs
Bereich
frontend, tooling

Rechercherichtung

Start by comparing the version sort and filter in GuideCompilerSettings.res with Playground.res around lines 1660-1686, then the Executing arm of CompilerManagerHook.res, GuideRuntimeImport.res line 44, and TryRoute.res lines 15-16. The issue names the duplicated pieces but does not say which copy should win or what shared module should hold them, so agree that with the maintainers before editing. Done would mean one shared implementation with the existing playground and guide behaviour unchanged.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version filter and sort (GuideCompilerSettings.res vs Playground.res:1660-1686; the playground's digit-concatenation sort misorders v12.10.0), import collector (GuideRuntimeTransform.res vs Babel.PlaygroundValidator), runtime-import mapping, console helpers, the TryRoute loader.

the runtime-import mapping in CompilerManagerHook.res (Executing arm) runs only on the playground's Run paths (Playground.res:1299,1347); the guide never reaches it and keeps its own copy, so only CdnMeta is actually shared (GuideRuntimeImport.res:44). Node.Process.Env has one consumer (TryRoute.res:15-16) and the guide re-declares the same variables.


Line numbers refer to master at ff3eac6e.

Vorherrschende Sprache
MDX
Sterne
1.9k
Forks
261
Ø Merge
3 T. 13 Std.
Gemergte PRs (30 T.)
37

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus rescript-lang/rescript-lang.org

Alle Issues in rescript-lang/rescript-lang.org

Ähnliche Issues

Weitere Issues zu Web Dev

Neue Issues direkt in Ihr Postfach

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