Skip to content

Commit

Permalink
fix: transform appending empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hunyan-io committed May 10, 2023
1 parent c3a1caf commit 0f68dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export default function vueNestedSFC(): PluginOption {
!!block.attrs.export
)
.map((block) => pascalCase(block.attrs.name as string));
if (exportedComponents.length === 0) {
return;
}
for (const componentName of exportedComponents) {
cache.registerNestedComponent(request.filename, componentName);
}
Expand Down

0 comments on commit 0f68dee

Please sign in to comment.