Skip to content

chore(starters): remove unused browserslist from react starter - #677

Merged
coryrylan merged 1 commit into
mainfrom
topic/web-modernization/react-starter-browserslist
Dec 5, 2026
Merged

coryrylan merged 1 commit into
mainfrom
topic/web-modernization/react-starter-browserslist

Conversation

@cursor

@cursor cursor Bot commented Dec 5, 2026

Copy link
Copy Markdown

Summary

Removes the browserslist block from projects/starters/react/package.json. It is a create-react-app era default (>0.2%, not dead, not op_mini all, last 1 Chrome/Firefox/Safari) that targets legacy browsers, and nothing in the starter reads it. The Elements support policy lists Chrome as the primary browser (projects/site/src/docs/about/support.md).

Evidence

  • The starter builds with Vite 8.3.8 and @vitejs/plugin-react 6.3.1 (oxc/rolldown, no Babel). Neither package's dist contains any browserslist reference. Vite's default build.target is baseline-widely-available.
  • No autoprefixer, eslint-plugin-compat, browserslist-to-esbuild, or other consumer exists in the starter or its lint config.
  • pnpm run build in projects/starters/react produces byte-identical dist output (same sha256 for every file) with and without the field.
  • Smoke load of the built starter in the pinned Playwright Chromium: nve-button is defined, the title is Elements + React, and there are no page or console errors.

Pinned browser target

  • Playwright 1.64.1, Chromium revision 1248, runtime 156.0.8078.4 (confirmed via browser.version()), checked 2026-12-05.

Consumer impact

  • Firefox/Safari: none, because the field never changed emitted code.
  • Public entrypoints: none. This is a starter scaffold manifest only. Projects generated from the starter that later add a browserslist-aware tool can add their own targets.

Validation

  • pnpm run lint and pnpm run build in projects/starters/react: pass.
  • pnpm run ci from the repo root: pass. Two earlier runs failed only on a projects/core:test:coverage vitest browser flake ("Cannot connect to the server in 60 seconds") on different test files each time. pnpm run test:coverage in projects/core passed on its own, and the next full CI run passed.
Open in Web View Automation 

The react starter carries a create-react-app era browserslist that targets
legacy browsers. Vite 8 and plugin-react 6 never read it, so builds are
byte-identical without it.

Co-authored-by: crylan <crylan@nvidia.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file scope(starters) labels Dec 5, 2026
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 22c227e topic/web-modernizat... ae14715 +/-
99% 99% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@coryrylan
coryrylan added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit a7e2e62 Dec 5, 2026
17 checks passed
@coryrylan
coryrylan deleted the topic/web-modernization/react-starter-browserslist branch December 5, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file scope(starters)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants