@@ -4,7 +4,7 @@ import { createErrorMap, fromZodError } from "zod-validation-error/v4";
44import type * as t from "../config/types" ;
55import { memoize } from "../util/memoize" ;
66import { getZodSwcLoaderOptionsSchema } from "./loaders" ;
7- import { anyFunction , numberOrInfinity } from "./utils" ;
7+ import { anyFunction , intOrInfinity , numberOrInfinity } from "./utils" ;
88
99z . config ( {
1010 jitless : true
@@ -1132,16 +1132,16 @@ export const getRspackOptionsSchema = memoize(() => {
11321132 groupModulesByAttributes : z . boolean ( ) ,
11331133 groupModulesByPath : z . boolean ( ) ,
11341134 groupModulesByExtension : z . boolean ( ) ,
1135- modulesSpace : z . int ( ) ,
1136- chunkModulesSpace : z . int ( ) ,
1137- nestedModulesSpace : z . int ( ) ,
1135+ modulesSpace : intOrInfinity ,
1136+ chunkModulesSpace : intOrInfinity ,
1137+ nestedModulesSpace : intOrInfinity ,
11381138 relatedAssets : z . boolean ( ) ,
11391139 groupAssetsByEmitStatus : z . boolean ( ) ,
11401140 groupAssetsByInfo : z . boolean ( ) ,
11411141 groupAssetsByPath : z . boolean ( ) ,
11421142 groupAssetsByExtension : z . boolean ( ) ,
11431143 groupAssetsByChunk : z . boolean ( ) ,
1144- assetsSpace : z . int ( ) ,
1144+ assetsSpace : intOrInfinity ,
11451145 orphanModules : z . boolean ( ) ,
11461146 excludeModules : z
11471147 . array ( z . string ( ) . or ( z . instanceof ( RegExp ) ) . or ( anyFunction ) )
@@ -1168,16 +1168,16 @@ export const getRspackOptionsSchema = memoize(() => {
11681168 chunkOrigins : z . boolean ( ) ,
11691169 runtime : z . boolean ( ) ,
11701170 depth : z . boolean ( ) ,
1171- reasonsSpace : z . int ( ) ,
1171+ reasonsSpace : intOrInfinity ,
11721172 groupReasonsByOrigin : z . boolean ( ) ,
11731173 errorDetails : z . boolean ( ) ,
11741174 errorStack : z . boolean ( ) ,
11751175 moduleTrace : z . boolean ( ) ,
11761176 cachedModules : z . boolean ( ) ,
11771177 cachedAssets : z . boolean ( ) ,
11781178 cached : z . boolean ( ) ,
1179- errorsSpace : z . int ( ) ,
1180- warningsSpace : z . int ( )
1179+ errorsSpace : intOrInfinity ,
1180+ warningsSpace : intOrInfinity
11811181 } )
11821182 . partial ( ) satisfies z . ZodType < t . StatsOptions > ;
11831183
0 commit comments