Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

yanis-git/aot-jit-angular

Repository files navigation

AOT and JIT Compile - Angular 5

Work in progress. Goal is to have our main application compile in AOT, and some other part compile in JIT, only to take adventage of backend side information.

Original stackoverflow post : https://stackoverflow.com/questions/49249919/angular-aot-and-jit-on-same-project

Basic configuration can be find in :

  • Webpack who activate AOT compilation by adding :
    • AngularCompilerPlugin.
    • @ngtools/webpack rules.
  • src/app/AppModule.ts who force to load JITCompiler.
  • src/app/live/live-compile.directive.ts who create ComponentFactory.

Possible way of fixing :

About

Sample of mixup between AOT and JIT compilation in Angular5

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 30