~/talk

The End of Barrel Files? Angular Modularization with Sheriff

Talkat NG Poland 2024 · on Wednesday, 2024-11-06· [angular, frontend-architecture]
slides:none on file

Claims that barrel files (index.ts) break tree shaking and shows a working demo: replacing an index import causes the build to drop from 1.3 → 1.0 MB by keeping a large Quill editor in a deferred chunk. Uses Sheriff (CLI shown with npx sheriff list) to run a barrelless mode that treats folders as modules, enforces encapsulation via internal folders, preserves dependency rules, and coexists with NX libraries and secondary entry points.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:09Current use of barrel files
  3. 4:21Barrel files in modularity
  4. 7:10Problem with barrel files and tree shaking
  5. 9:18Removing barrel files impact
  6. 12:05Barrierless mode in Sheriff
  7. 14:55Encapsulation without barrel files
  8. 17:03Barrelless mode and real libraries
  9. 18:55Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.