diff --git a/playground/package.json b/playground/package.json index e8a4489f..0658019c 100644 --- a/playground/package.json +++ b/playground/package.json @@ -4,6 +4,7 @@ "version": "1.0.0", "packageManager": "pnpm@9.15.2", "dependencies": { + "nuxi": "latest", "nuxt": "^3.15.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7110a5d3..b106ddcf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -142,6 +142,9 @@ importers: playground: dependencies: + nuxi: + specifier: workspace:* + version: link:.. nuxt: specifier: ^3.15.1 version: 3.15.1(@parcel/watcher@2.5.0)(@types/node@22.10.5)(db0@0.2.1)(eslint@9.17.0(jiti@2.4.2))(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.2)(terser@5.37.0)(typescript@5.7.2)(vite@6.0.7(@types/node@22.10.5)(jiti@2.4.2)(terser@5.37.0)(yaml@2.7.0))(vue-tsc@2.2.0(typescript@5.7.2))(yaml@2.7.0) diff --git a/src/commands/info.ts b/src/commands/info.ts index e968df91..8f725306 100644 --- a/src/commands/info.ts +++ b/src/commands/info.ts @@ -164,7 +164,7 @@ async function getNuxtConfig(rootDir: string) { }, }) ;(globalThis as any).defineNuxtConfig = (c: any) => c - const result = await jiti.import('./nuxt.config') as NuxtConfig + const result = await jiti.import('./nuxt.config', { default: true }) as NuxtConfig delete (globalThis as any).defineNuxtConfig return result }