@nuxt/schema-nightly 4.4.0-29551604.0a8a57da → 4.4.0-29552640.096fa1dc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -359,6 +359,17 @@ interface NuxtDebugOptions {
359
359
  server?: boolean;
360
360
  client?: boolean;
361
361
  };
362
+ /**
363
+ * Profile startup/build performance.
364
+ *
365
+ * - `true` — full report printed to console, JSON + `.cpuprofile` written on exit
366
+ * - `'quiet'` — JSON + `.cpuprofile` written on exit with no console output
367
+ *
368
+ * Activated via `nuxi dev --profile=verbose`, `nuxi dev --profile` (quiet),
369
+ * `NUXT_DEBUG_PERF=1` (or `=quiet`), or `debug: { perf: true }` in nuxt.config.
370
+ * @since 4.4.0
371
+ */
372
+ perf?: boolean | "quiet";
362
373
  }
363
374
  //#endregion
364
375
  //#region src/types/nuxt.d.ts
@@ -440,6 +451,28 @@ interface Nuxt {
440
451
  "_dependencies"?: Set<string>;
441
452
  "~runtimeDependencies"?: string[];
442
453
  "_debug"?: NuxtDebugContext;
454
+ /**
455
+ * Performance profiler instance, available when `debug.perf` is enabled.
456
+ * @internal
457
+ */
458
+ "_perf"?: {
459
+ startPhase: (name: string) => void;
460
+ endPhase: (name?: string) => void;
461
+ collectModuleTimings: (modules: Array<{
462
+ meta?: {
463
+ name?: string;
464
+ };
465
+ timings?: Record<string, number | undefined>;
466
+ }>) => void;
467
+ recordBundlerPluginHook: (pluginName: string, hookName: string, durationMs: number, startTime?: number) => void;
468
+ printReport: (options?: {
469
+ title?: string;
470
+ }) => void;
471
+ writeReport: (buildDir: string, options?: {
472
+ quiet?: boolean;
473
+ }) => string;
474
+ dispose: () => void;
475
+ };
443
476
  /** Async local storage for current running Nuxt module instance. */
444
477
  "_asyncLocalStorageModule"?: AsyncLocalStorage<NuxtModule>;
445
478
  /**
package/dist/index.mjs CHANGED
@@ -348,9 +348,14 @@ var common_default = defineResolvers({
348
348
  },
349
349
  nitro: true,
350
350
  router: true,
351
- hydration: true
351
+ hydration: true,
352
+ perf: process.env.NUXT_DEBUG_PERF === "quiet" ? "quiet" : true
352
353
  };
353
- if (val && typeof val === "object") return val;
354
+ if (val && typeof val === "object") {
355
+ if (process.env.NUXT_DEBUG_PERF) val.perf = process.env.NUXT_DEBUG_PERF === "quiet" ? "quiet" : true;
356
+ return val;
357
+ }
358
+ if (process.env.NUXT_DEBUG_PERF) return { perf: process.env.NUXT_DEBUG_PERF === "quiet" ? "quiet" : true };
354
359
  return false;
355
360
  } },
356
361
  ssr: { $resolve: (val) => typeof val === "boolean" ? val : true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.4.0-29551604.0a8a57da",
3
+ "version": "4.4.0-29552640.096fa1dc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",