DEV Community

Discussion on: Angular Revisited: Standalone components and optional NgModules

Collapse
 
ozbobwa profile image
OzBob

component 'deps' prop seems further away than ever:
"Closing the PR for now; we can reopen it once we land more critical blocking work." github.com/angular/angular/pull/27481 Closed.

Also, what do you think of rollupjs.org/guide/en/ for treeshaking?

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen • Edited

It's currently in the Angular roadmap under the title "Simplified Angular mental model with optional NgModules". It's in the Future section though which means that:

  1. It's not in active development.
  2. It might not ever make it into Angular.

The deps metadata option might not be the exact API we end up with. However, I tried to emulate it using first SCAMs, then component render modules, and finally feature render modules.

Regarding Rollup, Angular CLI has an experimental flag for using Rollup during build: ng build --experimentalRollupPass as of Angular CLI version 9 (still available in version 11).