@rspack/core 1.1.1 → 1.1.3

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.
@@ -5,7 +5,7 @@ import type { Compilation, PathData } from "../Compilation";
5
5
  import { Module } from "../Module";
6
6
  import type * as t from "./types";
7
7
  import { ZodRspackCrossChecker } from "./utils";
8
- export declare const externalsType: z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>;
8
+ export declare const externalsType: z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>;
9
9
  export declare const rspackOptions: z.ZodObject<{
10
10
  name: z.ZodOptional<z.ZodString>;
11
11
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -806,6 +806,60 @@ export declare const rspackOptions: z.ZodObject<{
806
806
  target: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, "many">]>>;
807
807
  mode: z.ZodOptional<z.ZodEnum<["development", "production", "none"]>>;
808
808
  experiments: z.ZodOptional<z.ZodObject<{
809
+ cache: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodUnion<[z.ZodObject<{
810
+ type: z.ZodEnum<["memory"]>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ type: "memory";
813
+ }, {
814
+ type: "memory";
815
+ }>, z.ZodObject<{
816
+ type: z.ZodEnum<["persistent"]>;
817
+ snapshot: z.ZodObject<{
818
+ immutablePaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
819
+ unmanagedPaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
820
+ managedPaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
821
+ }, "strict", z.ZodTypeAny, {
822
+ immutablePaths: (string | RegExp)[];
823
+ unmanagedPaths: (string | RegExp)[];
824
+ managedPaths: (string | RegExp)[];
825
+ }, {
826
+ immutablePaths: (string | RegExp)[];
827
+ unmanagedPaths: (string | RegExp)[];
828
+ managedPaths: (string | RegExp)[];
829
+ }>;
830
+ storage: z.ZodObject<{
831
+ type: z.ZodEnum<["filesystem"]>;
832
+ directory: z.ZodString;
833
+ }, "strict", z.ZodTypeAny, {
834
+ type: "filesystem";
835
+ directory: string;
836
+ }, {
837
+ type: "filesystem";
838
+ directory: string;
839
+ }>;
840
+ }, "strip", z.ZodTypeAny, {
841
+ type: "persistent";
842
+ snapshot: {
843
+ immutablePaths: (string | RegExp)[];
844
+ unmanagedPaths: (string | RegExp)[];
845
+ managedPaths: (string | RegExp)[];
846
+ };
847
+ storage: {
848
+ type: "filesystem";
849
+ directory: string;
850
+ };
851
+ }, {
852
+ type: "persistent";
853
+ snapshot: {
854
+ immutablePaths: (string | RegExp)[];
855
+ unmanagedPaths: (string | RegExp)[];
856
+ managedPaths: (string | RegExp)[];
857
+ };
858
+ storage: {
859
+ type: "filesystem";
860
+ directory: string;
861
+ };
862
+ }>]>]>;
809
863
  lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
810
864
  backend: z.ZodOptional<z.ZodObject<{
811
865
  client: z.ZodOptional<z.ZodString>;
@@ -912,34 +966,43 @@ export declare const rspackOptions: z.ZodObject<{
912
966
  layers: z.ZodOptional<z.ZodBoolean>;
913
967
  incremental: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
914
968
  make: z.ZodOptional<z.ZodBoolean>;
915
- emitAssets: z.ZodOptional<z.ZodBoolean>;
916
969
  inferAsyncModules: z.ZodOptional<z.ZodBoolean>;
917
970
  providedExports: z.ZodOptional<z.ZodBoolean>;
918
971
  dependenciesDiagnostics: z.ZodOptional<z.ZodBoolean>;
972
+ buildChunkGraph: z.ZodOptional<z.ZodBoolean>;
919
973
  modulesHashes: z.ZodOptional<z.ZodBoolean>;
920
974
  modulesCodegen: z.ZodOptional<z.ZodBoolean>;
921
975
  modulesRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
922
- buildChunkGraph: z.ZodOptional<z.ZodBoolean>;
976
+ chunksRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
977
+ chunksHashes: z.ZodOptional<z.ZodBoolean>;
978
+ chunksRender: z.ZodOptional<z.ZodBoolean>;
979
+ emitAssets: z.ZodOptional<z.ZodBoolean>;
923
980
  }, "strict", z.ZodTypeAny, {
924
981
  make?: boolean | undefined;
925
982
  providedExports?: boolean | undefined;
926
- emitAssets?: boolean | undefined;
927
983
  inferAsyncModules?: boolean | undefined;
928
984
  dependenciesDiagnostics?: boolean | undefined;
985
+ buildChunkGraph?: boolean | undefined;
929
986
  modulesHashes?: boolean | undefined;
930
987
  modulesCodegen?: boolean | undefined;
931
988
  modulesRuntimeRequirements?: boolean | undefined;
932
- buildChunkGraph?: boolean | undefined;
989
+ chunksRuntimeRequirements?: boolean | undefined;
990
+ chunksHashes?: boolean | undefined;
991
+ chunksRender?: boolean | undefined;
992
+ emitAssets?: boolean | undefined;
933
993
  }, {
934
994
  make?: boolean | undefined;
935
995
  providedExports?: boolean | undefined;
936
- emitAssets?: boolean | undefined;
937
996
  inferAsyncModules?: boolean | undefined;
938
997
  dependenciesDiagnostics?: boolean | undefined;
998
+ buildChunkGraph?: boolean | undefined;
939
999
  modulesHashes?: boolean | undefined;
940
1000
  modulesCodegen?: boolean | undefined;
941
1001
  modulesRuntimeRequirements?: boolean | undefined;
942
- buildChunkGraph?: boolean | undefined;
1002
+ chunksRuntimeRequirements?: boolean | undefined;
1003
+ chunksHashes?: boolean | undefined;
1004
+ chunksRender?: boolean | undefined;
1005
+ emitAssets?: boolean | undefined;
943
1006
  }>]>>;
944
1007
  futureDefaults: z.ZodOptional<z.ZodBoolean>;
945
1008
  rspackFuture: z.ZodOptional<z.ZodObject<{
@@ -971,18 +1034,35 @@ export declare const rspackOptions: z.ZodObject<{
971
1034
  }>>;
972
1035
  }, "strict", z.ZodTypeAny, {
973
1036
  css?: boolean | undefined;
1037
+ cache?: boolean | {
1038
+ type: "memory";
1039
+ } | {
1040
+ type: "persistent";
1041
+ snapshot: {
1042
+ immutablePaths: (string | RegExp)[];
1043
+ unmanagedPaths: (string | RegExp)[];
1044
+ managedPaths: (string | RegExp)[];
1045
+ };
1046
+ storage: {
1047
+ type: "filesystem";
1048
+ directory: string;
1049
+ };
1050
+ } | undefined;
974
1051
  topLevelAwait?: boolean | undefined;
975
1052
  layers?: boolean | undefined;
976
1053
  incremental?: boolean | {
977
1054
  make?: boolean | undefined;
978
1055
  providedExports?: boolean | undefined;
979
- emitAssets?: boolean | undefined;
980
1056
  inferAsyncModules?: boolean | undefined;
981
1057
  dependenciesDiagnostics?: boolean | undefined;
1058
+ buildChunkGraph?: boolean | undefined;
982
1059
  modulesHashes?: boolean | undefined;
983
1060
  modulesCodegen?: boolean | undefined;
984
1061
  modulesRuntimeRequirements?: boolean | undefined;
985
- buildChunkGraph?: boolean | undefined;
1062
+ chunksRuntimeRequirements?: boolean | undefined;
1063
+ chunksHashes?: boolean | undefined;
1064
+ chunksRender?: boolean | undefined;
1065
+ emitAssets?: boolean | undefined;
986
1066
  } | undefined;
987
1067
  rspackFuture?: {
988
1068
  bundlerInfo?: {
@@ -1015,18 +1095,35 @@ export declare const rspackOptions: z.ZodObject<{
1015
1095
  } | undefined;
1016
1096
  }, {
1017
1097
  css?: boolean | undefined;
1098
+ cache?: boolean | {
1099
+ type: "memory";
1100
+ } | {
1101
+ type: "persistent";
1102
+ snapshot: {
1103
+ immutablePaths: (string | RegExp)[];
1104
+ unmanagedPaths: (string | RegExp)[];
1105
+ managedPaths: (string | RegExp)[];
1106
+ };
1107
+ storage: {
1108
+ type: "filesystem";
1109
+ directory: string;
1110
+ };
1111
+ } | undefined;
1018
1112
  topLevelAwait?: boolean | undefined;
1019
1113
  layers?: boolean | undefined;
1020
1114
  incremental?: boolean | {
1021
1115
  make?: boolean | undefined;
1022
1116
  providedExports?: boolean | undefined;
1023
- emitAssets?: boolean | undefined;
1024
1117
  inferAsyncModules?: boolean | undefined;
1025
1118
  dependenciesDiagnostics?: boolean | undefined;
1119
+ buildChunkGraph?: boolean | undefined;
1026
1120
  modulesHashes?: boolean | undefined;
1027
1121
  modulesCodegen?: boolean | undefined;
1028
1122
  modulesRuntimeRequirements?: boolean | undefined;
1029
- buildChunkGraph?: boolean | undefined;
1123
+ chunksRuntimeRequirements?: boolean | undefined;
1124
+ chunksHashes?: boolean | undefined;
1125
+ chunksRender?: boolean | undefined;
1126
+ emitAssets?: boolean | undefined;
1030
1127
  } | undefined;
1031
1128
  rspackFuture?: {
1032
1129
  bundlerInfo?: {
@@ -1083,7 +1180,7 @@ export declare const rspackOptions: z.ZodObject<{
1083
1180
  contextInfo?: {
1084
1181
  issuer: string;
1085
1182
  } | undefined;
1086
- }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1183
+ }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1087
1184
  context: z.ZodOptional<z.ZodString>;
1088
1185
  dependencyType: z.ZodOptional<z.ZodString>;
1089
1186
  request: z.ZodOptional<z.ZodString>;
@@ -1133,7 +1230,7 @@ export declare const rspackOptions: z.ZodObject<{
1133
1230
  contextInfo?: {
1134
1231
  issuer: string;
1135
1232
  } | undefined;
1136
- }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1233
+ }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1137
1234
  context: z.ZodOptional<z.ZodString>;
1138
1235
  dependencyType: z.ZodOptional<z.ZodString>;
1139
1236
  request: z.ZodOptional<z.ZodString>;
@@ -1159,7 +1256,7 @@ export declare const rspackOptions: z.ZodObject<{
1159
1256
  issuer: string;
1160
1257
  } | undefined;
1161
1258
  }>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
1162
- externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>;
1259
+ externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>;
1163
1260
  externalsPresets: z.ZodOptional<z.ZodObject<{
1164
1261
  node: z.ZodOptional<z.ZodBoolean>;
1165
1262
  web: z.ZodOptional<z.ZodBoolean>;
@@ -1899,12 +1996,12 @@ export declare const rspackOptions: z.ZodObject<{
1899
1996
  requireResolve: z.ZodOptional<z.ZodBoolean>;
1900
1997
  importDynamic: z.ZodOptional<z.ZodBoolean>;
1901
1998
  }, "strict", z.ZodTypeAny, {
1902
- url?: boolean | "relative" | undefined;
1903
1999
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
1904
2000
  dynamicImportPreload?: number | boolean | undefined;
1905
2001
  dynamicImportPrefetch?: number | boolean | undefined;
1906
2002
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
1907
2003
  importMeta?: boolean | undefined;
2004
+ url?: boolean | "relative" | undefined;
1908
2005
  exprContextCritical?: boolean | undefined;
1909
2006
  wrappedContextCritical?: boolean | undefined;
1910
2007
  wrappedContextRegExp?: RegExp | undefined;
@@ -1919,12 +2016,12 @@ export declare const rspackOptions: z.ZodObject<{
1919
2016
  requireResolve?: boolean | undefined;
1920
2017
  importDynamic?: boolean | undefined;
1921
2018
  }, {
1922
- url?: boolean | "relative" | undefined;
1923
2019
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
1924
2020
  dynamicImportPreload?: number | boolean | undefined;
1925
2021
  dynamicImportPrefetch?: number | boolean | undefined;
1926
2022
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
1927
2023
  importMeta?: boolean | undefined;
2024
+ url?: boolean | "relative" | undefined;
1928
2025
  exprContextCritical?: boolean | undefined;
1929
2026
  wrappedContextCritical?: boolean | undefined;
1930
2027
  wrappedContextRegExp?: RegExp | undefined;
@@ -1960,12 +2057,12 @@ export declare const rspackOptions: z.ZodObject<{
1960
2057
  requireResolve: z.ZodOptional<z.ZodBoolean>;
1961
2058
  importDynamic: z.ZodOptional<z.ZodBoolean>;
1962
2059
  }, "strict", z.ZodTypeAny, {
1963
- url?: boolean | "relative" | undefined;
1964
2060
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
1965
2061
  dynamicImportPreload?: number | boolean | undefined;
1966
2062
  dynamicImportPrefetch?: number | boolean | undefined;
1967
2063
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
1968
2064
  importMeta?: boolean | undefined;
2065
+ url?: boolean | "relative" | undefined;
1969
2066
  exprContextCritical?: boolean | undefined;
1970
2067
  wrappedContextCritical?: boolean | undefined;
1971
2068
  wrappedContextRegExp?: RegExp | undefined;
@@ -1980,12 +2077,12 @@ export declare const rspackOptions: z.ZodObject<{
1980
2077
  requireResolve?: boolean | undefined;
1981
2078
  importDynamic?: boolean | undefined;
1982
2079
  }, {
1983
- url?: boolean | "relative" | undefined;
1984
2080
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
1985
2081
  dynamicImportPreload?: number | boolean | undefined;
1986
2082
  dynamicImportPrefetch?: number | boolean | undefined;
1987
2083
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
1988
2084
  importMeta?: boolean | undefined;
2085
+ url?: boolean | "relative" | undefined;
1989
2086
  exprContextCritical?: boolean | undefined;
1990
2087
  wrappedContextCritical?: boolean | undefined;
1991
2088
  wrappedContextRegExp?: RegExp | undefined;
@@ -2021,12 +2118,12 @@ export declare const rspackOptions: z.ZodObject<{
2021
2118
  requireResolve: z.ZodOptional<z.ZodBoolean>;
2022
2119
  importDynamic: z.ZodOptional<z.ZodBoolean>;
2023
2120
  }, "strict", z.ZodTypeAny, {
2024
- url?: boolean | "relative" | undefined;
2025
2121
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2026
2122
  dynamicImportPreload?: number | boolean | undefined;
2027
2123
  dynamicImportPrefetch?: number | boolean | undefined;
2028
2124
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2029
2125
  importMeta?: boolean | undefined;
2126
+ url?: boolean | "relative" | undefined;
2030
2127
  exprContextCritical?: boolean | undefined;
2031
2128
  wrappedContextCritical?: boolean | undefined;
2032
2129
  wrappedContextRegExp?: RegExp | undefined;
@@ -2041,12 +2138,12 @@ export declare const rspackOptions: z.ZodObject<{
2041
2138
  requireResolve?: boolean | undefined;
2042
2139
  importDynamic?: boolean | undefined;
2043
2140
  }, {
2044
- url?: boolean | "relative" | undefined;
2045
2141
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2046
2142
  dynamicImportPreload?: number | boolean | undefined;
2047
2143
  dynamicImportPrefetch?: number | boolean | undefined;
2048
2144
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2049
2145
  importMeta?: boolean | undefined;
2146
+ url?: boolean | "relative" | undefined;
2050
2147
  exprContextCritical?: boolean | undefined;
2051
2148
  wrappedContextCritical?: boolean | undefined;
2052
2149
  wrappedContextRegExp?: RegExp | undefined;
@@ -2082,12 +2179,12 @@ export declare const rspackOptions: z.ZodObject<{
2082
2179
  requireResolve: z.ZodOptional<z.ZodBoolean>;
2083
2180
  importDynamic: z.ZodOptional<z.ZodBoolean>;
2084
2181
  }, "strict", z.ZodTypeAny, {
2085
- url?: boolean | "relative" | undefined;
2086
2182
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2087
2183
  dynamicImportPreload?: number | boolean | undefined;
2088
2184
  dynamicImportPrefetch?: number | boolean | undefined;
2089
2185
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2090
2186
  importMeta?: boolean | undefined;
2187
+ url?: boolean | "relative" | undefined;
2091
2188
  exprContextCritical?: boolean | undefined;
2092
2189
  wrappedContextCritical?: boolean | undefined;
2093
2190
  wrappedContextRegExp?: RegExp | undefined;
@@ -2102,12 +2199,12 @@ export declare const rspackOptions: z.ZodObject<{
2102
2199
  requireResolve?: boolean | undefined;
2103
2200
  importDynamic?: boolean | undefined;
2104
2201
  }, {
2105
- url?: boolean | "relative" | undefined;
2106
2202
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2107
2203
  dynamicImportPreload?: number | boolean | undefined;
2108
2204
  dynamicImportPrefetch?: number | boolean | undefined;
2109
2205
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2110
2206
  importMeta?: boolean | undefined;
2207
+ url?: boolean | "relative" | undefined;
2111
2208
  exprContextCritical?: boolean | undefined;
2112
2209
  wrappedContextCritical?: boolean | undefined;
2113
2210
  wrappedContextRegExp?: RegExp | undefined;
@@ -2124,12 +2221,12 @@ export declare const rspackOptions: z.ZodObject<{
2124
2221
  }>>;
2125
2222
  }, "strict", z.ZodTypeAny, {
2126
2223
  javascript?: {
2127
- url?: boolean | "relative" | undefined;
2128
2224
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2129
2225
  dynamicImportPreload?: number | boolean | undefined;
2130
2226
  dynamicImportPrefetch?: number | boolean | undefined;
2131
2227
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2132
2228
  importMeta?: boolean | undefined;
2229
+ url?: boolean | "relative" | undefined;
2133
2230
  exprContextCritical?: boolean | undefined;
2134
2231
  wrappedContextCritical?: boolean | undefined;
2135
2232
  wrappedContextRegExp?: RegExp | undefined;
@@ -2159,12 +2256,12 @@ export declare const rspackOptions: z.ZodObject<{
2159
2256
  } | undefined;
2160
2257
  } | undefined;
2161
2258
  "javascript/auto"?: {
2162
- url?: boolean | "relative" | undefined;
2163
2259
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2164
2260
  dynamicImportPreload?: number | boolean | undefined;
2165
2261
  dynamicImportPrefetch?: number | boolean | undefined;
2166
2262
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2167
2263
  importMeta?: boolean | undefined;
2264
+ url?: boolean | "relative" | undefined;
2168
2265
  exprContextCritical?: boolean | undefined;
2169
2266
  wrappedContextCritical?: boolean | undefined;
2170
2267
  wrappedContextRegExp?: RegExp | undefined;
@@ -2180,12 +2277,12 @@ export declare const rspackOptions: z.ZodObject<{
2180
2277
  importDynamic?: boolean | undefined;
2181
2278
  } | undefined;
2182
2279
  "javascript/dynamic"?: {
2183
- url?: boolean | "relative" | undefined;
2184
2280
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2185
2281
  dynamicImportPreload?: number | boolean | undefined;
2186
2282
  dynamicImportPrefetch?: number | boolean | undefined;
2187
2283
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2188
2284
  importMeta?: boolean | undefined;
2285
+ url?: boolean | "relative" | undefined;
2189
2286
  exprContextCritical?: boolean | undefined;
2190
2287
  wrappedContextCritical?: boolean | undefined;
2191
2288
  wrappedContextRegExp?: RegExp | undefined;
@@ -2201,12 +2298,12 @@ export declare const rspackOptions: z.ZodObject<{
2201
2298
  importDynamic?: boolean | undefined;
2202
2299
  } | undefined;
2203
2300
  "javascript/esm"?: {
2204
- url?: boolean | "relative" | undefined;
2205
2301
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2206
2302
  dynamicImportPreload?: number | boolean | undefined;
2207
2303
  dynamicImportPrefetch?: number | boolean | undefined;
2208
2304
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2209
2305
  importMeta?: boolean | undefined;
2306
+ url?: boolean | "relative" | undefined;
2210
2307
  exprContextCritical?: boolean | undefined;
2211
2308
  wrappedContextCritical?: boolean | undefined;
2212
2309
  wrappedContextRegExp?: RegExp | undefined;
@@ -2223,12 +2320,12 @@ export declare const rspackOptions: z.ZodObject<{
2223
2320
  } | undefined;
2224
2321
  }, {
2225
2322
  javascript?: {
2226
- url?: boolean | "relative" | undefined;
2227
2323
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2228
2324
  dynamicImportPreload?: number | boolean | undefined;
2229
2325
  dynamicImportPrefetch?: number | boolean | undefined;
2230
2326
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2231
2327
  importMeta?: boolean | undefined;
2328
+ url?: boolean | "relative" | undefined;
2232
2329
  exprContextCritical?: boolean | undefined;
2233
2330
  wrappedContextCritical?: boolean | undefined;
2234
2331
  wrappedContextRegExp?: RegExp | undefined;
@@ -2258,12 +2355,12 @@ export declare const rspackOptions: z.ZodObject<{
2258
2355
  } | undefined;
2259
2356
  } | undefined;
2260
2357
  "javascript/auto"?: {
2261
- url?: boolean | "relative" | undefined;
2262
2358
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2263
2359
  dynamicImportPreload?: number | boolean | undefined;
2264
2360
  dynamicImportPrefetch?: number | boolean | undefined;
2265
2361
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2266
2362
  importMeta?: boolean | undefined;
2363
+ url?: boolean | "relative" | undefined;
2267
2364
  exprContextCritical?: boolean | undefined;
2268
2365
  wrappedContextCritical?: boolean | undefined;
2269
2366
  wrappedContextRegExp?: RegExp | undefined;
@@ -2279,12 +2376,12 @@ export declare const rspackOptions: z.ZodObject<{
2279
2376
  importDynamic?: boolean | undefined;
2280
2377
  } | undefined;
2281
2378
  "javascript/dynamic"?: {
2282
- url?: boolean | "relative" | undefined;
2283
2379
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2284
2380
  dynamicImportPreload?: number | boolean | undefined;
2285
2381
  dynamicImportPrefetch?: number | boolean | undefined;
2286
2382
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2287
2383
  importMeta?: boolean | undefined;
2384
+ url?: boolean | "relative" | undefined;
2288
2385
  exprContextCritical?: boolean | undefined;
2289
2386
  wrappedContextCritical?: boolean | undefined;
2290
2387
  wrappedContextRegExp?: RegExp | undefined;
@@ -2300,12 +2397,12 @@ export declare const rspackOptions: z.ZodObject<{
2300
2397
  importDynamic?: boolean | undefined;
2301
2398
  } | undefined;
2302
2399
  "javascript/esm"?: {
2303
- url?: boolean | "relative" | undefined;
2304
2400
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2305
2401
  dynamicImportPreload?: number | boolean | undefined;
2306
2402
  dynamicImportPrefetch?: number | boolean | undefined;
2307
2403
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2308
2404
  importMeta?: boolean | undefined;
2405
+ url?: boolean | "relative" | undefined;
2309
2406
  exprContextCritical?: boolean | undefined;
2310
2407
  wrappedContextCritical?: boolean | undefined;
2311
2408
  wrappedContextRegExp?: RegExp | undefined;
@@ -2598,12 +2695,12 @@ export declare const rspackOptions: z.ZodObject<{
2598
2695
  rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2599
2696
  parser?: {
2600
2697
  javascript?: {
2601
- url?: boolean | "relative" | undefined;
2602
2698
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2603
2699
  dynamicImportPreload?: number | boolean | undefined;
2604
2700
  dynamicImportPrefetch?: number | boolean | undefined;
2605
2701
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2606
2702
  importMeta?: boolean | undefined;
2703
+ url?: boolean | "relative" | undefined;
2607
2704
  exprContextCritical?: boolean | undefined;
2608
2705
  wrappedContextCritical?: boolean | undefined;
2609
2706
  wrappedContextRegExp?: RegExp | undefined;
@@ -2633,12 +2730,12 @@ export declare const rspackOptions: z.ZodObject<{
2633
2730
  } | undefined;
2634
2731
  } | undefined;
2635
2732
  "javascript/auto"?: {
2636
- url?: boolean | "relative" | undefined;
2637
2733
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2638
2734
  dynamicImportPreload?: number | boolean | undefined;
2639
2735
  dynamicImportPrefetch?: number | boolean | undefined;
2640
2736
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2641
2737
  importMeta?: boolean | undefined;
2738
+ url?: boolean | "relative" | undefined;
2642
2739
  exprContextCritical?: boolean | undefined;
2643
2740
  wrappedContextCritical?: boolean | undefined;
2644
2741
  wrappedContextRegExp?: RegExp | undefined;
@@ -2654,12 +2751,12 @@ export declare const rspackOptions: z.ZodObject<{
2654
2751
  importDynamic?: boolean | undefined;
2655
2752
  } | undefined;
2656
2753
  "javascript/dynamic"?: {
2657
- url?: boolean | "relative" | undefined;
2658
2754
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2659
2755
  dynamicImportPreload?: number | boolean | undefined;
2660
2756
  dynamicImportPrefetch?: number | boolean | undefined;
2661
2757
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2662
2758
  importMeta?: boolean | undefined;
2759
+ url?: boolean | "relative" | undefined;
2663
2760
  exprContextCritical?: boolean | undefined;
2664
2761
  wrappedContextCritical?: boolean | undefined;
2665
2762
  wrappedContextRegExp?: RegExp | undefined;
@@ -2675,12 +2772,12 @@ export declare const rspackOptions: z.ZodObject<{
2675
2772
  importDynamic?: boolean | undefined;
2676
2773
  } | undefined;
2677
2774
  "javascript/esm"?: {
2678
- url?: boolean | "relative" | undefined;
2679
2775
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2680
2776
  dynamicImportPreload?: number | boolean | undefined;
2681
2777
  dynamicImportPrefetch?: number | boolean | undefined;
2682
2778
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2683
2779
  importMeta?: boolean | undefined;
2780
+ url?: boolean | "relative" | undefined;
2684
2781
  exprContextCritical?: boolean | undefined;
2685
2782
  wrappedContextCritical?: boolean | undefined;
2686
2783
  wrappedContextRegExp?: RegExp | undefined;
@@ -2746,12 +2843,12 @@ export declare const rspackOptions: z.ZodObject<{
2746
2843
  rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2747
2844
  parser?: {
2748
2845
  javascript?: {
2749
- url?: boolean | "relative" | undefined;
2750
2846
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2751
2847
  dynamicImportPreload?: number | boolean | undefined;
2752
2848
  dynamicImportPrefetch?: number | boolean | undefined;
2753
2849
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2754
2850
  importMeta?: boolean | undefined;
2851
+ url?: boolean | "relative" | undefined;
2755
2852
  exprContextCritical?: boolean | undefined;
2756
2853
  wrappedContextCritical?: boolean | undefined;
2757
2854
  wrappedContextRegExp?: RegExp | undefined;
@@ -2781,12 +2878,12 @@ export declare const rspackOptions: z.ZodObject<{
2781
2878
  } | undefined;
2782
2879
  } | undefined;
2783
2880
  "javascript/auto"?: {
2784
- url?: boolean | "relative" | undefined;
2785
2881
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2786
2882
  dynamicImportPreload?: number | boolean | undefined;
2787
2883
  dynamicImportPrefetch?: number | boolean | undefined;
2788
2884
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2789
2885
  importMeta?: boolean | undefined;
2886
+ url?: boolean | "relative" | undefined;
2790
2887
  exprContextCritical?: boolean | undefined;
2791
2888
  wrappedContextCritical?: boolean | undefined;
2792
2889
  wrappedContextRegExp?: RegExp | undefined;
@@ -2802,12 +2899,12 @@ export declare const rspackOptions: z.ZodObject<{
2802
2899
  importDynamic?: boolean | undefined;
2803
2900
  } | undefined;
2804
2901
  "javascript/dynamic"?: {
2805
- url?: boolean | "relative" | undefined;
2806
2902
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2807
2903
  dynamicImportPreload?: number | boolean | undefined;
2808
2904
  dynamicImportPrefetch?: number | boolean | undefined;
2809
2905
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2810
2906
  importMeta?: boolean | undefined;
2907
+ url?: boolean | "relative" | undefined;
2811
2908
  exprContextCritical?: boolean | undefined;
2812
2909
  wrappedContextCritical?: boolean | undefined;
2813
2910
  wrappedContextRegExp?: RegExp | undefined;
@@ -2823,12 +2920,12 @@ export declare const rspackOptions: z.ZodObject<{
2823
2920
  importDynamic?: boolean | undefined;
2824
2921
  } | undefined;
2825
2922
  "javascript/esm"?: {
2826
- url?: boolean | "relative" | undefined;
2827
2923
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2828
2924
  dynamicImportPreload?: number | boolean | undefined;
2829
2925
  dynamicImportPrefetch?: number | boolean | undefined;
2830
2926
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2831
2927
  importMeta?: boolean | undefined;
2928
+ url?: boolean | "relative" | undefined;
2832
2929
  exprContextCritical?: boolean | undefined;
2833
2930
  wrappedContextCritical?: boolean | undefined;
2834
2931
  wrappedContextRegExp?: RegExp | undefined;
@@ -2916,12 +3013,12 @@ export declare const rspackOptions: z.ZodObject<{
2916
3013
  rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2917
3014
  parser?: {
2918
3015
  javascript?: {
2919
- url?: boolean | "relative" | undefined;
2920
3016
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2921
3017
  dynamicImportPreload?: number | boolean | undefined;
2922
3018
  dynamicImportPrefetch?: number | boolean | undefined;
2923
3019
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2924
3020
  importMeta?: boolean | undefined;
3021
+ url?: boolean | "relative" | undefined;
2925
3022
  exprContextCritical?: boolean | undefined;
2926
3023
  wrappedContextCritical?: boolean | undefined;
2927
3024
  wrappedContextRegExp?: RegExp | undefined;
@@ -2951,12 +3048,12 @@ export declare const rspackOptions: z.ZodObject<{
2951
3048
  } | undefined;
2952
3049
  } | undefined;
2953
3050
  "javascript/auto"?: {
2954
- url?: boolean | "relative" | undefined;
2955
3051
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2956
3052
  dynamicImportPreload?: number | boolean | undefined;
2957
3053
  dynamicImportPrefetch?: number | boolean | undefined;
2958
3054
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2959
3055
  importMeta?: boolean | undefined;
3056
+ url?: boolean | "relative" | undefined;
2960
3057
  exprContextCritical?: boolean | undefined;
2961
3058
  wrappedContextCritical?: boolean | undefined;
2962
3059
  wrappedContextRegExp?: RegExp | undefined;
@@ -2972,12 +3069,12 @@ export declare const rspackOptions: z.ZodObject<{
2972
3069
  importDynamic?: boolean | undefined;
2973
3070
  } | undefined;
2974
3071
  "javascript/dynamic"?: {
2975
- url?: boolean | "relative" | undefined;
2976
3072
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2977
3073
  dynamicImportPreload?: number | boolean | undefined;
2978
3074
  dynamicImportPrefetch?: number | boolean | undefined;
2979
3075
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
2980
3076
  importMeta?: boolean | undefined;
3077
+ url?: boolean | "relative" | undefined;
2981
3078
  exprContextCritical?: boolean | undefined;
2982
3079
  wrappedContextCritical?: boolean | undefined;
2983
3080
  wrappedContextRegExp?: RegExp | undefined;
@@ -2993,12 +3090,12 @@ export declare const rspackOptions: z.ZodObject<{
2993
3090
  importDynamic?: boolean | undefined;
2994
3091
  } | undefined;
2995
3092
  "javascript/esm"?: {
2996
- url?: boolean | "relative" | undefined;
2997
3093
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
2998
3094
  dynamicImportPreload?: number | boolean | undefined;
2999
3095
  dynamicImportPrefetch?: number | boolean | undefined;
3000
3096
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
3001
3097
  importMeta?: boolean | undefined;
3098
+ url?: boolean | "relative" | undefined;
3002
3099
  exprContextCritical?: boolean | undefined;
3003
3100
  wrappedContextCritical?: boolean | undefined;
3004
3101
  wrappedContextRegExp?: RegExp | undefined;
@@ -3119,18 +3216,35 @@ export declare const rspackOptions: z.ZodObject<{
3119
3216
  mode?: "none" | "development" | "production" | undefined;
3120
3217
  experiments?: {
3121
3218
  css?: boolean | undefined;
3219
+ cache?: boolean | {
3220
+ type: "memory";
3221
+ } | {
3222
+ type: "persistent";
3223
+ snapshot: {
3224
+ immutablePaths: (string | RegExp)[];
3225
+ unmanagedPaths: (string | RegExp)[];
3226
+ managedPaths: (string | RegExp)[];
3227
+ };
3228
+ storage: {
3229
+ type: "filesystem";
3230
+ directory: string;
3231
+ };
3232
+ } | undefined;
3122
3233
  topLevelAwait?: boolean | undefined;
3123
3234
  layers?: boolean | undefined;
3124
3235
  incremental?: boolean | {
3125
3236
  make?: boolean | undefined;
3126
3237
  providedExports?: boolean | undefined;
3127
- emitAssets?: boolean | undefined;
3128
3238
  inferAsyncModules?: boolean | undefined;
3129
3239
  dependenciesDiagnostics?: boolean | undefined;
3240
+ buildChunkGraph?: boolean | undefined;
3130
3241
  modulesHashes?: boolean | undefined;
3131
3242
  modulesCodegen?: boolean | undefined;
3132
3243
  modulesRuntimeRequirements?: boolean | undefined;
3133
- buildChunkGraph?: boolean | undefined;
3244
+ chunksRuntimeRequirements?: boolean | undefined;
3245
+ chunksHashes?: boolean | undefined;
3246
+ chunksRender?: boolean | undefined;
3247
+ emitAssets?: boolean | undefined;
3134
3248
  } | undefined;
3135
3249
  rspackFuture?: {
3136
3250
  bundlerInfo?: {
@@ -3416,7 +3530,7 @@ export declare const rspackOptions: z.ZodObject<{
3416
3530
  contextInfo?: {
3417
3531
  issuer: string;
3418
3532
  } | undefined;
3419
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3533
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3420
3534
  request?: string | undefined;
3421
3535
  context?: string | undefined;
3422
3536
  dependencyType?: string | undefined;
@@ -3430,7 +3544,7 @@ export declare const rspackOptions: z.ZodObject<{
3430
3544
  contextInfo?: {
3431
3545
  issuer: string;
3432
3546
  } | undefined;
3433
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3547
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3434
3548
  request?: string | undefined;
3435
3549
  context?: string | undefined;
3436
3550
  dependencyType?: string | undefined;
@@ -3438,7 +3552,7 @@ export declare const rspackOptions: z.ZodObject<{
3438
3552
  issuer: string;
3439
3553
  } | undefined;
3440
3554
  }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
3441
- externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined;
3555
+ externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
3442
3556
  externalsPresets?: {
3443
3557
  node?: boolean | undefined;
3444
3558
  web?: boolean | undefined;
@@ -3521,12 +3635,12 @@ export declare const rspackOptions: z.ZodObject<{
3521
3635
  rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
3522
3636
  parser?: {
3523
3637
  javascript?: {
3524
- url?: boolean | "relative" | undefined;
3525
3638
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
3526
3639
  dynamicImportPreload?: number | boolean | undefined;
3527
3640
  dynamicImportPrefetch?: number | boolean | undefined;
3528
3641
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
3529
3642
  importMeta?: boolean | undefined;
3643
+ url?: boolean | "relative" | undefined;
3530
3644
  exprContextCritical?: boolean | undefined;
3531
3645
  wrappedContextCritical?: boolean | undefined;
3532
3646
  wrappedContextRegExp?: RegExp | undefined;
@@ -3556,12 +3670,12 @@ export declare const rspackOptions: z.ZodObject<{
3556
3670
  } | undefined;
3557
3671
  } | undefined;
3558
3672
  "javascript/auto"?: {
3559
- url?: boolean | "relative" | undefined;
3560
3673
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
3561
3674
  dynamicImportPreload?: number | boolean | undefined;
3562
3675
  dynamicImportPrefetch?: number | boolean | undefined;
3563
3676
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
3564
3677
  importMeta?: boolean | undefined;
3678
+ url?: boolean | "relative" | undefined;
3565
3679
  exprContextCritical?: boolean | undefined;
3566
3680
  wrappedContextCritical?: boolean | undefined;
3567
3681
  wrappedContextRegExp?: RegExp | undefined;
@@ -3577,12 +3691,12 @@ export declare const rspackOptions: z.ZodObject<{
3577
3691
  importDynamic?: boolean | undefined;
3578
3692
  } | undefined;
3579
3693
  "javascript/dynamic"?: {
3580
- url?: boolean | "relative" | undefined;
3581
3694
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
3582
3695
  dynamicImportPreload?: number | boolean | undefined;
3583
3696
  dynamicImportPrefetch?: number | boolean | undefined;
3584
3697
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
3585
3698
  importMeta?: boolean | undefined;
3699
+ url?: boolean | "relative" | undefined;
3586
3700
  exprContextCritical?: boolean | undefined;
3587
3701
  wrappedContextCritical?: boolean | undefined;
3588
3702
  wrappedContextRegExp?: RegExp | undefined;
@@ -3598,12 +3712,12 @@ export declare const rspackOptions: z.ZodObject<{
3598
3712
  importDynamic?: boolean | undefined;
3599
3713
  } | undefined;
3600
3714
  "javascript/esm"?: {
3601
- url?: boolean | "relative" | undefined;
3602
3715
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
3603
3716
  dynamicImportPreload?: number | boolean | undefined;
3604
3717
  dynamicImportPrefetch?: number | boolean | undefined;
3605
3718
  dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
3606
3719
  importMeta?: boolean | undefined;
3720
+ url?: boolean | "relative" | undefined;
3607
3721
  exprContextCritical?: boolean | undefined;
3608
3722
  wrappedContextCritical?: boolean | undefined;
3609
3723
  wrappedContextRegExp?: RegExp | undefined;
@@ -3724,18 +3838,35 @@ export declare const rspackOptions: z.ZodObject<{
3724
3838
  mode?: "none" | "development" | "production" | undefined;
3725
3839
  experiments?: {
3726
3840
  css?: boolean | undefined;
3841
+ cache?: boolean | {
3842
+ type: "memory";
3843
+ } | {
3844
+ type: "persistent";
3845
+ snapshot: {
3846
+ immutablePaths: (string | RegExp)[];
3847
+ unmanagedPaths: (string | RegExp)[];
3848
+ managedPaths: (string | RegExp)[];
3849
+ };
3850
+ storage: {
3851
+ type: "filesystem";
3852
+ directory: string;
3853
+ };
3854
+ } | undefined;
3727
3855
  topLevelAwait?: boolean | undefined;
3728
3856
  layers?: boolean | undefined;
3729
3857
  incremental?: boolean | {
3730
3858
  make?: boolean | undefined;
3731
3859
  providedExports?: boolean | undefined;
3732
- emitAssets?: boolean | undefined;
3733
3860
  inferAsyncModules?: boolean | undefined;
3734
3861
  dependenciesDiagnostics?: boolean | undefined;
3862
+ buildChunkGraph?: boolean | undefined;
3735
3863
  modulesHashes?: boolean | undefined;
3736
3864
  modulesCodegen?: boolean | undefined;
3737
3865
  modulesRuntimeRequirements?: boolean | undefined;
3738
- buildChunkGraph?: boolean | undefined;
3866
+ chunksRuntimeRequirements?: boolean | undefined;
3867
+ chunksHashes?: boolean | undefined;
3868
+ chunksRender?: boolean | undefined;
3869
+ emitAssets?: boolean | undefined;
3739
3870
  } | undefined;
3740
3871
  rspackFuture?: {
3741
3872
  bundlerInfo?: {
@@ -4021,7 +4152,7 @@ export declare const rspackOptions: z.ZodObject<{
4021
4152
  contextInfo?: {
4022
4153
  issuer: string;
4023
4154
  } | undefined;
4024
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4155
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4025
4156
  request?: string | undefined;
4026
4157
  context?: string | undefined;
4027
4158
  dependencyType?: string | undefined;
@@ -4035,7 +4166,7 @@ export declare const rspackOptions: z.ZodObject<{
4035
4166
  contextInfo?: {
4036
4167
  issuer: string;
4037
4168
  } | undefined;
4038
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4169
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4039
4170
  request?: string | undefined;
4040
4171
  context?: string | undefined;
4041
4172
  dependencyType?: string | undefined;
@@ -4043,7 +4174,7 @@ export declare const rspackOptions: z.ZodObject<{
4043
4174
  issuer: string;
4044
4175
  } | undefined;
4045
4176
  }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
4046
- externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined;
4177
+ externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
4047
4178
  externalsPresets?: {
4048
4179
  node?: boolean | undefined;
4049
4180
  web?: boolean | undefined;