Skip to content

refactor: remove obsolete website code and check unused exports - #1443

Open
fhammerschmidt wants to merge 1 commit into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-dead-code
Open

fhammerschmidt wants to merge 1 commit into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-dead-code

Conversation

@fhammerschmidt

@fhammerschmidt fhammerschmidt commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Obsolete compiler installations, scripts, components, and exports remained after the website and guide migrations. Remove the confirmed dead paths and make unused ReScript values and exports fail CI across all workspaces.

Fixes #1409. Part of #1421.

  • Delete the unused compiler installation, CodeMirror 5 setup, scripts, shims, duplicate MDX components, unmounted scroll-lock context, and stdlib-toc.json.
  • Trim unused URL/version helpers, Babel AST cases, warning-letter groups, guide output fields, and public interfaces. Keep live MDX mappings, compiler hover hints, internal decoders, and script dependencies such as jsdom.
  • Remove four unused direct dependencies and their orphaned lockfile entries.
  • Mark React Router and Cloudflare JavaScript entry points individually with @live. Add yarn check:dead-code and a CI gate for unused values/exports; underscore bindings are intentional discards, while record-field and argument diagnostics remain advisory.

Branch: fix/1421-dead-code, based on website master (v12). No compiler repository changes.

Validation: strict ReScript compilation, dead-code check, a real temporary-unused-export failure probe, five diagnostic-check tests, 56 existing Node script tests, guide production build, and formatting pass. Docs production build and validation of all 188 example pages and relative links also pass. GitHub CI is still running.

Integration: this overlaps with pending #1432/#1442 (API and route cleanup), #1439/#1441 (compiler settings and playground), and #1440 (guide shell). Merge those first, then resolve this cleanup against their final code; #1437/#1438 merge cleanly. No generated assets or screenshots were changed.

Remove abandoned scripts, compiler installations, components, and data. Keep live MDX mappings and framework entry points, trim unused interfaces, and enforce the monorepo dead-value check in CI.

Fixes rescript-lang#1409
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T23:25:05.929130Z 3cd3497 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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.

Dead code and files

1 participant