ng-hot-reload icon indicating copy to clipboard operation
ng-hot-reload copied to clipboard

What about chunks?

Open Taxi4you opened this issue 5 years ago • 3 comments

HMR plugin works well, but doesn't work for files that were loaded in lazyload - chunks.

Is there any fix for this?

Thanks!

Taxi4you avatar Jul 22 '19 10:07 Taxi4you

What are you using to lazy load files? Webpack + ocLazyLoad? I can take a look at this but a repo with reproducible example would help a lot.

noppa avatar Jul 25 '19 09:07 noppa

@Taxi4you, if you run into an issue with dynamic module import (https://webpack.js.org/api/module-methods/#import-1) try optimization.runtimeChunk = 'single' as suggested here https://github.com/webpack/webpack/issues/7829 - worked for me like a charm.

nskazki avatar Jan 29 '20 05:01 nskazki

What are you using to lazy load files? Webpack + ocLazyLoad? I can take a look at this but a repo with reproducible example would help a lot.

I'm using $injector.loadNewModules (https://docs.angularjs.org/api/auto/service/$injector#loadNewModules), in case you happen to still be interested in this project.

AprilArcus avatar Nov 28 '22 22:11 AprilArcus