Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): fix support of Safari TP versions
Browse files Browse the repository at this point in the history
Fix issue-related to the support of Safari TP versions. This issue was accidentally introduced in a0f9db8

Fixes #24639

(cherry picked from commit df7c7f4)
  • Loading branch information
ricardochl authored and alan-agius4 committed Feb 2, 2023
1 parent 1bfcc18 commit 11be502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function transformSupportedBrowsersToTargets(supportedBrowsers: string[])
[version] = version.split('-');

if (esBuildSupportedBrowsers.has(browserName)) {
if (browserName === 'safari' && version === 'TP') {
if (browserName === 'safari' && version === 'tp') {
// esbuild only supports numeric versions so `TP` is converted to a high number (999) since
// a Technology Preview (TP) of Safari is assumed to support all currently known features.
version = '999';
Expand Down

0 comments on commit 11be502

Please sign in to comment.