Lazy loading the compiler.
A small POC for lazy loading the compiler while using AOT compilation for the main bundle.
See the blog post this repo was built for.
- Compile the app (
npm run compile)
- run it in a server (e.g:
- Open it in the browser
- Go to AOT compiled demo
networktab on your dev-tools window.
- Click on the Lazy menu.
- See the compiler lazy load in the
- Click on the
Addbutton to compile and instantiate a component on the fly.
On the right, the lazy loaded module, with the compiler bundled in. On the left, the main bundle, no compiler.