Module transformer

Source
Expand description

Transform IRNode. This module contains the canonical transformations from vue-next and the original ones for the parity of features not implemented in Convert.

§Canonical

  • hoistStatic
  • transformExpression
  • vOnce (moved to convert)
  • vMemo (moved to convert)
  • trackScopes

§Original

  • collect_entities: track all helpers/components/directives used in AST. Vue track it by helper/helperString.
  • optimize_text:
  1. merge consecutive text call
  2. wrap text in createTextVNode
  • patch_flag: seems patch flag can be extracted out

Re-exports§

pub use pass::CorePass;
pub use pass::CorePassExt;
pub use pass::MergedPass;
pub use pass::Scope;

Modules§

collect_entities
mark_patch_flag
mark_slot_flag
optimize_text
pass
process_expression

Structs§

BaseTransformer
TransformOption

Traits§

Transformer

Type Aliases§

BaseFor
BaseIf
BaseRenderSlot
BaseSlotFn
BaseText
BaseVNode
BaseVSlot