A small POC for lazy loading the compiler while using AOT compilation for the main bundle.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
e2e move e2e tests to own folder (#49) Sep 22, 2016
src wip Dec 17, 2016
test-config Add scripts to automate e2e tests of different builds (JIT, AOT, Univ… Oct 7, 2016
.editorconfig
.gitignore remove yarn.lock from .gitignore Oct 16, 2016
LICENSE
README.md wip Dec 20, 2016
constants.d.ts add MY_POLYFILL_DLLS constant Nov 3, 2016
constants.js add MY_POLYFILL_DLLS constant Nov 3, 2016
helpers.js
karma.conf.js refactor(tests) Move test config to test-config folder/, set var to c… Sep 24, 2016
nodemon.json cleanup Sep 6, 2016
package.json
prodserver.js
protractor.conf.js
tsconfig.aot.json fix: make tsconfig.aot.json ignore universal aot Oct 13, 2016
tsconfig.aot.universal.json feat(Universal) Add support for AOT (#124) Oct 13, 2016
tsconfig.json
tslint.json update packages, ignore node_modules on dev server (#121) Oct 11, 2016
webpack.config.ts
webpack.d.ts

README.md

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.

Either:

  • Compile the app (npm run compile)
  • run it in a server (e.g: cd dist/client & http-server)
  • Open it in the browser

OR:

Then:

  • Open network tab on your dev-tools window.
  • Click on the Lazy menu.
  • See the compiler lazy load in the network tab
  • Click on the Add button 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.

image