Преглед изворни кода

include pre/post transform declarations

Evan You пре 10 година
родитељ
комит
ba5ec54cd8
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      flow/compiler.js

+ 2 - 0
flow/compiler.js

@@ -31,7 +31,9 @@ declare type CompiledFunctionResult = {
 }
 
 declare type ModuleOptions = {
+  preTransformNode: (el: ASTElement) => void;
   transformNode: (el: ASTElement) => void; // transform an element's AST node
+  postTransformNode: (el: ASTElement) => void;
   genData: (el: ASTElement) => string; // generate extra data string for an element
   transformCode?: (el: ASTElement, code: string) => string; // further transform generated code for an element
   staticKeys?: Array<string>; // AST properties to be considered static