revert(compiler): preserve inline structured component props

This commit is contained in:
Clintchiz committed 2026-08-09 13:00:18 +05:30
1 parent de8d792e37
commit 35cd28aad4
2 files changed
-20

No files matched your search

-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