@nuxt/schema-nightly 4.2.0-29333825.6cbfa2c8 → 4.2.0-29334440.d083e066
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 +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -91,6 +91,7 @@ interface Component {
|
|
|
91
91
|
kebabName: string;
|
|
92
92
|
export: string;
|
|
93
93
|
filePath: string;
|
|
94
|
+
shortPath: string;
|
|
94
95
|
chunkName: string;
|
|
95
96
|
prefetch: boolean;
|
|
96
97
|
preload: boolean;
|
|
@@ -2251,6 +2252,15 @@ interface ConfigSchema {
|
|
|
2251
2252
|
* Whether to improve chunk stability by using an import map to resolve the entry chunk of the bundle.
|
|
2252
2253
|
*/
|
|
2253
2254
|
entryImportMap: boolean;
|
|
2255
|
+
/**
|
|
2256
|
+
* Extract async data handler functions into separate chunks for better performance and caching.
|
|
2257
|
+
*
|
|
2258
|
+
* When enabled, handler functions passed to `useAsyncData` and `useLazyAsyncData` will be extracted
|
|
2259
|
+
* into separate chunks and dynamically imported, allowing for better code splitting and caching.
|
|
2260
|
+
*
|
|
2261
|
+
* @experimental This is an experimental feature and API may change in the future.
|
|
2262
|
+
*/
|
|
2263
|
+
extractAsyncDataHandlers: boolean;
|
|
2254
2264
|
/**
|
|
2255
2265
|
* Whether to enable `@dxup/nuxt` module for better TypeScript DX.
|
|
2256
2266
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ interface Component {
|
|
|
91
91
|
kebabName: string;
|
|
92
92
|
export: string;
|
|
93
93
|
filePath: string;
|
|
94
|
+
shortPath: string;
|
|
94
95
|
chunkName: string;
|
|
95
96
|
prefetch: boolean;
|
|
96
97
|
preload: boolean;
|
|
@@ -2251,6 +2252,15 @@ interface ConfigSchema {
|
|
|
2251
2252
|
* Whether to improve chunk stability by using an import map to resolve the entry chunk of the bundle.
|
|
2252
2253
|
*/
|
|
2253
2254
|
entryImportMap: boolean;
|
|
2255
|
+
/**
|
|
2256
|
+
* Extract async data handler functions into separate chunks for better performance and caching.
|
|
2257
|
+
*
|
|
2258
|
+
* When enabled, handler functions passed to `useAsyncData` and `useLazyAsyncData` will be extracted
|
|
2259
|
+
* into separate chunks and dynamically imported, allowing for better code splitting and caching.
|
|
2260
|
+
*
|
|
2261
|
+
* @experimental This is an experimental feature and API may change in the future.
|
|
2262
|
+
*/
|
|
2263
|
+
extractAsyncDataHandlers: boolean;
|
|
2254
2264
|
/**
|
|
2255
2265
|
* Whether to enable `@dxup/nuxt` module for better TypeScript DX.
|
|
2256
2266
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -859,7 +859,12 @@ const experimental = defineResolvers({
|
|
|
859
859
|
return typeof val === "boolean" ? val : false;
|
|
860
860
|
}
|
|
861
861
|
},
|
|
862
|
-
entryImportMap: true
|
|
862
|
+
entryImportMap: true,
|
|
863
|
+
extractAsyncDataHandlers: {
|
|
864
|
+
$resolve: (val) => {
|
|
865
|
+
return typeof val === "boolean" ? val : false;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
863
868
|
}
|
|
864
869
|
});
|
|
865
870
|
|