8000 fix(@angular/build): add `$localize` polyfill when using zoneless by alan-agius4 · Pull Request #27793 · angular/angular-cli · GitHub
[go: up one dir, main page]

Skip to content

fix(@angular/build): add $localize polyfill when using zoneless#27793

Closed
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:localize-polyfil
Closed

fix(@angular/build): add $localize polyfill when using zoneless#27793
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:localize-polyfil

Conversation

@alan-agius4
Copy link
Collaborator

This commit addresses an issue where the @angular/localize/init polyfill is not included when there are no polyfills specified in the angular.json file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their polyfills configuration.

The ng add schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: #27786

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 6, 2024
@alan-agius4 alan-agius4 requested a review from clydin June 6, 2024 08:08
@alan-agius4 alan-agius4 force-pushed the localize-polyfil branch 5 times, most recently from c5d2c0a to 22239e4 Compare June 6, 2024 08:44
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
@alan-agius4 alan-agius4 closed this Jun 7, 2024
@alan-agius4 alan-agius4 deleted the localize-polyfil branch June 7, 2024 13:29
@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 Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No polyfill entry breaks $localize.

1 participant

0