Angular CLI HMR with Lazy-Loaded routes hot-reloads the whole thing

前端 未结 2 1562
独厮守ぢ
独厮守ぢ 2021-01-30 12:26

(Confirmed an issue even with Angular 7). Let\'s get this fixed!

I\'m using HMR as set up here: https://github.com/angular/angular-cli/wiki/stories-configure-hmr from

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 12:54

    This angular-cli wiki page is deprecated: https://github.com/angular/angular-cli/issues/14053

    Angular-HMR + lazy routes is currently not supported: https://github.com/PatrickJS/angular-hmr/issues/76

    For a working and non-trivial solution, have a look to https://github.com/wags1999/angular-hmr-lazy-components

提交回复
热议问题