0

I know that webpack in angular responsible for the Compiling code as a Build Automation tool it gets all scripts and combines them into a bundle of fills to optimize the App.

I understand the difference also between JIT VS AOT so my question is? which contains which, is the webpack contains JIT, AOT, and IVy.

Also based on angular documentation JIT is the default but I read also from 9 to the latest version, they used IVY as view engine with AOT so which is the default.

  • Webpack itself is very common tool and it knows nothing about Angular, AOT, JIT, etc. All work is done by plugins and loaders, e.g.: AngularCompilerPlugin, angular2-template-loader, awesome-typescript-loader, ... – Petr Averyanov Mar 31 '21 at 15:07
  • But they said that Webpack in angular responsible for the Compiling code , JIT and AOT also for the Compiling code – Ahmed Rabie Mar 31 '21 at 17:12

1 Answers1

0

Ivy is a compiler of Angular-specific files to JavaScript. It has replaced ViewEngine compiler starting from Angular 9. They are both capable of JIT and AOT compilation modes. To my understanding, webpack is using them in its build pipeline to produce the resulting module.

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
D Pro
  • 1,756
  • 1
  • 8
  • 15