mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
bbca205d5e
For the HMR initializer block to support being used in a Vite setup with import analysis, the import call expression needs to be a runtime generated value and include the `@vite-ignore` special comment. Without the first, Vite will error prior to loading the application. Without the second, a warning will be shown for each import which is effectively each component within the application when HMR is enabled. PR Close #58173