~/talk

The best way to Architect Your Angular Libraries

Talkat angularday 2021 · on Friday, 2021-11-12· [angular, frontend-architecture]
slides:none on file

Claim: architect Angular libraries with sub-entries so consumers get minimal bundles and teammates get clear module boundaries. Live-coding uses Angular CLI, an app + library workspace, three modules (A/B/C), and webpack-era behavior: adding 100 KB of dummy text only lands in C, but importing commonjs moment.js pulls ~350 KB into bundles and inflates main from about 675 KB to ~201 KB after switching to sub-entries. The implemented sub-entry package.json/index/public_api setup fixes code-splitting and commonjs tree-shaking in practice.

AI-written summary · about

  1. 0:00Start
  2. 1:47The Best Way to Architect Your Angular Libraries
  3. 9:42Live Coding
  4. 10:21Angular Library Architecture
  5. 12:09Generate Multiple Modules
  6. 26:00Codes Splitting
  7. 26:29Virtual Pre-Bundle
  8. 33:17Sub Entries
  9. 37:23Code Splitting
  10. 44:23Circular Dependency
  11. 48:24Best Practices
  12. 54:10Omniboard
  13. 56:05Custom Dashboards
  14. 57:41Share the Code
  15. 58:33What Is the Benefit To Have Single Library with Three Module Sub Entries Instead of Three Distinct Libraries
  16. 59:58Suggestions on How To Generate Documentation
  17. 1:01:20Deep Import
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.