vuejs/vue-vapor

[Tracking] Refactor TODOs

yyx990803 opened this issue · 0 comments

  • further optimize setDOMProp on static tag + key
    #294
  • #297
  • Maximize code reuse between runtime/compiler-vapor and runtime/compiler-dom
    • move compiler-dom and runtime-dom to peer dep for compiler-vapor and runtime-vapor (see #295 (comment))
    • compiler-vapor should reuse htmlNesting logic from compiler-dom
      #298
    • vFor should reuse getSequence from core
    • createVaporApp should reuse logic from createApp in runtime-core
    • setStyle etc. reuse from runtime-dom
  • Treeshaking / bundle size optimizations
    • on/delegate is pulling in all the modifier code
      #300
    • createComponent -> setupComponent -> fallthroughAttrs -> setDynamicProps results pulling all the props handling code
      • we need to rethink how fallthrough attributes are handled, maybe by moving fallthrough attributes application code to be generated in the parent component where the child is consumed.
    • setup() returning object is only needed in __DEV__ (hmr)
  • simple component
  • dynamic binding constant detection
  • simplify renderEffect
    • only 1 effect per scope? (need bench)
    • binding inline caching
    • error if no instance
    • remove memo -- #288