mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
53a4668b58
When we generate an HMR replacement function, we determine which locals from the file are used and we pass them by reference. This works fine in most cases, but breaks down for const enums which don't have a runtime representation. These changes work around the issue by passing in all the values as an object literal. Fixes #59800. PR Close #59815