import { evaluateLater } from '../evaluator' import { addScopeToNode } from '../scope' import { directive } from '../directives' import { initTree, destroyTree } from '../lifecycle' import { mutateDom } from '../mutation' import { warn } from "../utils/warn" import { skipDuringClone } from '../clone' directive('if', (el, { expression }, { effect, cleanup }) => { if (el.tagName.toLowerCase() !== 'template') warn('x-if can only be used on a