Compiling Ember
summary
Explains how Embroider implements a multi‑stage compiler that turns existing Ember apps into a v2 add-on format (RFC 507) then into plain JS/CSS/HTML and finally into optimized bundles (uses webpack today). Claims: without changing app code it enables lazy loading, code splitting and true pull‑based tree‑shaking. Stage one runs add‑on build hooks and synthesizes packages, stage two resolves component/template imports, stage three delegates bundling/optimization — compatible with current Ember CLI and already showing performance parity or improvement.
AI-written summary · about
chapters (14)
- 0:00Start
- 1:15What Is a Compiler
- 2:47Input and Output
- 5:08A Self-Hosting Compiler
- 6:09What Compilers Can and CanNot Do
- 11:35The Implementers Trap
- 16:02Module Specifier
- 17:02How Module Syntax Is Designed
- 17:36Not Valid Javascript
- 18:36Dynamic Import
- 22:04Multi-Stage Compiler
- 31:30Vendor Assets
- 34:52Stage 3
- 37:40Route Based Code Splitting
