angular/packages/compiler/src/render3
Kristiyan Kostadinov 46af02395f fix(compiler): avoid conflicts between HMR code and local symbols (#61550)
Currently we construct the HMR replacement URL inline by calling into the native `URL` constructor. This can cause conflicts with user code that defines a symbol called `URL`.

These changes resolve the issue by moving the URL construction into a separate function. This has a secondary benefit of making the generated code easier to follow and allowing us to update the URL without changing the compiled code.

Fixes #61517.

PR Close #61550
2025-05-21 12:25:25 +00:00
..
partial refactor(compiler): avoid duplication between FactoryTarget type (#61472) 2025-05-20 10:00:43 +00:00
view refactor(compiler): detect directly referenced pipes during parsing (#61158) 2025-05-08 07:11:37 +02:00
r3_ast.ts refactor(compiler): indicate in AST if node is self-closing (#61307) 2025-05-14 11:06:22 +02:00
r3_class_debug_info_compiler.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_class_metadata_compiler.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
r3_control_flow.ts fix(compiler): throw for invalid "as" expression in if block (#60580) 2025-03-27 20:24:58 +00:00
r3_deferred_blocks.ts fix(compiler): add more specific matcher for hydrate never block (#58360) 2024-10-28 12:35:11 -07:00
r3_deferred_triggers.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_factory.ts refactor(compiler): avoid duplication between FactoryTarget type (#61472) 2025-05-20 10:00:43 +00:00
r3_hmr_compiler.ts fix(compiler): avoid conflicts between HMR code and local symbols (#61550) 2025-05-21 12:25:25 +00:00
r3_identifiers.ts fix(compiler): avoid conflicts between HMR code and local symbols (#61550) 2025-05-21 12:25:25 +00:00
r3_injector_compiler.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_jit.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_module_compiler.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_pipe_compiler.ts refactor(compiler): account for pipes without names (#61328) 2025-05-19 08:24:06 +00:00
r3_template_transform.ts refactor(compiler): indicate in AST if node is self-closing (#61307) 2025-05-14 11:06:22 +02:00
util.ts refactor(compiler): rework how parens are emitted (#60127) 2025-02-27 17:41:05 +00:00