Here is an early prototype of an Angular application with lazy loading, built using Bazel and Rollup.
The prototype code can be downloaded from Github.
The sample builds on one of my previous articles.
The main difference between this and the previous sample is that I am using Bazel to build the sample.
I have also simplified the SystemJS setup to require fewer mappings.
This is just a rough prototype, but I will evolve it and clean it up over time.
Basic InstructionsBuild and bundle the sample by running:
By observing the http requests in the browser network tab, you will be able to see that all nav points are lazy loaded based on routing.