Skip to content

fix(compiler-cli): ensure HMR works with different output module type#60797

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:60795/hmr-module
Closed

fix(compiler-cli): ensure HMR works with different output module type#60797
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:60795/hmr-module

Conversation

@crisbeto
Copy link
Copy Markdown
Member

@crisbeto crisbeto commented Apr 9, 2025

Currently when we transpile the HMR update module, we use the project's compiler options verbatim. This appears to break down with some module types, whereas we have to use a native export.

These changes override the compiler options to ensure that the user's options don't end up breaking HMR.

Fixes #60795.

Currently when we transpile the HMR update module, we use the project's compiler options verbatim. This appears to break down with some module types, whereas we have to use a native export.

These changes override the compiler options to ensure that the user's options don't end up breaking HMR.

Fixes angular#60795.
@crisbeto crisbeto 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 Apr 9, 2025
@crisbeto crisbeto requested a review from clydin April 9, 2025 07:08
@angular-robot angular-robot bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Apr 9, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 9, 2025
@crisbeto crisbeto 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 Apr 9, 2025
atscott pushed a commit that referenced this pull request Apr 9, 2025
…#60797)

Currently when we transpile the HMR update module, we use the project's compiler options verbatim. This appears to break down with some module types, whereas we have to use a native export.

These changes override the compiler options to ensure that the user's options don't end up breaking HMR.

Fixes #60795.

PR Close #60797
@atscott
Copy link
Copy Markdown
Contributor

atscott commented Apr 9, 2025

This PR was merged into the repository by commit 8744c9a.

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

@atscott atscott closed this in 8744c9a Apr 9, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 May 10, 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: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hot Module Replacement (HMR) Problems with Module "NodeNext"

4 participants