3 import { addAttr } from 'compiler/helpers'
4 import { RECYCLE_LIST_MARKER } from 'weex/util/index'
6 // mark components as inside recycle-list so that we know we need to invoke
7 // their special @render function instead of render in create-component.js
8 export function postTransformComponent (
10 options: WeexCompilerOptions
12 // $flow-disable-line (we know isReservedTag is there)
13 if (!options.isReservedTag(el.tag) && el.tag !== 'cell-slot') {
14 addAttr(el, RECYCLE_LIST_MARKER, 'true')