Patch Changes
- d815fd4: Keep a returned element's setup inside a braceless
if,elseor loop body.if (c) return <span>{x.join()}</span>;emitted the template clone andinsertbefore theif, so they ran (andx.join()threw) whencwas false, a loop body's setup read its loop variable out of scope, and a hydratinggetNextElementclaimed a node for a branch not taken. The setup is now inserted before thereturn, and Babel wraps the body in a block.