From 944e758daf7ea3c3433fa5247ea6a8e919ae7c7b Mon Sep 17 00:00:00 2001 From: tbitw2549 Date: Tue, 22 Oct 2024 20:14:01 +0300 Subject: [PATCH] fix: enclose in quote --- packages/nuxt/src/components/templates.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/components/templates.ts b/packages/nuxt/src/components/templates.ts index 0e03e76591..f1e46d68f9 100644 --- a/packages/nuxt/src/components/templates.ts +++ b/packages/nuxt/src/components/templates.ts @@ -122,15 +122,15 @@ export const componentsTypeTemplate = { const componentExports: string[] = new Array(componentTypes.length) for (let i = 0; i < componentTypes.length; i++) { const [pascalName, type] = componentTypes[i]! - components[i] = `'${pascalName}': ${type}` + components[i] = `${pascalName}': ${type}` componentExports[i] = `${pascalName}: ${type}` } return ` import type { DefineComponent, SlotsType } from 'vue' ${nuxt.options.experimental.componentIslands ? islandType : ''} interface _GlobalComponents { - ${components.join('\n ')} - Lazy${components.join('\n Lazy')} + '${components.join('\n \'')} + 'Lazy${components.join('\n \'Lazy')} } declare module 'vue' {