fix: ensure keyed fallback to indexed

pull/9441/head
Dominic Gannaway 3 years ago
parent 66661eff04
commit 5172484a1f

@ -2066,7 +2066,10 @@ export const template_visitors = {
/** @type {number} */
let each_type;
if (node.key) {
if (
node.key &&
(node.key.type !== 'Identifier' || !node.index || node.key.name !== node.index)
) {
each_type = EACH_KEYED;
if (
node.key.type === 'Identifier' &&

@ -0,0 +1,5 @@
import { test } from '../../test';
export default test({
html: '1'
});
Loading…
Cancel
Save