We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3a1caf commit 0f68deeCopy full SHA for 0f68dee
src/index.ts
@@ -81,6 +81,9 @@ export default function vueNestedSFC(): PluginOption {
81
!!block.attrs.export
82
)
83
.map((block) => pascalCase(block.attrs.name as string));
84
+ if (exportedComponents.length === 0) {
85
+ return;
86
+ }
87
for (const componentName of exportedComponents) {
88
cache.registerNestedComponent(request.filename, componentName);
89
}
0 commit comments