Skip to content

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

Merged
agneszitte merged 1 commit into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-26544
Nov 16, 2026
Merged

agneszitte merged 1 commit into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-26544

Conversation

@mergify

@mergify mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

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


This is an automatic backport of pull request #26544 done by [Mergify](https://mergify.com).

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]>
(cherry picked from commit b6c416b)
@mergify mergify Bot mentioned this pull request Nov 16, 2026
1 of 5 tasks
@agneszitte
agneszitte merged commit 498d02d into release/stable/6.7 Nov 16, 2026
10 of 14 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/6.7/pr-26544 branch November 16, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant