Repository navigation
chore(starters): remove unused browserslist from react starter - #677
Merged
coryrylan merged 1 commit intoDec 5, 2026
Merged
Conversation
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>
|
Important Review skippedBot 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.
|
coryrylan
approved these changes
Dec 5, 2026
coryrylan
deleted the
topic/web-modernization/react-starter-browserslist
branch
December 5, 2026 14:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the
browserslistblock fromprojects/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
@vitejs/plugin-react6.3.1 (oxc/rolldown, no Babel). Neither package'sdistcontains anybrowserslistreference. Vite's defaultbuild.targetisbaseline-widely-available.eslint-plugin-compat,browserslist-to-esbuild, or other consumer exists in the starter or its lint config.pnpm run buildinprojects/starters/reactproduces byte-identicaldistoutput (same sha256 for every file) with and without the field.nve-buttonis defined, the title isElements + React, and there are no page or console errors.Pinned browser target
browser.version()), checked 2026-12-05.Consumer impact
Validation
pnpm run lintandpnpm run buildinprojects/starters/react: pass.pnpm run cifrom the repo root: pass. Two earlier runs failed only on aprojects/core:test:coveragevitest browser flake ("Cannot connect to the server in 60 seconds") on different test files each time.pnpm run test:coverageinprojects/corepassed on its own, and the next full CI run passed.