Skip to content

Commit 4b8485c

Browse files
committed
fix: render-to-resolveComponent will always import resolveComponent
1 parent 107ceaa commit 4b8485c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transformations/render-to-resolveComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const transformAST: ASTTransformation = (context) => {
1111
&& node.params.length === 1
1212
})
1313
.filter(nodePath => nodePath.parent.parent.node.type === 'ExportDefaultDeclaration')
14-
if (!renderCollections) return
14+
if (!renderCollections.length) return
1515

1616
// add import
1717
addImport(context, {

0 commit comments

Comments
 (0)