import { getLocator } from 'locate-character'; import deindent from './utils/deindent.js'; import walkHtml from './utils/walkHtml.js'; const ROOT = 'options.target'; export default function generate ( parsed, template ) { const counters = { fragment: 0, element: 0, text: 0, anchor: 0, if: 0, each: 0, loop: 0 }; const initStatements = []; const setStatements = [ deindent` const oldState = state; state = Object.assign( {}, oldState, newState ); ` ]; const teardownStatements = []; // TODO add contents of