@nuxt/schema-nightly 4.2.0-29333853.4751a6ac → 4.2.0-29334442.191bcb7e
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 +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -155,11 +155,6 @@ interface ScanDir {
|
|
|
155
155
|
* This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not.
|
|
156
156
|
*/
|
|
157
157
|
isAsync?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Path to component's declaration file
|
|
160
|
-
* Used for type generation when different from filePath
|
|
161
|
-
*/
|
|
162
|
-
declarationPath?: string;
|
|
163
158
|
extendComponent?: (component: Component) => Promise<Component | void> | (Component | void);
|
|
164
159
|
/**
|
|
165
160
|
* If enabled, registers components to be globally available.
|
|
@@ -2252,6 +2247,15 @@ interface ConfigSchema {
|
|
|
2252
2247
|
* Whether to improve chunk stability by using an import map to resolve the entry chunk of the bundle.
|
|
2253
2248
|
*/
|
|
2254
2249
|
entryImportMap: boolean;
|
|
2250
|
+
/**
|
|
2251
|
+
* Extract async data handler functions into separate chunks for better performance and caching.
|
|
2252
|
+
*
|
|
2253
|
+
* When enabled, handler functions passed to `useAsyncData` and `useLazyAsyncData` will be extracted
|
|
2254
|
+
* into separate chunks and dynamically imported, allowing for better code splitting and caching.
|
|
2255
|
+
*
|
|
2256
|
+
* @experimental This is an experimental feature and API may change in the future.
|
|
2257
|
+
*/
|
|
2258
|
+
extractAsyncDataHandlers: boolean;
|
|
2255
2259
|
/**
|
|
2256
2260
|
* Whether to enable `@dxup/nuxt` module for better TypeScript DX.
|
|
2257
2261
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -155,11 +155,6 @@ interface ScanDir {
|
|
|
155
155
|
* This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not.
|
|
156
156
|
*/
|
|
157
157
|
isAsync?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Path to component's declaration file
|
|
160
|
-
* Used for type generation when different from filePath
|
|
161
|
-
*/
|
|
162
|
-
declarationPath?: string;
|
|
163
158
|
extendComponent?: (component: Component) => Promise<Component | void> | (Component | void);
|
|
164
159
|
/**
|
|
165
160
|
* If enabled, registers components to be globally available.
|
|
@@ -2252,6 +2247,15 @@ interface ConfigSchema {
|
|
|
2252
2247
|
* Whether to improve chunk stability by using an import map to resolve the entry chunk of the bundle.
|
|
2253
2248
|
*/
|
|
2254
2249
|
entryImportMap: boolean;
|
|
2250
|
+
/**
|
|
2251
|
+
* Extract async data handler functions into separate chunks for better performance and caching.
|
|
2252
|
+
*
|
|
2253
|
+
* When enabled, handler functions passed to `useAsyncData` and `useLazyAsyncData` will be extracted
|
|
2254
|
+
* into separate chunks and dynamically imported, allowing for better code splitting and caching.
|
|
2255
|
+
*
|
|
2256
|
+
* @experimental This is an experimental feature and API may change in the future.
|
|
2257
|
+
*/
|
|
2258
|
+
extractAsyncDataHandlers: boolean;
|
|
2255
2259
|
/**
|
|
2256
2260
|
* Whether to enable `@dxup/nuxt` module for better TypeScript DX.
|
|
2257
2261
|
*
|
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
|
|