fix(nuxt)!: remove unused globalName property (#28391)

This commit is contained in:
Tobias Diez 2024-08-05 17:35:00 +02:00 committed by GitHub
parent f5dad8a82f
commit 66247a712d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,6 @@ interface _NuxtApp {
/** @internal */ /** @internal */
_name: string _name: string
vueApp: App<Element> vueApp: App<Element>
globalName: string
versions: Record<string, string> versions: Record<string, string>
hooks: Hookable<RuntimeNuxtHooks> hooks: Hookable<RuntimeNuxtHooks>
@ -245,7 +244,6 @@ export type ObjectPluginInput<Injections extends Record<string, unknown> = Recor
export interface CreateOptions { export interface CreateOptions {
vueApp: NuxtApp['vueApp'] vueApp: NuxtApp['vueApp']
ssrContext?: NuxtApp['ssrContext'] ssrContext?: NuxtApp['ssrContext']
globalName?: NuxtApp['globalName']
} }
/** @since 3.0.0 */ /** @since 3.0.0 */
@ -255,7 +253,6 @@ export function createNuxtApp (options: CreateOptions) {
_name: appId || 'nuxt-app', _name: appId || 'nuxt-app',
_scope: effectScope(), _scope: effectScope(),
provide: undefined, provide: undefined,
globalName: 'nuxt',
versions: { versions: {
get nuxt () { return __NUXT_VERSION__ }, get nuxt () { return __NUXT_VERSION__ },
get vue () { return nuxtApp.vueApp.version }, get vue () { return nuxtApp.vueApp.version },