mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix: enclose in quote
This commit is contained in:
parent
6b28ae3d07
commit
944e758daf
@ -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' {
|
||||
|
Loading…
Reference in New Issue
Block a user