Repository navigation
Make Baseline Widely available the browser support policy (fix #502) - #503
Open
stephaniehobson wants to merge 3 commits into
Open
stephaniehobson wants to merge 3 commits into
stephaniehobson wants to merge 3 commits into
Conversation
…502) Nothing said which browsers the site supports, so reviews fell back on Vite's default build target. Set build.target to the floor and document it in CONTRIBUTING.md and AGENTS.md, including that Vite rewrites syntax but adds no polyfills, so newer built-in methods need checking by hand.
Replace the Firefox ESR and Safari 15.6 floors with the current and previous major of Chrome, Edge, Firefox, Safari and iOS Safari, and explain why build.target can lag behind them safely.
A moving, published standard instead of version numbers that need maintaining. build.target becomes Vite's 'baseline-widely-available', and contributors check a feature's Baseline status before using it.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the changes formalizing the browser-support policy.
No open issues 🎉
What changed in this PR
Establishes Baseline Widely available as the Firefox Public Data Report’s browser support policy, addressing #502 without changing Vite’s existing default build behavior.
Changes:
- Explicitly sets Vite’s build target to
baseline-widely-available. - Documents the moving browser-support floor, feature-selection rules, lack of polyfills, and test-code exemption.
- Adds the policy to contributor-facing agent guidance.
| File | Description |
|---|---|
vite.config.mjs |
Makes the existing default browser target explicit and explains its limits. |
CONTRIBUTING.md |
Defines browser support and guidance for choosing web platform features. |
AGENTS.md |
Summarizes the policy and points to the contributor documentation. |
Review effort: Balanced
This branch has not been deployed
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.
One-line summary
Adopt Baseline Widely available as the browser support policy, and set Vite's build target to match.
Significant changes and points to review
vite.config.mjs: setbuild.targetto'baseline-widely-available'. Until now nothing set it, so it already defaulted to this, but nothing said it was the policy.CONTRIBUTING.md: new "Supported browsers" section covering:npx browserslist "baseline widely available"AGENTS.md: a one-line pointer to the same.baseline-browser-mapping2.11.37:baseline widely available, soeslint-plugin-compat(JS) and@eslint/css'suse-baselinerule (CSS) could be added in a follow-up if wanted.Issue / Bugzilla link
#502
Testing
npm run buildand check it succeeds.npx browserslist "baseline widely available"and check the oldest versions listed match the ones above, or are newer.