Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(@angular/build): Pin the supported browsers in the default browserslist config #28719

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions packages/angular/build/src/utils/supported-browsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ export function getSupportedBrowsers(
projectRoot: string,
logger: { warn(message: string): void },
): string[] {
// This list should match the last 2 versions of the browsers we support at the release.
browserslist.defaults = [
'last 2 Chrome versions',
'last 1 Firefox version',
'last 2 Edge major versions',
'last 2 Safari major versions',
'last 2 iOS major versions',
'last 2 Android major versions',
'Chrome >= 127',
'Edge >= 127',
'Firefox >= 129',
'Safari >= 16',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this matches 16, 17 and 18. Thus, not the last 2 major versions.

'ios >= 16',
'Android >= 127',
'Firefox ESR',
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# You can see what browsers were selected by your queries by running:
# npx browserslist

last 2 Chrome versions
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
last 2 Android major versions
Chrome >= 127
Edge >= 127
Firefox >= 129
Safari >= 16
ios >= 16
Android >= 127
Firefox ESR