Skip to content

fix(docs): Remove the misnamed .browserlistrc - #26544

Merged
agneszitte merged 1 commit into
masterfrom
dev/agzi/docs-browserslist-typo
Nov 16, 2026
Merged

agneszitte merged 1 commit into
masterfrom
dev/agzi/docs-browserslist-typo

Conversation

@agneszitte

Copy link
Copy Markdown
Member

GitHub Issue: closes #26543

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

  • Before: since 2026-11-16, 17:33 UTC, the Uno.UI - docs check fails on every pull request, in "Build intermediary assets":
    BrowserslistError: `.browserlistrc` instead of `.browserslistrc` in C:\a\1\s\doc
  • Now: doc/.browserlistrc is removed and the docs CSS builds again, unchanged.

What introduced it

  1. Our old typo: doc/.browserlistrc has been misnamed since 2021 (2b02df1). browserslist never read it and used its defaults.
  2. The trigger: browserslist 4.29.6, released 2026-11-16 at 17:33 UTC, added a check (checkConfigTypo) that throws when it finds that misspelling. 4.29.5 doesn't have it.
  3. Why CI picked it up at once: the docs job installs with Node 14.17.1 (npm 6), which can't read doc/package-lock.json ("lockfileVersion@3… I'll try to do my best"). The lock pins browserslist 4.21.5, but npm takes the latest one allowed by autoprefixer ^10.3.2.

Branches

master release/stable/7.0 servicing/6.8 release/stable/6.7
Misnamed doc/.browserlistrc yes yes yes yes
Lockfile pin (ignored by CI) 4.21.5 4.21.5 4.21.5 4.21.5
Docs job installs with Node 14, npm install same same same
Docs builds since 17:33 UTC ❌ #26542 none yet, same setup ❌ #26540 none yet, same setup

The last docs build that passed before the release was #25688's (servicing/6.8, 16:10 UTC).

Why remove the file rather than rename it

The misnamed file was never read, so removing it keeps today's output: browserslist's defaults. Renaming it to .browserslistrc would apply its targets (> 5%, last 2 versions) for the first time and change the generated CSS.

Local check (no regression)

npm run build in doc/ (gulp: clean, styles, scripts; docfx left out), with the packages installed like CI, without the lockfile:

  • Before this PR, browserslist 4.29.6: fails with the CI error, no CSS.
  • With this PR, browserslist 4.29.6: builds; main.css 26,265 bytes.
  • Before this PR, browserslist 4.29.5 (what CI ran until today): builds; main.css 26,265 bytes, byte-identical to the one above.
  • No other browserslist config applies instead: no .browserslistrc, browserslist file or browserslist key in doc/package.json or above it.

Backports

Needed on release/stable/7.0, servicing/6.8 and release/stable/6.7, which have the same file and fail the same way.

Follow-up

The docs job's Node 14 / npm 6 can't read the lockfile, so any dependency release can break the docs build again. Moving it to a current Node, or npm ci, is a separate change.

PR Checklist ✅

CI only: no product or docs content change. This PR's own Uno.UI - docs check is the proof on the agents.

🤖 Generated with Claude Code

browserslist 4.29.6 throws when it finds `.browserlistrc` instead of
`.browserslistrc`, which fails the docs build on every branch. The file
was never read, as it is misnamed: removing it keeps the generated CSS
identical.

Fixes #26543

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@agneszitte agneszitte added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @agneszitte's task in 13s —— View job


Review of #26544

Verdict: ship. No inline findings.

The change deletes doc/.browserlistrc, a 4-line file with a misspelled name. I checked the following:

  • Diff: it is a pure deletion. The deleted file had no other references in the repo, apart from the unrelated items noted below.
  • Behavior: browserslist never read the misnamed file, so removing it leaves the generated CSS unchanged. Renaming it would have applied > 5% and last 2 versions for the first time and changed the CSS. Removing it is the safer choice.
  • Config: no .browserslistrc or browserslist file exists in doc/.
  • Title and commit: the fix(docs): prefix follows Conventional Commits.
Severity Count
Blocking 0
Non-blocking 1

Non-blocking note (not part of this PR). doc/package.json:11 lists a dependency named browserlist (^1.0.1), with the same single-"s" typo. It is a different npm package from browserslist. It is probably an accidental addition and could be removed in the follow-up that fixes the docs job's Node/npm setup. That follow-up is the one the PR description already mentions, covering Node 14 / npm 6 and npm ci. Check what, if anything, uses it before removing it.

I did not run the docs build. The PR's own Uno.UI - docs check is the real validation.

@mergify

mergify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@agneszitte

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/7.0 servicing/6.8 release/stable/6.7

@mergify

mergify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/7.0 servicing/6.8 release/stable/6.7

✅ Backports have been created

Details

@unodevops

Copy link
Copy Markdown
Contributor

@agneszitte
agneszitte merged commit 10d0c6e into master Nov 16, 2026
23 checks passed
@agneszitte
agneszitte deleted the dev/agzi/docs-browserslist-typo branch November 16, 2026 20:25
agneszitte added a commit that referenced this pull request Nov 16, 2026
…7.0/pr-26544

fix(docs): Remove the misnamed .browserlistrc (backport #26544)
agneszitte added a commit that referenced this pull request Nov 16, 2026
…r-26544

fix(docs): Remove the misnamed .browserlistrc (backport #26544)
agneszitte added a commit that referenced this pull request Nov 16, 2026
…6.7/pr-26544

fix(docs): Remove the misnamed .browserlistrc (backport #26544)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs build fails on every branch since browserslist 4.29.6

4 participants