~/talk

Problems with Module Federation? ImportMap to the rescue

Talkat NG Poland 2022 · on Tuesday, 2022-10-25· [frontend-architecture, web-platform]
links:none on file
slides:none on file

Claim that import map can replace Module Federation for sharing libs in Angular microfrontends with fewer constraints while staying bundler‑agnostic. Demo composes two Angular apps that both render Chart.js, measures main.js 234 KB vs 86 KB without Chart.js so sharing could save ~31%. Using custom webpack externals plus experiments.outputModule and externalsType yields ESM-only import map resolution, initially inflates runtime payload to 400+ KB because tree shaking is lost, then rebuilding a small wrapper library with sbilt cuts it to ~183 KB and nets ~24% savings.

AI-written summary · about

  1. 0:00Micro frontends and Import Maps intro
  2. 2:36Bundle savings with chart.js demo
  3. 3:39Module systems and ES Modules
  4. 5:45How Import Maps work
  5. 6:51Webpack config for Import Maps
  6. 8:57Fixing ES Module errors
  7. 10:21Tree shaking limits and fixes
  8. 11:03Third-party libraries abstraction
  9. 12:50Import Maps features and support
  10. 14:16Import Maps vs Module Federation
  11. 15:43Trade-offs and architecture choice
  12. 16:03Closing remarks
~/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.