We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87c3757 commit a923538Copy full SHA for a923538
code/frameworks/vue3-vite/src/plugins/vue-component-meta.ts
@@ -284,7 +284,11 @@ async function getTsConfigReferences(tsConfigPath: string) {
284
* HTMLElement, MouseEvent) are used.
285
*/
286
function removeNestedSchemas(schema: PropertyMetaSchema) {
287
- if (typeof schema !== 'object') {
+ if (typeof schema !== 'object') return;
288
+ if (schema.kind === 'enum') {
289
+ // for enum types, we do not want to remove the schemas because otherwise the controls will be missing
290
+ // instead we remove the nested schemas for the enum entries to prevent out of memory errors for types like "HTMLElement | MouseEvent"
291
+ schema.schema?.forEach((enumSchema) => removeNestedSchemas(enumSchema));
292
return;
293
}
294
delete schema.schema;
0 commit comments