glimmer-vm
glimmer-vm copied to clipboard
Optimizing Build Output
Right now Glimmer is bigger than it needs to be here are some known things to drive down the size:
- [ ] Create Feature Flag for stripping out DOM API fixes
- [ ] Babel helpers should not be inlined and repeated
- [ ] Make SVG black listing a debug time thing and strip from prod builds
- [ ] Support Targets (output is pretty fat from just compiling)
- [ ] Fix default args (has poor compilation)
- [ ] Make
STATEMENT
,APPEND
andEXPRESSION
functions tree shake-able (we can generate a file at build time that imports just the functionality needed by the runtime) - [ ] We likely need something like Closure Compiler to do inlining and constant folding
- [ ] Investigate re-writing Enum compilation
Some context around inlined babel helpers: https://github.com/glimmerjs/glimmer-build/pull/33
Is this still relevant?