revert(compiler): preserve inline structured component props

This commit is contained in:
2026-08-09 13:00:18 +05:30
parent de8d792e37
commit 35cd28aad4
2 changed files with 0 additions and 20 deletions
-7
View File
@@ -742,13 +742,6 @@ function renderNestedComponentInvocation(
return ` ${attr.name}`;
}
if (/^\s*\{\{[\s\S]*\}\}\s*$/.test(attr.value)) {
throw new Error(
`WRN-PROP-INLINE-OBJECT: '${attr.name}' uses an inline object or array prop. ` +
`Hoist it to state and pass ${attr.name}={yourState} instead.`,
);
}
const wholeExpression = wholeAttributeExpression(attr.value);
const compiledValue = wholeExpression