steveblue / angular2-rollup

CLI for bundling Angular with Rollup and Closure Compiler
121 stars 18 forks source link

angular2-rollup and lazy loading #16

Closed MR62 closed 7 years ago

MR62 commented 7 years ago

Hi Does angular2-rollup support lazy loading?

steveblue commented 7 years ago

Rollup does not support code splitting needed for lazy loading. This repository will be updated in the future to include a build that does support lazyloading with AOT compile. I am tracking the progress here https://github.com/angular/closure-demo and https://github.com/mlaval/optimize-angular-app

It is possible with a package called Splittable to go from AOT => Splittable => ClosureCompiler but this is largely hanging on the work in this Pull Release: https://github.com/cramforce/splittable/pull/47

Maybe in the future we will be able to go from AOT => ClosureCompiler w/o an intermediary package. I think this is probably a priority for teams at Google to figure out since they are mandated to use ClosureCompiler.

steveblue commented 7 years ago

Closing due to inactivity