@nuxt/schema-nightly 4.4.0-29533707.0a5a5c19 → 4.4.0-29533984.c5133a48
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 +11 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2178,6 +2178,17 @@ interface ConfigSchema {
|
|
|
2178
2178
|
*/
|
|
2179
2179
|
normalizeComponentNames: boolean;
|
|
2180
2180
|
/**
|
|
2181
|
+
* Ensure that page component names match their route names.
|
|
2182
|
+
*
|
|
2183
|
+
* This is useful when using `<KeepAlive>` with `include`/`exclude` filters, as Vue's
|
|
2184
|
+
* `<KeepAlive>` relies on the component `name` option to identify components.
|
|
2185
|
+
* Without this, page components may have generic names (like `index`) that don't
|
|
2186
|
+
* correspond to their route names, making name-based `<KeepAlive>` filtering unreliable.
|
|
2187
|
+
* @default false
|
|
2188
|
+
* @default true with compatibilityVersion >= 5
|
|
2189
|
+
*/
|
|
2190
|
+
normalizePageNames: boolean;
|
|
2191
|
+
/**
|
|
2181
2192
|
* Keep showing the spa-loading-template until suspense:resolve
|
|
2182
2193
|
*
|
|
2183
2194
|
* @default 'body'
|
package/dist/index.mjs
CHANGED
|
@@ -609,6 +609,9 @@ var experimental_default = defineResolvers({
|
|
|
609
609
|
normalizeComponentNames: { $resolve: (val) => {
|
|
610
610
|
return typeof val === "boolean" ? val : true;
|
|
611
611
|
} },
|
|
612
|
+
normalizePageNames: { $resolve: async (val, get) => {
|
|
613
|
+
return typeof val === "boolean" ? val : await get("future.compatibilityVersion") >= 5;
|
|
614
|
+
} },
|
|
612
615
|
spaLoadingTemplateLocation: { $resolve: (val) => {
|
|
613
616
|
return typeof val === "string" && new Set(["body", "within"]).has(val) ? val : "body";
|
|
614
617
|
} },
|