Repository navigation
fix(docs): Remove the misnamed .browserlistrc - #26544
Conversation
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]>
|
Claude finished @agneszitte's task in 13s —— View job Review of #26544Verdict: ship. No inline findings. The change deletes
Non-blocking note (not part of this PR). I did not run the docs build. The PR's own Uno.UI - docs check is the real validation. |
|
This pull request is merged. |
|
@Mergifyio backport release/stable/7.0 servicing/6.8 release/stable/6.7 |
✅ Backports have been createdDetails
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-26544/docs/index.html |
…7.0/pr-26544 fix(docs): Remove the misnamed .browserlistrc (backport #26544)
…r-26544 fix(docs): Remove the misnamed .browserlistrc (backport #26544)
…6.7/pr-26544 fix(docs): Remove the misnamed .browserlistrc (backport #26544)
GitHub Issue: closes #26543
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
BrowserslistError: `.browserlistrc` instead of `.browserslistrc` in C:\a\1\s\docdoc/.browserlistrcis removed and the docs CSS builds again, unchanged.What introduced it
doc/.browserlistrchas been misnamed since 2021 (2b02df1). browserslist never read it and used its defaults.checkConfigTypo) that throws when it finds that misspelling. 4.29.5 doesn't have it.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 byautoprefixer ^10.3.2.Branches
release/stable/7.0servicing/6.8release/stable/6.7doc/.browserlistrcnpm installThe 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
.browserslistrcwould apply its targets (> 5%,last 2 versions) for the first time and change the generated CSS.Local check (no regression)
npm run buildindoc/(gulp: clean, styles, scripts; docfx left out), with the packages installed like CI, without the lockfile:main.css26,265 bytes.main.css26,265 bytes, byte-identical to the one above..browserslistrc,browserslistfile orbrowserslistkey indoc/package.jsonor above it.Backports
Needed on
release/stable/7.0,servicing/6.8andrelease/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 ✅
Screenshots Compare Test Runresults.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