import { baseParse } from './parse' ; import { transform } from './transform' ; import { generate } from './codegen' ; /**
 * 模板编译：
 *  parser(ast) --> transform --> generate
 */ export function baseCompile ( template ) { const ast = baseParse ( template ) ; transform ( ast ) ; return generate ( ast ) ; }