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 angular/angular-cli@a0f9db8

Fixes angular#24639
  • Loading branch information
ricardochl committed Feb 1, 2023
1 parent 4978646 commit 83631e8
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 83631e8

Please sign in to comment.