Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export class AotCompilation extends AngularCompilation {
`${host.getCanonicalFileName(relativePath)}@${node.name?.text}`,
);
const updateText = angularCompiler.emitHmrUpdateModule(node);
if (updateText === null) {
// If compiler cannot generate an update for the component, prevent template updates.
// Also prevent template updates if $localize is directly present which also currently
// prevents a template update at runtime.
// TODO: Support localized template update modules and remove this check.
if (updateText === null || updateText.includes('$localize')) {
// Build is needed if a template cannot be updated
templateUpdates = undefined;
break;
Expand Down
Loading