/* @flow */import{makeMap}from'shared/util'// The "unitary tag" means that the tag node and its children// must be sent to the native together.constisUnitaryTag=makeMap('cell,header,cell-slot,recycle-list',true)functionpreTransformNode(el:ASTElement){if(isUnitaryTag(el.tag)&&!el.attrsList.some(item=>item.name==='append')){el.attrsMap.append='tree'el.attrsList.push({name:'append',value:'tree'})}if(el.attrsMap.append==='tree'){el.appendAsTree=true}}functiongenData(el:ASTElement):string{returnel.appendAsTree?`appendAsTree:true,`:''}exportdefault{staticKeys:['appendAsTree'],preTransformNode,genData}