Skip to content

Commit 0f68dee

Browse files
committed
fix: transform appending empty lines
1 parent c3a1caf commit 0f68dee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export default function vueNestedSFC(): PluginOption {
8181
!!block.attrs.export
8282
)
8383
.map((block) => pascalCase(block.attrs.name as string));
84+
if (exportedComponents.length === 0) {
85+
return;
86+
}
8487
for (const componentName of exportedComponents) {
8588
cache.registerNestedComponent(request.filename, componentName);
8689
}

0 commit comments

Comments
 (0)