From 83631e8081ea6d8fcad39a50a190aa1a91190752 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 1 Feb 2023 13:16:51 -0600 Subject: [PATCH] fix(@angular-devkit/build-angular): fix support of Safari TP versions Fix issue-related to the support of Safari TP versions. This issue was accidentally introduced in angular/angular-cli@a0f9db8 Fixes #24639 --- .../angular_devkit/build_angular/src/utils/esbuild-targets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/utils/esbuild-targets.ts b/packages/angular_devkit/build_angular/src/utils/esbuild-targets.ts index 1147738e93a9..e9310e171d5a 100644 --- a/packages/angular_devkit/build_angular/src/utils/esbuild-targets.ts +++ b/packages/angular_devkit/build_angular/src/utils/esbuild-targets.ts @@ -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';