refactor(core): simplify component manifests

This commit is contained in:
Rahim
2026-06-24 14:38:13 -07:00
parent 9cbcdb7704
commit 3e61ef65a9
45 changed files with 239 additions and 244 deletions
+1 -5
View File
@@ -49,11 +49,7 @@ export function defineComponentsConfig<const Config extends ComponentsConfig | r
function isDefineComponentCall(node: ts.Node): node is ts.CallExpression {
if (!ts.isCallExpression(node)) return false;
const callee = node.expression;
if (ts.isIdentifier(callee) && callee.text === 'defineComponent') return true;
// Curried form: defineComponent<Props>()({ ... }).
return (
ts.isCallExpression(callee) && ts.isIdentifier(callee.expression) && callee.expression.text === 'defineComponent'
);
return ts.isIdentifier(callee) && callee.text === 'defineComponent';
}
function findDefaultExportCall(sourceFile: ts.SourceFile): ts.CallExpression | null {