@nuxt/schema-nightly 5.0.0-29837649.bdf0b4f2 → 5.0.0-29837688.ef8d0fbb
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.
|
@@ -2451,7 +2451,7 @@ interface ConfigSchema {
|
|
|
2451
2451
|
* Disabling this compiles out Vue's Options API runtime (via the `__VUE_OPTIONS_API__` feature
|
|
2452
2452
|
* flag), shrinking the client bundle for apps that only use the Composition API / `<script setup>`.
|
|
2453
2453
|
*
|
|
2454
|
-
*
|
|
2454
|
+
* @default false
|
|
2455
2455
|
*/
|
|
2456
2456
|
optionsApi: boolean;
|
|
2457
2457
|
/**
|
|
@@ -2725,14 +2725,7 @@ interface ConfigSchema {
|
|
|
2725
2725
|
*/
|
|
2726
2726
|
unhead: {
|
|
2727
2727
|
/**
|
|
2728
|
-
*
|
|
2729
|
-
*
|
|
2730
|
-
* On compat v4, the unhead legacy plugin set (`DeprecationsPlugin`, `PromisesPlugin`,
|
|
2731
|
-
* `TemplateParamsPlugin`, `AliasSortingPlugin`) is always loaded so existing head patterns
|
|
2732
|
-
* (`hid`, `vmid`, `children`, `body: true`, promise values, `%s` template params)
|
|
2733
|
-
* keep working.
|
|
2734
|
-
*
|
|
2735
|
-
* Forced to `false` when `future.compatibilityVersion` >= 5.
|
|
2728
|
+
* No longer supported. Always resolved to `false`.
|
|
2736
2729
|
*
|
|
2737
2730
|
* @deprecated Will be removed. Migrate off the deprecated head patterns and resolve promise
|
|
2738
2731
|
* values before passing to `useHead`.
|
|
@@ -2749,8 +2742,6 @@ interface ConfigSchema {
|
|
|
2749
2742
|
*
|
|
2750
2743
|
* Set to `false` to disable the plugin entirely.
|
|
2751
2744
|
*
|
|
2752
|
-
* Only applies when `future.compatibilityVersion` >= 5.
|
|
2753
|
-
*
|
|
2754
2745
|
* @default {}
|
|
2755
2746
|
*/
|
|
2756
2747
|
vite: false | Omit<UnheadVueViteOptions, "streaming" | "_framework">;
|
|
@@ -3324,8 +3315,7 @@ interface ConfigSchema {
|
|
|
3324
3315
|
*/
|
|
3325
3316
|
future: {
|
|
3326
3317
|
/**
|
|
3327
|
-
*
|
|
3328
|
-
*
|
|
3318
|
+
* Always resolves to `5`. Any other value is ignored.
|
|
3329
3319
|
*/
|
|
3330
3320
|
compatibilityVersion: 4 | 5;
|
|
3331
3321
|
/**
|
|
@@ -3455,7 +3445,7 @@ interface ConfigSchema {
|
|
|
3455
3445
|
* - `false` - Payload extraction is disabled entirely. Payload is always inlined in HTML and
|
|
3456
3446
|
* no `_payload.json` files are generated.
|
|
3457
3447
|
*
|
|
3458
|
-
*
|
|
3448
|
+
* @default 'client'
|
|
3459
3449
|
*/
|
|
3460
3450
|
payloadExtraction: "client" | boolean | undefined;
|
|
3461
3451
|
/**
|
|
@@ -3465,7 +3455,7 @@ interface ConfigSchema {
|
|
|
3465
3455
|
* The error page is rendered in process, on the same request event, so the response keeps the
|
|
3466
3456
|
* headers and cookies the failed render had already written.
|
|
3467
3457
|
*
|
|
3468
|
-
* @default true
|
|
3458
|
+
* @default true
|
|
3469
3459
|
*/
|
|
3470
3460
|
inlineErrorRendering: boolean;
|
|
3471
3461
|
/**
|
|
@@ -3540,9 +3530,7 @@ interface ConfigSchema {
|
|
|
3540
3530
|
/**
|
|
3541
3531
|
* Enable the new experimental typed router using vue-router.
|
|
3542
3532
|
*
|
|
3543
|
-
*
|
|
3544
|
-
*
|
|
3545
|
-
* @default false
|
|
3533
|
+
* @default true
|
|
3546
3534
|
*/
|
|
3547
3535
|
typedPages: boolean;
|
|
3548
3536
|
/**
|
|
@@ -3571,7 +3559,7 @@ interface ConfigSchema {
|
|
|
3571
3559
|
*
|
|
3572
3560
|
* @see [@parcel/watcher](https://github.com/parcel-bundler/watcher)
|
|
3573
3561
|
*
|
|
3574
|
-
* @default 'builder'
|
|
3562
|
+
* @default 'builder'
|
|
3575
3563
|
*/
|
|
3576
3564
|
watcher: "chokidar" | "parcel" | "chokidar-granular" | "builder";
|
|
3577
3565
|
/**
|
|
@@ -3586,8 +3574,7 @@ interface ConfigSchema {
|
|
|
3586
3574
|
*
|
|
3587
3575
|
* - Add the capo.js head plugin in order to render tags in of the head in a more performant way. - Uses the hash hydration plugin to reduce initial hydration
|
|
3588
3576
|
*
|
|
3589
|
-
* @deprecated CAPO sorting is now the default in unhead v3.
|
|
3590
|
-
* temporarily on compat v4.
|
|
3577
|
+
* @deprecated CAPO sorting is now the default in unhead v3.
|
|
3591
3578
|
* @default true
|
|
3592
3579
|
* @see [Nuxt Discussion #22632](https://github.com/nuxt/nuxt/discussions/22632)
|
|
3593
3580
|
*/
|
|
@@ -3630,8 +3617,7 @@ interface ConfigSchema {
|
|
|
3630
3617
|
* This has no effect when `experimental.scanPageMeta` is `false`, as the route record does
|
|
3631
3618
|
* not override the macro module in that case.
|
|
3632
3619
|
*
|
|
3633
|
-
* @default
|
|
3634
|
-
* @default true with compatibilityVersion >= 5
|
|
3620
|
+
* @default true
|
|
3635
3621
|
*/
|
|
3636
3622
|
extractSerializablePageMeta: boolean;
|
|
3637
3623
|
/**
|
|
@@ -3681,8 +3667,7 @@ interface ConfigSchema {
|
|
|
3681
3667
|
};
|
|
3682
3668
|
/**
|
|
3683
3669
|
* Options that apply to `useState` and `clearNuxtState`.
|
|
3684
|
-
* @default { resetOnClear:
|
|
3685
|
-
* @default { resetOnClear: true } with compatibilityVersion >= 5
|
|
3670
|
+
* @default { resetOnClear: true }
|
|
3686
3671
|
*/
|
|
3687
3672
|
useState: {
|
|
3688
3673
|
/**
|
|
@@ -3691,8 +3676,7 @@ interface ConfigSchema {
|
|
|
3691
3676
|
*
|
|
3692
3677
|
* This aligns `clearNuxtState` behavior with `clearNuxtData`, which already resets to defaults.
|
|
3693
3678
|
*
|
|
3694
|
-
* @default
|
|
3695
|
-
* @default true with compatibilityVersion >= 5
|
|
3679
|
+
* @default true
|
|
3696
3680
|
*/
|
|
3697
3681
|
resetOnClear: boolean;
|
|
3698
3682
|
};
|
|
@@ -3737,8 +3721,7 @@ interface ConfigSchema {
|
|
|
3737
3721
|
* This stops execution of the rest of your setup code after a redirect, and renders
|
|
3738
3722
|
* a placeholder comment while the navigation proceeds, rather than continuing to run
|
|
3739
3723
|
* code (and potentially navigating again) after `navigateTo` has been called.
|
|
3740
|
-
* @default
|
|
3741
|
-
* @default true with compatibilityVersion >= 5
|
|
3724
|
+
* @default true
|
|
3742
3725
|
* @see [Nuxt Issue #23698](https://github.com/nuxt/nuxt/issues/23698)
|
|
3743
3726
|
*/
|
|
3744
3727
|
navigateToEarlyReturn: boolean;
|
|
@@ -3761,8 +3744,7 @@ interface ConfigSchema {
|
|
|
3761
3744
|
* `<KeepAlive>` relies on the component `name` option to identify components.
|
|
3762
3745
|
* Without this, page components may have generic names (like `index`) that don't
|
|
3763
3746
|
* correspond to their route names, making name-based `<KeepAlive>` filtering unreliable.
|
|
3764
|
-
* @default
|
|
3765
|
-
* @default true with compatibilityVersion >= 5
|
|
3747
|
+
* @default true
|
|
3766
3748
|
*/
|
|
3767
3749
|
normalizePageNames: boolean;
|
|
3768
3750
|
/**
|
|
@@ -3922,10 +3904,8 @@ interface ConfigSchema {
|
|
|
3922
3904
|
* Whether to parse `error.data` when rendering a server error page.
|
|
3923
3905
|
*
|
|
3924
3906
|
* @deprecated The error sent to the error page is JSON-encoded, so
|
|
3925
|
-
* `error.data` keeps its original shape and is never stringified.
|
|
3926
|
-
*
|
|
3927
|
-
* before that, `false` stringifies `error.data` again for backwards
|
|
3928
|
-
* compatibility.
|
|
3907
|
+
* `error.data` keeps its original shape and is never stringified. This
|
|
3908
|
+
* is forced on and setting it is ignored.
|
|
3929
3909
|
* @default true
|
|
3930
3910
|
*/
|
|
3931
3911
|
parseErrorData: boolean;
|
|
@@ -3977,8 +3957,7 @@ interface ConfigSchema {
|
|
|
3977
3957
|
/**
|
|
3978
3958
|
* Whether to enable a compatibility layer for Nitro auto imports.
|
|
3979
3959
|
* We recommend migrating to direct imports instead.
|
|
3980
|
-
* @default
|
|
3981
|
-
* @default false with compatibilityVersion >= 5
|
|
3960
|
+
* @default false
|
|
3982
3961
|
*/
|
|
3983
3962
|
nitroAutoImports: boolean;
|
|
3984
3963
|
/**
|
|
@@ -4029,8 +4008,7 @@ interface ConfigSchema {
|
|
|
4029
4008
|
* with `Promise.resolve()` so that `.then()` and `.catch()` chaining always works.
|
|
4030
4009
|
*
|
|
4031
4010
|
* Set to `false` for better performance if your code and modules use `await` with `callHook`.
|
|
4032
|
-
* @default
|
|
4033
|
-
* @default false with compatibilityVersion >= 5
|
|
4011
|
+
* @default false
|
|
4034
4012
|
*/
|
|
4035
4013
|
asyncCallHook: boolean;
|
|
4036
4014
|
/**
|
|
@@ -4045,8 +4023,7 @@ interface ConfigSchema {
|
|
|
4045
4023
|
* Note: enabling this means attributes (class, style, etc.) passed to `.client.vue`
|
|
4046
4024
|
* components will not be rendered in the SSR HTML. If you need styled placeholders,
|
|
4047
4025
|
* use `<ClientOnly>` with a `#fallback` slot instead.
|
|
4048
|
-
* @default
|
|
4049
|
-
* @default true with compatibilityVersion >= 5
|
|
4026
|
+
* @default true
|
|
4050
4027
|
*/
|
|
4051
4028
|
clientNodePlaceholder: boolean;
|
|
4052
4029
|
/**
|
|
@@ -4212,7 +4189,7 @@ interface ConfigSchema {
|
|
|
4212
4189
|
* @note Only JSON serializable options should be passed by Nuxt config.
|
|
4213
4190
|
* For more control, you can use `app/router.options.ts` file.
|
|
4214
4191
|
*
|
|
4215
|
-
* @note `sensitive` defaults to `true
|
|
4192
|
+
* @note `sensitive` defaults to `true`.
|
|
4216
4193
|
*
|
|
4217
4194
|
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions)
|
|
4218
4195
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as NuxtHookCallback, A as RuntimeConfigApp, An as ServerPluginInput, At as NuxtPageMeta, B as WebpackConfig, Bn as NuxtImportPreset, Bt as RequestEventContext, C as NuxtAppConfig, Cn as ServerHandler, Ct as ModuleInstallInfo, D as NuxtOptions, Dn as ServerHandlerMethod, Dt as NuxtLayout, E as NuxtConfigInput, En as ServerHandlerInput, Et as NuxtHooks, F as ViewTransitionOptions, Fn as NuxtImport, Ft as AppRouteRulesBase, G as Nuxt, Gn as NuxtPackageImportPreset, Gt as ServerRoutes, H as AppHeadMetaObject, Hn as NuxtImportPresetSource, Ht as ServerRequestTypes, I as ViewTransitionPageOptions, In as NuxtImportAddonsOptions, It as AppRouteRulesExtensions, J as NuxtPlugin, Jt as NuxtManifestResource, K as NuxtApp, Kt as ServerTypes, L as ViteConfig, Ln as NuxtImportCommon, Lt as NuxtRequestContext, M as SchemaDefinition, Mn as TracingChannelOptions, Mt as VueTSConfig, N as SharedAppConfig, Nn as TracingChannelOptionsBase, Nt as WatchEvent, O as PublicRuntimeConfig, On as ServerImportsOptions, Ot as NuxtMiddleware, P as UpperSnakeCase, Pn as ImportsOptions, Pt as AppRouteRules, Qt as NuxtDeprecatedHook, R as ViteOptions, Rn as NuxtImportDeclarationType, Rt as NuxtRequestEvent, S as DefineNuxtConfig, Sn as ServerApiVariants, St as ImportPresetWithDeprecation, T as NuxtConfig, Tn as ServerHandlerFallback, Tt as NuxtHookName, U as MetaObject, Un as NuxtImportScanDir, Ut as ServerRouteHandler, V as WebpackPluginInstance, Vn as NuxtImportPresetName, Vt as ServerEventHandler, W as MetaObjectRaw, Wn as NuxtImportScanOptions, Wt as ServerRouteSegment, Xt as NuxtIgnoreOptions, Y as NuxtPluginTemplate, Yt as NuxtIgnoreMatcher, Zt as NuxtIgnoreTestResult, _ as NuxtDotenvOptions, _n as NitroTypes, _t as ModuleSetupReturn, a as ScanDir, an as NuxtCompatibilityIssue, at as NuxtTemplateDependency, b as AppConfigInput, bn as RouteRuleConfigFallback, bt as GenerateAppOptions, c as KeyedFunctionFactory, cn as DevServerHandlerFallback, ct as NuxtDebugContext, d as NuxtLinkOptions, dn as NitroConfig, dt as ModuleDefinition, en as NuxtHookKeys, f as RouterConfig, fn as NitroConfigFallback, ft as ModuleDependencies, g as NuxtConfigLayerMeta, gn as NitroInstanceOptionsFallback, gt as ModuleSetupInstallResult, h as NuxtConfigLayer, hn as NitroInstanceOptions, ht as ModuleOptions, i as ComponentsOptions, in as NuxtCompatibility, it as NuxtTemplateChange, j as RuntimeValue, jn as ServerRouteMeta, jt as TSReference, k as RuntimeConfig, kn as ServerPlugin, kt as NuxtPage, l as NuxtCompilerOptions, ln as DevServerHandlerFunction, lt as NuxtDebugModuleMutationRecord, m as RouterOptions, mn as NitroInstanceFallback, mt as ModuleMeta, n as ComponentMeta, nn as NuxtHookSpyEvent, nt as NuxtServerTemplate, o as CompilerScanDir, on as NuxtCompatibilityIssues, ot as NuxtTypeTemplate, p as RouterConfigSerializable, pn as NitroInstance, pt as ModuleDependencyMeta, q as NuxtBuildOutputs, qt as NuxtManifest, r as ComponentsDir, rn as NuxtNestedHooks, rt as NuxtTemplate, s as KeyedFunction, sn as DevServerHandler, st as ResolvedNuxtTemplate, t as Component, tn as NuxtHookRegistry, u as ConfigSchema, un as DevServerHandlerInput, ut as NuxtDebugOptions, v as NuxtLayerSourceOptions, vn as RouteRuleConfig, vt as NuxtModule, w as NuxtBuilder, wn as ServerHandlerEnv, wt as NuxtAnalyzeMeta, x as CustomAppConfig, xn as ServerApi, xt as HookResult, y as AppConfig, yn as RouteRuleConfigExtensions, yt as ResolvedModuleOptions, z as VitePlugin, zn as NuxtImportEntry, zt as RequestEvent } from "./components-
|
|
1
|
+
import { $t as NuxtHookCallback, A as RuntimeConfigApp, An as ServerPluginInput, At as NuxtPageMeta, B as WebpackConfig, Bn as NuxtImportPreset, Bt as RequestEventContext, C as NuxtAppConfig, Cn as ServerHandler, Ct as ModuleInstallInfo, D as NuxtOptions, Dn as ServerHandlerMethod, Dt as NuxtLayout, E as NuxtConfigInput, En as ServerHandlerInput, Et as NuxtHooks, F as ViewTransitionOptions, Fn as NuxtImport, Ft as AppRouteRulesBase, G as Nuxt, Gn as NuxtPackageImportPreset, Gt as ServerRoutes, H as AppHeadMetaObject, Hn as NuxtImportPresetSource, Ht as ServerRequestTypes, I as ViewTransitionPageOptions, In as NuxtImportAddonsOptions, It as AppRouteRulesExtensions, J as NuxtPlugin, Jt as NuxtManifestResource, K as NuxtApp, Kt as ServerTypes, L as ViteConfig, Ln as NuxtImportCommon, Lt as NuxtRequestContext, M as SchemaDefinition, Mn as TracingChannelOptions, Mt as VueTSConfig, N as SharedAppConfig, Nn as TracingChannelOptionsBase, Nt as WatchEvent, O as PublicRuntimeConfig, On as ServerImportsOptions, Ot as NuxtMiddleware, P as UpperSnakeCase, Pn as ImportsOptions, Pt as AppRouteRules, Qt as NuxtDeprecatedHook, R as ViteOptions, Rn as NuxtImportDeclarationType, Rt as NuxtRequestEvent, S as DefineNuxtConfig, Sn as ServerApiVariants, St as ImportPresetWithDeprecation, T as NuxtConfig, Tn as ServerHandlerFallback, Tt as NuxtHookName, U as MetaObject, Un as NuxtImportScanDir, Ut as ServerRouteHandler, V as WebpackPluginInstance, Vn as NuxtImportPresetName, Vt as ServerEventHandler, W as MetaObjectRaw, Wn as NuxtImportScanOptions, Wt as ServerRouteSegment, Xt as NuxtIgnoreOptions, Y as NuxtPluginTemplate, Yt as NuxtIgnoreMatcher, Zt as NuxtIgnoreTestResult, _ as NuxtDotenvOptions, _n as NitroTypes, _t as ModuleSetupReturn, a as ScanDir, an as NuxtCompatibilityIssue, at as NuxtTemplateDependency, b as AppConfigInput, bn as RouteRuleConfigFallback, bt as GenerateAppOptions, c as KeyedFunctionFactory, cn as DevServerHandlerFallback, ct as NuxtDebugContext, d as NuxtLinkOptions, dn as NitroConfig, dt as ModuleDefinition, en as NuxtHookKeys, f as RouterConfig, fn as NitroConfigFallback, ft as ModuleDependencies, g as NuxtConfigLayerMeta, gn as NitroInstanceOptionsFallback, gt as ModuleSetupInstallResult, h as NuxtConfigLayer, hn as NitroInstanceOptions, ht as ModuleOptions, i as ComponentsOptions, in as NuxtCompatibility, it as NuxtTemplateChange, j as RuntimeValue, jn as ServerRouteMeta, jt as TSReference, k as RuntimeConfig, kn as ServerPlugin, kt as NuxtPage, l as NuxtCompilerOptions, ln as DevServerHandlerFunction, lt as NuxtDebugModuleMutationRecord, m as RouterOptions, mn as NitroInstanceFallback, mt as ModuleMeta, n as ComponentMeta, nn as NuxtHookSpyEvent, nt as NuxtServerTemplate, o as CompilerScanDir, on as NuxtCompatibilityIssues, ot as NuxtTypeTemplate, p as RouterConfigSerializable, pn as NitroInstance, pt as ModuleDependencyMeta, q as NuxtBuildOutputs, qt as NuxtManifest, r as ComponentsDir, rn as NuxtNestedHooks, rt as NuxtTemplate, s as KeyedFunction, sn as DevServerHandler, st as ResolvedNuxtTemplate, t as Component, tn as NuxtHookRegistry, u as ConfigSchema, un as DevServerHandlerInput, ut as NuxtDebugOptions, v as NuxtLayerSourceOptions, vn as RouteRuleConfig, vt as NuxtModule, w as NuxtBuilder, wn as ServerHandlerEnv, wt as NuxtAnalyzeMeta, x as CustomAppConfig, xn as ServerApi, xt as HookResult, y as AppConfig, yn as RouteRuleConfigExtensions, yt as ResolvedModuleOptions, z as VitePlugin, zn as NuxtImportEntry, zt as RequestEvent } from "./components-Q3JpbO8u.mjs";
|
|
2
2
|
import { InputObject } from "untyped";
|
|
3
3
|
//#region src/config/index.d.ts
|
|
4
4
|
declare const _default: InputObject;
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const schemaDiagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
|
69
69
|
docs: false
|
|
70
70
|
},
|
|
71
71
|
NUXT_B5016: {
|
|
72
|
-
why: "`experimental.parseErrorData` is ignored
|
|
72
|
+
why: "`experimental.parseErrorData` is ignored. `error.data` is no longer stringified on its way to the error page, so there is nothing to opt out of.",
|
|
73
73
|
fix: "Remove the option, and drop any `JSON.parse(error.data)` from your error page.",
|
|
74
74
|
docs: false
|
|
75
75
|
},
|
|
@@ -82,6 +82,11 @@ const schemaDiagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
|
82
82
|
why: "`experimental.nitroViteEnvironment` is only compatible with `@nuxt/vite-builder`, so it has been disabled.",
|
|
83
83
|
fix: "Set `builder: \"vite\"` in your `nuxt.config`, or remove the option.",
|
|
84
84
|
docs: false
|
|
85
|
+
},
|
|
86
|
+
NUXT_B5029: {
|
|
87
|
+
why: (p) => `\`future.compatibilityVersion\` was set to \`${p.value}\`, but this version of Nuxt only supports \`5\`.`,
|
|
88
|
+
fix: "Remove `future.compatibilityVersion` from your `nuxt.config`. To keep Nuxt 4 behaviour, stay on Nuxt 4.",
|
|
89
|
+
docs: false
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
});
|
|
@@ -100,10 +105,7 @@ var app_default = defineResolvers({
|
|
|
100
105
|
runtimeCompiler: { $resolve: (val) => {
|
|
101
106
|
return typeof val === "boolean" ? val : false;
|
|
102
107
|
} },
|
|
103
|
-
optionsApi: {
|
|
104
|
-
if (typeof val === "boolean") return val;
|
|
105
|
-
return await get("future.compatibilityVersion") < 5;
|
|
106
|
-
} },
|
|
108
|
+
optionsApi: { $resolve: (val) => typeof val === "boolean" ? val : false },
|
|
107
109
|
/**
|
|
108
110
|
* Enable experimental support for Vue Vapor Mode (requires Vue 3.6+).
|
|
109
111
|
*
|
|
@@ -204,13 +206,9 @@ var app_default = defineResolvers({
|
|
|
204
206
|
return css;
|
|
205
207
|
} },
|
|
206
208
|
unhead: {
|
|
207
|
-
legacy: { $resolve:
|
|
208
|
-
if (
|
|
209
|
-
|
|
210
|
-
if (val) schemaDiagnostics.NUXT_B5013();
|
|
211
|
-
return false;
|
|
212
|
-
}
|
|
213
|
-
return val;
|
|
209
|
+
legacy: { $resolve: (val) => {
|
|
210
|
+
if (val === true) schemaDiagnostics.NUXT_B5013();
|
|
211
|
+
return false;
|
|
214
212
|
} },
|
|
215
213
|
vite: {},
|
|
216
214
|
renderSSRHeadOptions: { $resolve: (val) => ({
|
|
@@ -642,7 +640,10 @@ var oxc_default = defineResolvers({ oxc: { transform: { options: {
|
|
|
642
640
|
//#region src/config/experimental.ts
|
|
643
641
|
var experimental_default = defineResolvers({
|
|
644
642
|
future: {
|
|
645
|
-
compatibilityVersion: { $resolve: (val) =>
|
|
643
|
+
compatibilityVersion: { $resolve: (val) => {
|
|
644
|
+
if (val !== void 0 && val !== 5) schemaDiagnostics.NUXT_B5029({ value: String(val) });
|
|
645
|
+
return 5;
|
|
646
|
+
} },
|
|
646
647
|
multiApp: false,
|
|
647
648
|
typescriptBundlerResolution: { async $resolve(val, get) {
|
|
648
649
|
val = typeof val === "boolean" ? val : await get("experimental").then((e) => e === null || e === void 0 ? void 0 : e.typescriptBundlerResolution);
|
|
@@ -700,13 +701,13 @@ var experimental_default = defineResolvers({
|
|
|
700
701
|
* - `true`: extract the payload to a `_payload.json` file for both the initial render and client-side navigation.
|
|
701
702
|
* - `false`: disable payload extraction entirely; the payload is always inlined in the HTML.
|
|
702
703
|
*
|
|
703
|
-
* Defaults to `
|
|
704
|
+
* Defaults to `'client'`. It is forced to `false` when `ssr` is disabled.
|
|
704
705
|
* @see [Payload Extraction documentation](https://nuxt.com/docs/getting-started/prerendering#payload-extraction)
|
|
705
706
|
*/
|
|
706
707
|
payloadExtraction: { $resolve: async (val, get) => {
|
|
707
708
|
if (await get("ssr") === false) return false;
|
|
708
709
|
if (val === "client" || typeof val === "boolean") return val;
|
|
709
|
-
return
|
|
710
|
+
return "client";
|
|
710
711
|
} },
|
|
711
712
|
/**
|
|
712
713
|
* Render the error page in the Nuxt renderer itself when a server render fails, rather than
|
|
@@ -715,12 +716,9 @@ var experimental_default = defineResolvers({
|
|
|
715
716
|
* The error page is rendered in process, on the same request event, so the response keeps the
|
|
716
717
|
* headers and cookies the failed render had already written.
|
|
717
718
|
*
|
|
718
|
-
*
|
|
719
|
+
* @default true
|
|
719
720
|
*/
|
|
720
|
-
inlineErrorRendering: { $resolve:
|
|
721
|
-
if (typeof val === "boolean") return val;
|
|
722
|
-
return await get("future.compatibilityVersion") >= 5;
|
|
723
|
-
} },
|
|
721
|
+
inlineErrorRendering: { $resolve: (val) => typeof val === "boolean" ? val : true },
|
|
724
722
|
/**
|
|
725
723
|
* Server-render static error pages (such as `404.html`) when prerendering, rather than emitting an empty SPA shell.
|
|
726
724
|
*
|
|
@@ -766,23 +764,17 @@ var experimental_default = defineResolvers({
|
|
|
766
764
|
return val ?? "auto";
|
|
767
765
|
} },
|
|
768
766
|
localLayerAliases: true,
|
|
769
|
-
typedPages: { $resolve:
|
|
770
|
-
if (typeof val === "boolean") return val;
|
|
771
|
-
return await get("future.compatibilityVersion") >= 5;
|
|
772
|
-
} },
|
|
767
|
+
typedPages: { $resolve: (val) => typeof val === "boolean" ? val : true },
|
|
773
768
|
appManifest: true,
|
|
774
769
|
checkOutdatedBuildInterval: 36e5,
|
|
775
|
-
watcher: { $resolve:
|
|
770
|
+
watcher: { $resolve: (val) => {
|
|
776
771
|
if (typeof val === "string" && (/* @__PURE__ */ new Set([
|
|
777
772
|
"chokidar",
|
|
778
773
|
"parcel",
|
|
779
774
|
"chokidar-granular",
|
|
780
775
|
"builder"
|
|
781
776
|
])).has(val)) return val;
|
|
782
|
-
|
|
783
|
-
const [srcDir, rootDir] = await Promise.all([get("srcDir"), get("rootDir")]);
|
|
784
|
-
if (srcDir === rootDir) return "chokidar-granular";
|
|
785
|
-
return "chokidar";
|
|
777
|
+
return "builder";
|
|
786
778
|
} },
|
|
787
779
|
asyncContext: false,
|
|
788
780
|
headNext: true,
|
|
@@ -791,8 +783,8 @@ var experimental_default = defineResolvers({
|
|
|
791
783
|
return typeof val === "boolean" || val === "after-resolve" ? val : "after-resolve";
|
|
792
784
|
} },
|
|
793
785
|
extraPageMetaExtractionKeys: [],
|
|
794
|
-
extractSerializablePageMeta: {
|
|
795
|
-
return typeof val === "boolean" ? val :
|
|
786
|
+
extractSerializablePageMeta: { $resolve(val) {
|
|
787
|
+
return typeof val === "boolean" ? val : true;
|
|
796
788
|
} },
|
|
797
789
|
sharedPrerenderData: { $resolve(val) {
|
|
798
790
|
return typeof val === "boolean" ? val : true;
|
|
@@ -805,22 +797,22 @@ var experimental_default = defineResolvers({
|
|
|
805
797
|
prefetchOn: { visibility: true }
|
|
806
798
|
},
|
|
807
799
|
useAsyncData: { deep: false },
|
|
808
|
-
useState: { resetOnClear: { $resolve:
|
|
809
|
-
return typeof val === "boolean" ? val :
|
|
800
|
+
useState: { resetOnClear: { $resolve: (val) => {
|
|
801
|
+
return typeof val === "boolean" ? val : true;
|
|
810
802
|
} } },
|
|
811
803
|
useFetch: {}
|
|
812
804
|
},
|
|
813
805
|
clientNodeCompat: false,
|
|
814
806
|
navigationRepaint: true,
|
|
815
|
-
navigateToEarlyReturn: { $resolve:
|
|
816
|
-
return typeof val === "boolean" ? val :
|
|
807
|
+
navigateToEarlyReturn: { $resolve: (val) => {
|
|
808
|
+
return typeof val === "boolean" ? val : true;
|
|
817
809
|
} },
|
|
818
810
|
buildCache: false,
|
|
819
811
|
normalizeComponentNames: { $resolve: (val) => {
|
|
820
812
|
return typeof val === "boolean" ? val : true;
|
|
821
813
|
} },
|
|
822
|
-
normalizePageNames: { $resolve:
|
|
823
|
-
return typeof val === "boolean" ? val :
|
|
814
|
+
normalizePageNames: { $resolve: (val) => {
|
|
815
|
+
return typeof val === "boolean" ? val : true;
|
|
824
816
|
} },
|
|
825
817
|
spaLoadingTemplateLocation: { $resolve: (val) => {
|
|
826
818
|
return typeof val === "string" && (/* @__PURE__ */ new Set(["body", "within"])).has(val) ? val : "body";
|
|
@@ -847,12 +839,9 @@ var experimental_default = defineResolvers({
|
|
|
847
839
|
alwaysRunFetchOnKeyChange: { $resolve: (val) => {
|
|
848
840
|
return typeof val === "boolean" ? val : false;
|
|
849
841
|
} },
|
|
850
|
-
parseErrorData: { $resolve:
|
|
851
|
-
if (
|
|
852
|
-
|
|
853
|
-
return true;
|
|
854
|
-
}
|
|
855
|
-
return typeof val === "boolean" ? val : true;
|
|
842
|
+
parseErrorData: { $resolve: (val) => {
|
|
843
|
+
if (val === false) schemaDiagnostics.NUXT_B5016();
|
|
844
|
+
return true;
|
|
856
845
|
} },
|
|
857
846
|
enforceModuleCompatibility: false,
|
|
858
847
|
pendingWhenIdle: { $resolve: (val) => {
|
|
@@ -862,8 +851,8 @@ var experimental_default = defineResolvers({
|
|
|
862
851
|
extractAsyncDataHandlers: { $resolve: (val) => {
|
|
863
852
|
return typeof val === "boolean" ? val : false;
|
|
864
853
|
} },
|
|
865
|
-
nitroAutoImports: { $resolve:
|
|
866
|
-
return typeof val === "boolean" ? val :
|
|
854
|
+
nitroAutoImports: { $resolve: (val) => {
|
|
855
|
+
return typeof val === "boolean" ? val : false;
|
|
867
856
|
} },
|
|
868
857
|
ssrStreaming: { $resolve(val) {
|
|
869
858
|
const defaultBotRegex = /bot\b|crawl|spider|slurp|facebookexternalhit|google\b|bing\b|yandex\b|baidu\b|duckduck/i;
|
|
@@ -892,11 +881,11 @@ var experimental_default = defineResolvers({
|
|
|
892
881
|
}
|
|
893
882
|
return true;
|
|
894
883
|
} },
|
|
895
|
-
asyncCallHook: { $resolve:
|
|
896
|
-
return typeof val === "boolean" ? val :
|
|
884
|
+
asyncCallHook: { $resolve: (val) => {
|
|
885
|
+
return typeof val === "boolean" ? val : false;
|
|
897
886
|
} },
|
|
898
|
-
clientNodePlaceholder: { $resolve:
|
|
899
|
-
return typeof val === "boolean" ? val :
|
|
887
|
+
clientNodePlaceholder: { $resolve: (val) => {
|
|
888
|
+
return typeof val === "boolean" ? val : true;
|
|
900
889
|
} },
|
|
901
890
|
clearBuildHooks: true
|
|
902
891
|
}
|
|
@@ -1028,9 +1017,7 @@ var postcss_default = defineResolvers({ postcss: {
|
|
|
1028
1017
|
var router_default = defineResolvers({ router: { options: {
|
|
1029
1018
|
hashMode: false,
|
|
1030
1019
|
scrollBehaviorType: "auto",
|
|
1031
|
-
sensitive: { $resolve:
|
|
1032
|
-
return typeof val === "boolean" ? val : await get("future.compatibilityVersion") >= 5;
|
|
1033
|
-
} }
|
|
1020
|
+
sensitive: { $resolve: (val) => typeof val === "boolean" ? val : true }
|
|
1034
1021
|
} } });
|
|
1035
1022
|
//#endregion
|
|
1036
1023
|
//#region src/config/typescript.ts
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as NuxtServerBuildOutput, Q as NuxtServerBuildInput, X as NuxtServerBuild, Z as NuxtServerBuildCapabilities, et as NuxtServerBuildPreview, tt as NuxtServerBuildRuntime } from "./components-
|
|
1
|
+
import { $ as NuxtServerBuildOutput, Q as NuxtServerBuildInput, X as NuxtServerBuild, Z as NuxtServerBuildCapabilities, et as NuxtServerBuildPreview, tt as NuxtServerBuildRuntime } from "./components-Q3JpbO8u.mjs";
|
|
2
2
|
export type { NuxtServerBuild, NuxtServerBuildCapabilities, NuxtServerBuildInput, NuxtServerBuildOutput, NuxtServerBuildPreview, NuxtServerBuildRuntime };
|