glimmer-vm icon indicating copy to clipboard operation
glimmer-vm copied to clipboard

Optimizing Build Output

Open chadhietala opened this issue 7 years ago • 2 comments

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 and EXPRESSION 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

chadhietala avatar Apr 10 '17 16:04 chadhietala

Some context around inlined babel helpers: https://github.com/glimmerjs/glimmer-build/pull/33

pittst3r avatar Apr 10 '17 17:04 pittst3r

Is this still relevant?

locks avatar Apr 18 '20 15:04 locks