mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
e74266b108
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