Why is my post-AOT project bundle larger than my previous JIT bundle?

I used to do my production build for my angular project by following these steps:

  • tsc (compiled with es2015)
  • rollup es5 (recompiling .2015.js for bundle.js)
  • minify (minifying and ouglifying)
  • Gzip

After all the above steps, the packet size is 250KB .

But now I use AOT instead of JIT and after all the steps of the size 470 KB approx. I don't understand what is the problem after increasing the size of the AOT compilation? does this usually happen? if not, what am I doing wrong.

Hello

+3


source to share





All Articles