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

fix(@angular-devkit/build-angular): downlevel class fields with Safari <= v15 for esbuild #24363

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

clydin
Copy link
Member

@clydin clydin commented Dec 1, 2022

To provide a workaround for a Safari bug involving class fields and variable scoping,
the esbuild-based browser application builder will now downlevel class fields if Safari
(desktop or iOS) v15.x or earlier is within the target browsers for an application.
This is an esbuild variant of the fix for the Webpack-based builder. For more details
regarding the issue, please see: #24357

…on to latest esbuild browsers

The conversion of browserslist targets to esbuild targets has been updated to reflect additions
to esbuild. Additional browsers are now supported and the major/minor versions have been normalized.
The later of which ensures that `.0` major versions are not misinterpreted as ranges rather than
specific versions.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Dec 2, 2022
…i <= v15 for esbuild

To provide a workaround for a Safari bug involving class fields and variable scoping,
the esbuild-based browser application builder will now downlevel class fields if Safari
(desktop or iOS) v15.x or earlier is within the target browsers for an application.
This is an esbuild variant of the fix for the Webpack-based builder. For more details
regarding the issue, please see: angular#24357
@clydin clydin force-pushed the esbuild/safari-15-bug-workaround branch from ec64b27 to 65a5094 Compare December 2, 2022 16:19
@clydin clydin changed the title fix(@angular-devkit/build-angular): downlevel static fields with Safari <= v15 for esbuild fix(@angular-devkit/build-angular): downlevel class fields with Safari <= v15 for esbuild Dec 2, 2022
@clydin clydin marked this pull request as ready for review December 2, 2022 16:22
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 2, 2022
@clydin clydin self-assigned this Dec 2, 2022
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 2, 2022
@angular-robot angular-robot bot merged commit cf2f30a into angular:main Dec 2, 2022
@clydin clydin deleted the esbuild/safari-15-bug-workaround branch December 2, 2022 18:39
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants