3 import { addAttr } from 'compiler/helpers'
5 // mark component root nodes as
6 export function postTransformComponentRoot (
8 options: WeexCompilerOptions
12 addAttr(el, '@isComponentRoot', 'true')
13 addAttr(el, '@templateId', '_uid')
14 addAttr(el, '@componentProps', '$props || {}')