The Little Tool That Dreams Big
summary
Angular CLI parses build flags, runs static analysis to detect lazy routes (including inside node_modules), compiles TypeScript, and hands JavaScript plus route contexts to the ngtools webpack plugin which bundles separate lazy-chunk files. The build-refactoring replaces template/style URLs with require calls for webpack and, in AOT, removes decorators and writes static ctor parameters so tree-shaking works. An NG eject command emits a webpack.config.js. 1.0 ships, internal tests show ~20% bundle-size reduction, and AOT-in-dev plus better error messages are planned.
AI-written summary · about








