Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Feb 27, 2025

When the service worker option is enabled, each code update will cause the ngsw.json configuration file to change due to the different hashes of the updated output. This is problematic for component HMR usage with the development server since the full reload fallback logic would be triggered due to the changed ngsw.json file. To avoid this problem, the ngsw.json configuration file is now special cased within the fallback logic.

@clydin clydin added the target: patch This PR is targeted for the next patch release label Feb 27, 2025
@clydin clydin marked this pull request as ready for review March 3, 2025 17:41
@clydin clydin requested a review from alan-agius4 March 3, 2025 17:41
When the service worker option is enabled, each code update will cause
the `ngsw.json` configuration file to change due to the different hashes
of the updated output. This is problematic for component HMR usage with
the development server since the full reload fallback logic would be triggered
due to the changed `ngsw.json` file.  To avoid this problem, the `ngsw.json`
configuration file is now special cased within the fallback logic.
@clydin clydin force-pushed the hmr/service-worker-compat branch from 1fc8282 to 7c78c66 Compare March 3, 2025 18:00
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 3, 2025
@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 Mar 4, 2025
@alan-agius4 alan-agius4 merged commit c2bef38 into angular:main Mar 4, 2025
31 checks passed
@alan-agius4
Copy link
Collaborator

The changes were merged into the following branches: main, 19.2.x

@clydin clydin deleted the hmr/service-worker-compat branch March 4, 2025 11:48
@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 Apr 4, 2025
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 area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants