@rspack/core 1.3.0-beta.1 → 1.3.0

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.
Files changed (69) hide show
  1. package/dist/Watching.d.ts +4 -1
  2. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  3. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  4. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  5. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  6. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  7. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  8. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  9. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
  10. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  11. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  12. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  13. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
  31. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/base.d.ts +1 -1
  61. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  62. package/dist/builtin-plugin/index.d.ts +1 -0
  63. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  64. package/dist/config/normalization.d.ts +2 -0
  65. package/dist/config/types.d.ts +11 -1
  66. package/dist/config/zod.d.ts +443 -360
  67. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  68. package/dist/index.js +349 -261
  69. package/package.json +3 -3
@@ -93,11 +93,12 @@ export declare const rspackOptions: z.ZodObject<{
93
93
  }, "strict", z.ZodTypeAny, {
94
94
  import: string | string[];
95
95
  runtime?: string | false | undefined;
96
- chunkLoading?: string | false | undefined;
97
- asyncChunks?: boolean | undefined;
98
96
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
97
+ layer?: string | null | undefined;
99
98
  baseUri?: string | undefined;
100
99
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
100
+ chunkLoading?: string | false | undefined;
101
+ asyncChunks?: boolean | undefined;
101
102
  library?: {
102
103
  type: string;
103
104
  name?: string | string[] | {
@@ -115,17 +116,17 @@ export declare const rspackOptions: z.ZodObject<{
115
116
  export?: string | string[] | undefined;
116
117
  umdNamedDefine?: boolean | undefined;
117
118
  } | undefined;
118
- layer?: string | null | undefined;
119
- wasmLoading?: string | false | undefined;
120
119
  dependOn?: string | string[] | undefined;
120
+ wasmLoading?: string | false | undefined;
121
121
  }, {
122
122
  import: string | string[];
123
123
  runtime?: string | false | undefined;
124
- chunkLoading?: string | false | undefined;
125
- asyncChunks?: boolean | undefined;
126
124
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
125
+ layer?: string | null | undefined;
127
126
  baseUri?: string | undefined;
128
127
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
128
+ chunkLoading?: string | false | undefined;
129
+ asyncChunks?: boolean | undefined;
129
130
  library?: {
130
131
  type: string;
131
132
  name?: string | string[] | {
@@ -143,9 +144,8 @@ export declare const rspackOptions: z.ZodObject<{
143
144
  export?: string | string[] | undefined;
144
145
  umdNamedDefine?: boolean | undefined;
145
146
  } | undefined;
146
- layer?: string | null | undefined;
147
- wasmLoading?: string | false | undefined;
148
147
  dependOn?: string | string[] | undefined;
148
+ wasmLoading?: string | false | undefined;
149
149
  }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
150
150
  import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
151
151
  runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
@@ -227,11 +227,12 @@ export declare const rspackOptions: z.ZodObject<{
227
227
  }, "strict", z.ZodTypeAny, {
228
228
  import: string | string[];
229
229
  runtime?: string | false | undefined;
230
- chunkLoading?: string | false | undefined;
231
- asyncChunks?: boolean | undefined;
232
230
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
231
+ layer?: string | null | undefined;
233
232
  baseUri?: string | undefined;
234
233
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
234
+ chunkLoading?: string | false | undefined;
235
+ asyncChunks?: boolean | undefined;
235
236
  library?: {
236
237
  type: string;
237
238
  name?: string | string[] | {
@@ -249,17 +250,17 @@ export declare const rspackOptions: z.ZodObject<{
249
250
  export?: string | string[] | undefined;
250
251
  umdNamedDefine?: boolean | undefined;
251
252
  } | undefined;
252
- layer?: string | null | undefined;
253
- wasmLoading?: string | false | undefined;
254
253
  dependOn?: string | string[] | undefined;
254
+ wasmLoading?: string | false | undefined;
255
255
  }, {
256
256
  import: string | string[];
257
257
  runtime?: string | false | undefined;
258
- chunkLoading?: string | false | undefined;
259
- asyncChunks?: boolean | undefined;
260
258
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
259
+ layer?: string | null | undefined;
261
260
  baseUri?: string | undefined;
262
261
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
262
+ chunkLoading?: string | false | undefined;
263
+ asyncChunks?: boolean | undefined;
263
264
  library?: {
264
265
  type: string;
265
266
  name?: string | string[] | {
@@ -277,9 +278,8 @@ export declare const rspackOptions: z.ZodObject<{
277
278
  export?: string | string[] | undefined;
278
279
  umdNamedDefine?: boolean | undefined;
279
280
  } | undefined;
280
- layer?: string | null | undefined;
281
- wasmLoading?: string | false | undefined;
282
281
  dependOn?: string | string[] | undefined;
282
+ wasmLoading?: string | false | undefined;
283
283
  }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodPromise<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
284
284
  import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
285
285
  runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
@@ -361,11 +361,12 @@ export declare const rspackOptions: z.ZodObject<{
361
361
  }, "strict", z.ZodTypeAny, {
362
362
  import: string | string[];
363
363
  runtime?: string | false | undefined;
364
- chunkLoading?: string | false | undefined;
365
- asyncChunks?: boolean | undefined;
366
364
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
365
+ layer?: string | null | undefined;
367
366
  baseUri?: string | undefined;
368
367
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
368
+ chunkLoading?: string | false | undefined;
369
+ asyncChunks?: boolean | undefined;
369
370
  library?: {
370
371
  type: string;
371
372
  name?: string | string[] | {
@@ -383,17 +384,17 @@ export declare const rspackOptions: z.ZodObject<{
383
384
  export?: string | string[] | undefined;
384
385
  umdNamedDefine?: boolean | undefined;
385
386
  } | undefined;
386
- layer?: string | null | undefined;
387
- wasmLoading?: string | false | undefined;
388
387
  dependOn?: string | string[] | undefined;
388
+ wasmLoading?: string | false | undefined;
389
389
  }, {
390
390
  import: string | string[];
391
391
  runtime?: string | false | undefined;
392
- chunkLoading?: string | false | undefined;
393
- asyncChunks?: boolean | undefined;
394
392
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
393
+ layer?: string | null | undefined;
395
394
  baseUri?: string | undefined;
396
395
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
396
+ chunkLoading?: string | false | undefined;
397
+ asyncChunks?: boolean | undefined;
397
398
  library?: {
398
399
  type: string;
399
400
  name?: string | string[] | {
@@ -411,9 +412,8 @@ export declare const rspackOptions: z.ZodObject<{
411
412
  export?: string | string[] | undefined;
412
413
  umdNamedDefine?: boolean | undefined;
413
414
  } | undefined;
414
- layer?: string | null | undefined;
415
- wasmLoading?: string | false | undefined;
416
415
  dependOn?: string | string[] | undefined;
416
+ wasmLoading?: string | false | undefined;
417
417
  }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>]>>]>>;
418
418
  output: z.ZodOptional<z.ZodObject<{
419
419
  path: z.ZodOptional<z.ZodString>;
@@ -624,10 +624,27 @@ export declare const rspackOptions: z.ZodObject<{
624
624
  compareBeforeEmit: z.ZodOptional<z.ZodBoolean>;
625
625
  }, "strict", z.ZodTypeAny, {
626
626
  module?: boolean | undefined;
627
- chunkLoading?: string | false | undefined;
628
- asyncChunks?: boolean | undefined;
627
+ environment?: {
628
+ module?: boolean | undefined;
629
+ arrowFunction?: boolean | undefined;
630
+ asyncFunction?: boolean | undefined;
631
+ bigIntLiteral?: boolean | undefined;
632
+ const?: boolean | undefined;
633
+ destructuring?: boolean | undefined;
634
+ document?: boolean | undefined;
635
+ dynamicImport?: boolean | undefined;
636
+ dynamicImportInWorker?: boolean | undefined;
637
+ forOf?: boolean | undefined;
638
+ globalThis?: boolean | undefined;
639
+ nodePrefixForCoreModules?: boolean | undefined;
640
+ optionalChaining?: boolean | undefined;
641
+ templateLiteral?: boolean | undefined;
642
+ } | undefined;
629
643
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
630
644
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
645
+ chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
646
+ chunkLoading?: string | false | undefined;
647
+ asyncChunks?: boolean | undefined;
631
648
  library?: string | string[] | {
632
649
  commonjs?: string | undefined;
633
650
  amd?: string | undefined;
@@ -649,6 +666,7 @@ export declare const rspackOptions: z.ZodObject<{
649
666
  export?: string | string[] | undefined;
650
667
  umdNamedDefine?: boolean | undefined;
651
668
  } | undefined;
669
+ path?: string | undefined;
652
670
  wasmLoading?: string | false | undefined;
653
671
  cssHeadDataCompression?: boolean | undefined;
654
672
  auxiliaryComment?: string | {
@@ -658,24 +676,6 @@ export declare const rspackOptions: z.ZodObject<{
658
676
  root?: string | undefined;
659
677
  } | undefined;
660
678
  umdNamedDefine?: boolean | undefined;
661
- path?: string | undefined;
662
- environment?: {
663
- module?: boolean | undefined;
664
- arrowFunction?: boolean | undefined;
665
- asyncFunction?: boolean | undefined;
666
- bigIntLiteral?: boolean | undefined;
667
- const?: boolean | undefined;
668
- destructuring?: boolean | undefined;
669
- document?: boolean | undefined;
670
- dynamicImport?: boolean | undefined;
671
- dynamicImportInWorker?: boolean | undefined;
672
- forOf?: boolean | undefined;
673
- globalThis?: boolean | undefined;
674
- nodePrefixForCoreModules?: boolean | undefined;
675
- optionalChaining?: boolean | undefined;
676
- templateLiteral?: boolean | undefined;
677
- } | undefined;
678
- chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
679
679
  pathinfo?: boolean | "verbose" | undefined;
680
680
  clean?: boolean | {
681
681
  keep?: string | undefined;
@@ -723,10 +723,27 @@ export declare const rspackOptions: z.ZodObject<{
723
723
  compareBeforeEmit?: boolean | undefined;
724
724
  }, {
725
725
  module?: boolean | undefined;
726
- chunkLoading?: string | false | undefined;
727
- asyncChunks?: boolean | undefined;
726
+ environment?: {
727
+ module?: boolean | undefined;
728
+ arrowFunction?: boolean | undefined;
729
+ asyncFunction?: boolean | undefined;
730
+ bigIntLiteral?: boolean | undefined;
731
+ const?: boolean | undefined;
732
+ destructuring?: boolean | undefined;
733
+ document?: boolean | undefined;
734
+ dynamicImport?: boolean | undefined;
735
+ dynamicImportInWorker?: boolean | undefined;
736
+ forOf?: boolean | undefined;
737
+ globalThis?: boolean | undefined;
738
+ nodePrefixForCoreModules?: boolean | undefined;
739
+ optionalChaining?: boolean | undefined;
740
+ templateLiteral?: boolean | undefined;
741
+ } | undefined;
728
742
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
729
743
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
744
+ chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
745
+ chunkLoading?: string | false | undefined;
746
+ asyncChunks?: boolean | undefined;
730
747
  library?: string | string[] | {
731
748
  commonjs?: string | undefined;
732
749
  amd?: string | undefined;
@@ -748,6 +765,7 @@ export declare const rspackOptions: z.ZodObject<{
748
765
  export?: string | string[] | undefined;
749
766
  umdNamedDefine?: boolean | undefined;
750
767
  } | undefined;
768
+ path?: string | undefined;
751
769
  wasmLoading?: string | false | undefined;
752
770
  cssHeadDataCompression?: boolean | undefined;
753
771
  auxiliaryComment?: string | {
@@ -757,24 +775,6 @@ export declare const rspackOptions: z.ZodObject<{
757
775
  root?: string | undefined;
758
776
  } | undefined;
759
777
  umdNamedDefine?: boolean | undefined;
760
- path?: string | undefined;
761
- environment?: {
762
- module?: boolean | undefined;
763
- arrowFunction?: boolean | undefined;
764
- asyncFunction?: boolean | undefined;
765
- bigIntLiteral?: boolean | undefined;
766
- const?: boolean | undefined;
767
- destructuring?: boolean | undefined;
768
- document?: boolean | undefined;
769
- dynamicImport?: boolean | undefined;
770
- dynamicImportInWorker?: boolean | undefined;
771
- forOf?: boolean | undefined;
772
- globalThis?: boolean | undefined;
773
- nodePrefixForCoreModules?: boolean | undefined;
774
- optionalChaining?: boolean | undefined;
775
- templateLiteral?: boolean | undefined;
776
- } | undefined;
777
- chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
778
778
  pathinfo?: boolean | "verbose" | undefined;
779
779
  clean?: boolean | {
780
780
  keep?: string | undefined;
@@ -925,8 +925,8 @@ export declare const rspackOptions: z.ZodObject<{
925
925
  chunksRender: z.ZodOptional<z.ZodBoolean>;
926
926
  emitAssets: z.ZodOptional<z.ZodBoolean>;
927
927
  }, "strict", z.ZodTypeAny, {
928
- providedExports?: boolean | undefined;
929
928
  make?: boolean | undefined;
929
+ providedExports?: boolean | undefined;
930
930
  sideEffects?: boolean | undefined;
931
931
  moduleIds?: boolean | undefined;
932
932
  chunkIds?: boolean | undefined;
@@ -941,8 +941,8 @@ export declare const rspackOptions: z.ZodObject<{
941
941
  chunksRender?: boolean | undefined;
942
942
  emitAssets?: boolean | undefined;
943
943
  }, {
944
- providedExports?: boolean | undefined;
945
944
  make?: boolean | undefined;
945
+ providedExports?: boolean | undefined;
946
946
  sideEffects?: boolean | undefined;
947
947
  moduleIds?: boolean | undefined;
948
948
  chunkIds?: boolean | undefined;
@@ -965,27 +965,66 @@ export declare const rspackOptions: z.ZodObject<{
965
965
  bundler: z.ZodOptional<z.ZodString>;
966
966
  force: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["version", "uniqueId"]>, "many">]>>;
967
967
  }, "strict", z.ZodTypeAny, {
968
- version?: string | undefined;
969
968
  force?: boolean | ("version" | "uniqueId")[] | undefined;
969
+ version?: string | undefined;
970
970
  bundler?: string | undefined;
971
971
  }, {
972
- version?: string | undefined;
973
972
  force?: boolean | ("version" | "uniqueId")[] | undefined;
973
+ version?: string | undefined;
974
974
  bundler?: string | undefined;
975
975
  }>>;
976
976
  }, "strict", z.ZodTypeAny, {
977
977
  bundlerInfo?: {
978
- version?: string | undefined;
979
978
  force?: boolean | ("version" | "uniqueId")[] | undefined;
979
+ version?: string | undefined;
980
980
  bundler?: string | undefined;
981
981
  } | undefined;
982
982
  }, {
983
983
  bundlerInfo?: {
984
- version?: string | undefined;
985
984
  force?: boolean | ("version" | "uniqueId")[] | undefined;
985
+ version?: string | undefined;
986
986
  bundler?: string | undefined;
987
987
  } | undefined;
988
988
  }>>;
989
+ buildHttp: z.ZodOptional<z.ZodObject<{
990
+ allowedUris: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
991
+ lockfileLocation: z.ZodOptional<z.ZodString>;
992
+ cacheLocation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
993
+ upgrade: z.ZodOptional<z.ZodBoolean>;
994
+ httpClient: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>], z.ZodUnknown>, z.ZodPromise<z.ZodObject<{
995
+ status: z.ZodNumber;
996
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
997
+ body: z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ status: number;
1000
+ body: Buffer<ArrayBufferLike>;
1001
+ headers: Record<string, string>;
1002
+ }, {
1003
+ status: number;
1004
+ body: Buffer<ArrayBufferLike>;
1005
+ headers: Record<string, string>;
1006
+ }>>>>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ allowedUris: (string | RegExp)[];
1009
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
1010
+ status: number;
1011
+ body: Buffer<ArrayBufferLike>;
1012
+ headers: Record<string, string>;
1013
+ }>) | undefined;
1014
+ lockfileLocation?: string | undefined;
1015
+ cacheLocation?: string | false | undefined;
1016
+ upgrade?: boolean | undefined;
1017
+ }, {
1018
+ allowedUris: (string | RegExp)[];
1019
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
1020
+ status: number;
1021
+ body: Buffer<ArrayBufferLike>;
1022
+ headers: Record<string, string>;
1023
+ }>) | undefined;
1024
+ lockfileLocation?: string | undefined;
1025
+ cacheLocation?: string | false | undefined;
1026
+ upgrade?: boolean | undefined;
1027
+ }>>;
989
1028
  }, "strict", z.ZodTypeAny, {
990
1029
  css?: boolean | undefined;
991
1030
  cache?: boolean | {
@@ -1016,8 +1055,8 @@ export declare const rspackOptions: z.ZodObject<{
1016
1055
  topLevelAwait?: boolean | undefined;
1017
1056
  layers?: boolean | undefined;
1018
1057
  incremental?: boolean | {
1019
- providedExports?: boolean | undefined;
1020
1058
  make?: boolean | undefined;
1059
+ providedExports?: boolean | undefined;
1021
1060
  sideEffects?: boolean | undefined;
1022
1061
  moduleIds?: boolean | undefined;
1023
1062
  chunkIds?: boolean | undefined;
@@ -1036,11 +1075,22 @@ export declare const rspackOptions: z.ZodObject<{
1036
1075
  futureDefaults?: boolean | undefined;
1037
1076
  rspackFuture?: {
1038
1077
  bundlerInfo?: {
1039
- version?: string | undefined;
1040
1078
  force?: boolean | ("version" | "uniqueId")[] | undefined;
1079
+ version?: string | undefined;
1041
1080
  bundler?: string | undefined;
1042
1081
  } | undefined;
1043
1082
  } | undefined;
1083
+ buildHttp?: {
1084
+ allowedUris: (string | RegExp)[];
1085
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
1086
+ status: number;
1087
+ body: Buffer<ArrayBufferLike>;
1088
+ headers: Record<string, string>;
1089
+ }>) | undefined;
1090
+ lockfileLocation?: string | undefined;
1091
+ cacheLocation?: string | false | undefined;
1092
+ upgrade?: boolean | undefined;
1093
+ } | undefined;
1044
1094
  }, {
1045
1095
  css?: boolean | undefined;
1046
1096
  cache?: boolean | {
@@ -1071,8 +1121,8 @@ export declare const rspackOptions: z.ZodObject<{
1071
1121
  topLevelAwait?: boolean | undefined;
1072
1122
  layers?: boolean | undefined;
1073
1123
  incremental?: boolean | {
1074
- providedExports?: boolean | undefined;
1075
1124
  make?: boolean | undefined;
1125
+ providedExports?: boolean | undefined;
1076
1126
  sideEffects?: boolean | undefined;
1077
1127
  moduleIds?: boolean | undefined;
1078
1128
  chunkIds?: boolean | undefined;
@@ -1091,11 +1141,22 @@ export declare const rspackOptions: z.ZodObject<{
1091
1141
  futureDefaults?: boolean | undefined;
1092
1142
  rspackFuture?: {
1093
1143
  bundlerInfo?: {
1094
- version?: string | undefined;
1095
1144
  force?: boolean | ("version" | "uniqueId")[] | undefined;
1145
+ version?: string | undefined;
1096
1146
  bundler?: string | undefined;
1097
1147
  } | undefined;
1098
1148
  } | undefined;
1149
+ buildHttp?: {
1150
+ allowedUris: (string | RegExp)[];
1151
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
1152
+ status: number;
1153
+ body: Buffer<ArrayBufferLike>;
1154
+ headers: Record<string, string>;
1155
+ }>) | undefined;
1156
+ lockfileLocation?: string | undefined;
1157
+ cacheLocation?: string | false | undefined;
1158
+ upgrade?: boolean | undefined;
1159
+ } | undefined;
1099
1160
  }>>;
1100
1161
  externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, 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.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, 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.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>]>>;
1101
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", "commonjs-import"]>>;
@@ -1109,8 +1170,8 @@ export declare const rspackOptions: z.ZodObject<{
1109
1170
  electronRenderer: z.ZodOptional<z.ZodBoolean>;
1110
1171
  nwjs: z.ZodOptional<z.ZodBoolean>;
1111
1172
  }, "strict", z.ZodTypeAny, {
1112
- web?: boolean | undefined;
1113
1173
  node?: boolean | undefined;
1174
+ web?: boolean | undefined;
1114
1175
  nwjs?: boolean | undefined;
1115
1176
  webAsync?: boolean | undefined;
1116
1177
  electron?: boolean | undefined;
@@ -1118,8 +1179,8 @@ export declare const rspackOptions: z.ZodObject<{
1118
1179
  electronPreload?: boolean | undefined;
1119
1180
  electronRenderer?: boolean | undefined;
1120
1181
  }, {
1121
- web?: boolean | undefined;
1122
1182
  node?: boolean | undefined;
1183
+ web?: boolean | undefined;
1123
1184
  nwjs?: boolean | undefined;
1124
1185
  webAsync?: boolean | undefined;
1125
1186
  electron?: boolean | undefined;
@@ -1137,14 +1198,14 @@ export declare const rspackOptions: z.ZodObject<{
1137
1198
  }, "strict", z.ZodTypeAny, {
1138
1199
  debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
1139
1200
  colors?: boolean | undefined;
1140
- level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
1201
+ level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
1141
1202
  console?: Console | undefined;
1142
1203
  appendOnly?: boolean | undefined;
1143
1204
  stream?: NodeJS.WritableStream | undefined;
1144
1205
  }, {
1145
1206
  debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
1146
1207
  colors?: boolean | undefined;
1147
- level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
1208
+ level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
1148
1209
  console?: Console | undefined;
1149
1210
  appendOnly?: boolean | undefined;
1150
1211
  stream?: NodeJS.WritableStream | undefined;
@@ -1269,12 +1330,14 @@ export declare const rspackOptions: z.ZodObject<{
1269
1330
  runtime?: boolean | undefined;
1270
1331
  hash?: boolean | undefined;
1271
1332
  modules?: boolean | undefined;
1272
- all?: boolean | undefined;
1273
- version?: boolean | undefined;
1274
1333
  publicPath?: boolean | undefined;
1275
- preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
1276
- assets?: boolean | undefined;
1277
1334
  chunks?: boolean | undefined;
1335
+ source?: boolean | undefined;
1336
+ all?: boolean | undefined;
1337
+ usedExports?: boolean | undefined;
1338
+ assets?: boolean | undefined;
1339
+ version?: boolean | undefined;
1340
+ preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
1278
1341
  entrypoints?: boolean | "auto" | undefined;
1279
1342
  chunkGroups?: boolean | undefined;
1280
1343
  warnings?: boolean | undefined;
@@ -1290,13 +1353,11 @@ export declare const rspackOptions: z.ZodObject<{
1290
1353
  builtAt?: boolean | undefined;
1291
1354
  moduleAssets?: boolean | undefined;
1292
1355
  nestedModules?: boolean | undefined;
1293
- source?: boolean | undefined;
1294
- logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
1356
+ logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
1295
1357
  loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
1296
1358
  loggingTrace?: boolean | undefined;
1297
1359
  runtimeModules?: boolean | undefined;
1298
1360
  children?: boolean | undefined;
1299
- usedExports?: boolean | undefined;
1300
1361
  providedExports?: boolean | undefined;
1301
1362
  optimizationBailout?: boolean | undefined;
1302
1363
  groupModulesByType?: boolean | undefined;
@@ -1346,12 +1407,14 @@ export declare const rspackOptions: z.ZodObject<{
1346
1407
  runtime?: boolean | undefined;
1347
1408
  hash?: boolean | undefined;
1348
1409
  modules?: boolean | undefined;
1349
- all?: boolean | undefined;
1350
- version?: boolean | undefined;
1351
1410
  publicPath?: boolean | undefined;
1352
- preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
1353
- assets?: boolean | undefined;
1354
1411
  chunks?: boolean | undefined;
1412
+ source?: boolean | undefined;
1413
+ all?: boolean | undefined;
1414
+ usedExports?: boolean | undefined;
1415
+ assets?: boolean | undefined;
1416
+ version?: boolean | undefined;
1417
+ preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
1355
1418
  entrypoints?: boolean | "auto" | undefined;
1356
1419
  chunkGroups?: boolean | undefined;
1357
1420
  warnings?: boolean | undefined;
@@ -1367,13 +1430,11 @@ export declare const rspackOptions: z.ZodObject<{
1367
1430
  builtAt?: boolean | undefined;
1368
1431
  moduleAssets?: boolean | undefined;
1369
1432
  nestedModules?: boolean | undefined;
1370
- source?: boolean | undefined;
1371
- logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
1433
+ logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
1372
1434
  loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
1373
1435
  loggingTrace?: boolean | undefined;
1374
1436
  runtimeModules?: boolean | undefined;
1375
1437
  children?: boolean | undefined;
1376
- usedExports?: boolean | undefined;
1377
1438
  providedExports?: boolean | undefined;
1378
1439
  optimizationBailout?: boolean | undefined;
1379
1440
  groupModulesByType?: boolean | undefined;
@@ -1472,22 +1533,22 @@ export declare const rspackOptions: z.ZodObject<{
1472
1533
  layer: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodString>], null>, z.ZodBoolean>]>>;
1473
1534
  }, "strict", z.ZodTypeAny, {
1474
1535
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1475
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1536
+ priority?: number | undefined;
1476
1537
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1538
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1477
1539
  type?: string | RegExp | undefined;
1478
1540
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1479
- usedExports?: boolean | undefined;
1480
- defaultSizeTypes?: string[] | undefined;
1481
- priority?: number | undefined;
1482
1541
  test?: string | RegExp | ((args_0: Module, args_1: {
1483
1542
  moduleGraph: ModuleGraph;
1484
1543
  chunkGraph: ChunkGraph;
1485
1544
  }, ...args: unknown[]) => boolean) | undefined;
1545
+ defaultSizeTypes?: string[] | undefined;
1486
1546
  minSize?: number | Record<string, number> | undefined;
1487
1547
  maxSize?: number | Record<string, number> | undefined;
1488
1548
  maxAsyncSize?: number | Record<string, number> | undefined;
1489
1549
  maxInitialSize?: number | Record<string, number> | undefined;
1490
1550
  minChunks?: number | undefined;
1551
+ usedExports?: boolean | undefined;
1491
1552
  maxAsyncRequests?: number | undefined;
1492
1553
  maxInitialRequests?: number | undefined;
1493
1554
  automaticNameDelimiter?: string | undefined;
@@ -1496,22 +1557,22 @@ export declare const rspackOptions: z.ZodObject<{
1496
1557
  idHint?: string | undefined;
1497
1558
  }, {
1498
1559
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1499
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1560
+ priority?: number | undefined;
1500
1561
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1562
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1501
1563
  type?: string | RegExp | undefined;
1502
1564
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1503
- usedExports?: boolean | undefined;
1504
- defaultSizeTypes?: string[] | undefined;
1505
- priority?: number | undefined;
1506
1565
  test?: string | RegExp | ((args_0: Module, args_1: {
1507
1566
  moduleGraph: ModuleGraph;
1508
1567
  chunkGraph: ChunkGraph;
1509
1568
  }, ...args: unknown[]) => boolean) | undefined;
1569
+ defaultSizeTypes?: string[] | undefined;
1510
1570
  minSize?: number | Record<string, number> | undefined;
1511
1571
  maxSize?: number | Record<string, number> | undefined;
1512
1572
  maxAsyncSize?: number | Record<string, number> | undefined;
1513
1573
  maxInitialSize?: number | Record<string, number> | undefined;
1514
1574
  minChunks?: number | undefined;
1575
+ usedExports?: boolean | undefined;
1515
1576
  maxAsyncRequests?: number | undefined;
1516
1577
  maxInitialRequests?: number | undefined;
1517
1578
  automaticNameDelimiter?: string | undefined;
@@ -1546,26 +1607,25 @@ export declare const rspackOptions: z.ZodObject<{
1546
1607
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1547
1608
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1548
1609
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1549
- usedExports?: boolean | undefined;
1550
1610
  defaultSizeTypes?: string[] | undefined;
1551
1611
  cacheGroups?: Record<string, false | {
1552
1612
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1553
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1613
+ priority?: number | undefined;
1554
1614
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1615
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1555
1616
  type?: string | RegExp | undefined;
1556
1617
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1557
- usedExports?: boolean | undefined;
1558
- defaultSizeTypes?: string[] | undefined;
1559
- priority?: number | undefined;
1560
1618
  test?: string | RegExp | ((args_0: Module, args_1: {
1561
1619
  moduleGraph: ModuleGraph;
1562
1620
  chunkGraph: ChunkGraph;
1563
1621
  }, ...args: unknown[]) => boolean) | undefined;
1622
+ defaultSizeTypes?: string[] | undefined;
1564
1623
  minSize?: number | Record<string, number> | undefined;
1565
1624
  maxSize?: number | Record<string, number> | undefined;
1566
1625
  maxAsyncSize?: number | Record<string, number> | undefined;
1567
1626
  maxInitialSize?: number | Record<string, number> | undefined;
1568
1627
  minChunks?: number | undefined;
1628
+ usedExports?: boolean | undefined;
1569
1629
  maxAsyncRequests?: number | undefined;
1570
1630
  maxInitialRequests?: number | undefined;
1571
1631
  automaticNameDelimiter?: string | undefined;
@@ -1587,6 +1647,7 @@ export declare const rspackOptions: z.ZodObject<{
1587
1647
  maxInitialSize?: number | Record<string, number> | undefined;
1588
1648
  hidePathInfo?: boolean | undefined;
1589
1649
  minChunks?: number | undefined;
1650
+ usedExports?: boolean | undefined;
1590
1651
  maxAsyncRequests?: number | undefined;
1591
1652
  maxInitialRequests?: number | undefined;
1592
1653
  automaticNameDelimiter?: string | undefined;
@@ -1594,26 +1655,25 @@ export declare const rspackOptions: z.ZodObject<{
1594
1655
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1595
1656
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1596
1657
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1597
- usedExports?: boolean | undefined;
1598
1658
  defaultSizeTypes?: string[] | undefined;
1599
1659
  cacheGroups?: Record<string, false | {
1600
1660
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1601
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1661
+ priority?: number | undefined;
1602
1662
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1663
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1603
1664
  type?: string | RegExp | undefined;
1604
1665
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1605
- usedExports?: boolean | undefined;
1606
- defaultSizeTypes?: string[] | undefined;
1607
- priority?: number | undefined;
1608
1666
  test?: string | RegExp | ((args_0: Module, args_1: {
1609
1667
  moduleGraph: ModuleGraph;
1610
1668
  chunkGraph: ChunkGraph;
1611
1669
  }, ...args: unknown[]) => boolean) | undefined;
1670
+ defaultSizeTypes?: string[] | undefined;
1612
1671
  minSize?: number | Record<string, number> | undefined;
1613
1672
  maxSize?: number | Record<string, number> | undefined;
1614
1673
  maxAsyncSize?: number | Record<string, number> | undefined;
1615
1674
  maxInitialSize?: number | Record<string, number> | undefined;
1616
1675
  minChunks?: number | undefined;
1676
+ usedExports?: boolean | undefined;
1617
1677
  maxAsyncRequests?: number | undefined;
1618
1678
  maxInitialRequests?: number | undefined;
1619
1679
  automaticNameDelimiter?: string | undefined;
@@ -1635,6 +1695,7 @@ export declare const rspackOptions: z.ZodObject<{
1635
1695
  maxInitialSize?: number | Record<string, number> | undefined;
1636
1696
  hidePathInfo?: boolean | undefined;
1637
1697
  minChunks?: number | undefined;
1698
+ usedExports?: boolean | undefined;
1638
1699
  maxAsyncRequests?: number | undefined;
1639
1700
  maxInitialRequests?: number | undefined;
1640
1701
  automaticNameDelimiter?: string | undefined;
@@ -1669,32 +1730,29 @@ export declare const rspackOptions: z.ZodObject<{
1669
1730
  emitOnErrors: z.ZodOptional<z.ZodBoolean>;
1670
1731
  avoidEntryIife: z.ZodOptional<z.ZodBoolean>;
1671
1732
  }, "strict", z.ZodTypeAny, {
1672
- usedExports?: boolean | "global" | undefined;
1673
- providedExports?: boolean | undefined;
1674
1733
  splitChunks?: false | {
1675
1734
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1676
1735
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1677
1736
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1678
- usedExports?: boolean | undefined;
1679
1737
  defaultSizeTypes?: string[] | undefined;
1680
1738
  cacheGroups?: Record<string, false | {
1681
1739
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1682
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1740
+ priority?: number | undefined;
1683
1741
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1742
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1684
1743
  type?: string | RegExp | undefined;
1685
1744
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1686
- usedExports?: boolean | undefined;
1687
- defaultSizeTypes?: string[] | undefined;
1688
- priority?: number | undefined;
1689
1745
  test?: string | RegExp | ((args_0: Module, args_1: {
1690
1746
  moduleGraph: ModuleGraph;
1691
1747
  chunkGraph: ChunkGraph;
1692
1748
  }, ...args: unknown[]) => boolean) | undefined;
1749
+ defaultSizeTypes?: string[] | undefined;
1693
1750
  minSize?: number | Record<string, number> | undefined;
1694
1751
  maxSize?: number | Record<string, number> | undefined;
1695
1752
  maxAsyncSize?: number | Record<string, number> | undefined;
1696
1753
  maxInitialSize?: number | Record<string, number> | undefined;
1697
1754
  minChunks?: number | undefined;
1755
+ usedExports?: boolean | undefined;
1698
1756
  maxAsyncRequests?: number | undefined;
1699
1757
  maxInitialRequests?: number | undefined;
1700
1758
  automaticNameDelimiter?: string | undefined;
@@ -1716,12 +1774,15 @@ export declare const rspackOptions: z.ZodObject<{
1716
1774
  maxInitialSize?: number | Record<string, number> | undefined;
1717
1775
  hidePathInfo?: boolean | undefined;
1718
1776
  minChunks?: number | undefined;
1777
+ usedExports?: boolean | undefined;
1719
1778
  maxAsyncRequests?: number | undefined;
1720
1779
  maxInitialRequests?: number | undefined;
1721
1780
  automaticNameDelimiter?: string | undefined;
1722
1781
  } | undefined;
1782
+ usedExports?: boolean | "global" | undefined;
1783
+ providedExports?: boolean | undefined;
1723
1784
  minimize?: boolean | undefined;
1724
- minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1785
+ minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1725
1786
  sideEffects?: boolean | "flag" | undefined;
1726
1787
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
1727
1788
  chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
@@ -1741,32 +1802,29 @@ export declare const rspackOptions: z.ZodObject<{
1741
1802
  emitOnErrors?: boolean | undefined;
1742
1803
  avoidEntryIife?: boolean | undefined;
1743
1804
  }, {
1744
- usedExports?: boolean | "global" | undefined;
1745
- providedExports?: boolean | undefined;
1746
1805
  splitChunks?: false | {
1747
1806
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1748
1807
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1749
1808
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1750
- usedExports?: boolean | undefined;
1751
1809
  defaultSizeTypes?: string[] | undefined;
1752
1810
  cacheGroups?: Record<string, false | {
1753
1811
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
1754
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1812
+ priority?: number | undefined;
1755
1813
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
1814
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
1756
1815
  type?: string | RegExp | undefined;
1757
1816
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
1758
- usedExports?: boolean | undefined;
1759
- defaultSizeTypes?: string[] | undefined;
1760
- priority?: number | undefined;
1761
1817
  test?: string | RegExp | ((args_0: Module, args_1: {
1762
1818
  moduleGraph: ModuleGraph;
1763
1819
  chunkGraph: ChunkGraph;
1764
1820
  }, ...args: unknown[]) => boolean) | undefined;
1821
+ defaultSizeTypes?: string[] | undefined;
1765
1822
  minSize?: number | Record<string, number> | undefined;
1766
1823
  maxSize?: number | Record<string, number> | undefined;
1767
1824
  maxAsyncSize?: number | Record<string, number> | undefined;
1768
1825
  maxInitialSize?: number | Record<string, number> | undefined;
1769
1826
  minChunks?: number | undefined;
1827
+ usedExports?: boolean | undefined;
1770
1828
  maxAsyncRequests?: number | undefined;
1771
1829
  maxInitialRequests?: number | undefined;
1772
1830
  automaticNameDelimiter?: string | undefined;
@@ -1788,12 +1846,15 @@ export declare const rspackOptions: z.ZodObject<{
1788
1846
  maxInitialSize?: number | Record<string, number> | undefined;
1789
1847
  hidePathInfo?: boolean | undefined;
1790
1848
  minChunks?: number | undefined;
1849
+ usedExports?: boolean | undefined;
1791
1850
  maxAsyncRequests?: number | undefined;
1792
1851
  maxInitialRequests?: number | undefined;
1793
1852
  automaticNameDelimiter?: string | undefined;
1794
1853
  } | undefined;
1854
+ usedExports?: boolean | "global" | undefined;
1855
+ providedExports?: boolean | undefined;
1795
1856
  minimize?: boolean | undefined;
1796
- minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1857
+ minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1797
1858
  sideEffects?: boolean | "flag" | undefined;
1798
1859
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
1799
1860
  chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
@@ -2107,11 +2168,6 @@ export declare const rspackOptions: z.ZodObject<{
2107
2168
  css?: {
2108
2169
  namedExports?: boolean | undefined;
2109
2170
  } | undefined;
2110
- asset?: {
2111
- dataUrlCondition?: {
2112
- maxSize?: number | undefined;
2113
- } | undefined;
2114
- } | undefined;
2115
2171
  "css/auto"?: {
2116
2172
  namedExports?: boolean | undefined;
2117
2173
  } | undefined;
@@ -2139,6 +2195,11 @@ export declare const rspackOptions: z.ZodObject<{
2139
2195
  requireResolve?: boolean | undefined;
2140
2196
  importDynamic?: boolean | undefined;
2141
2197
  } | undefined;
2198
+ asset?: {
2199
+ dataUrlCondition?: {
2200
+ maxSize?: number | undefined;
2201
+ } | undefined;
2202
+ } | undefined;
2142
2203
  "javascript/auto"?: {
2143
2204
  url?: boolean | "relative" | undefined;
2144
2205
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -2206,11 +2267,6 @@ export declare const rspackOptions: z.ZodObject<{
2206
2267
  css?: {
2207
2268
  namedExports?: boolean | undefined;
2208
2269
  } | undefined;
2209
- asset?: {
2210
- dataUrlCondition?: {
2211
- maxSize?: number | undefined;
2212
- } | undefined;
2213
- } | undefined;
2214
2270
  "css/auto"?: {
2215
2271
  namedExports?: boolean | undefined;
2216
2272
  } | undefined;
@@ -2238,6 +2294,11 @@ export declare const rspackOptions: z.ZodObject<{
2238
2294
  requireResolve?: boolean | undefined;
2239
2295
  importDynamic?: boolean | undefined;
2240
2296
  } | undefined;
2297
+ asset?: {
2298
+ dataUrlCondition?: {
2299
+ maxSize?: number | undefined;
2300
+ } | undefined;
2301
+ } | undefined;
2241
2302
  "javascript/auto"?: {
2242
2303
  url?: boolean | "relative" | undefined;
2243
2304
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -2328,9 +2389,9 @@ export declare const rspackOptions: z.ZodObject<{
2328
2389
  filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
2329
2390
  publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
2330
2391
  }>, "strict", z.ZodTypeAny, {
2392
+ emit?: boolean | undefined;
2331
2393
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2332
2394
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2333
- emit?: boolean | undefined;
2334
2395
  dataUrl?: {
2335
2396
  mimetype?: string | undefined;
2336
2397
  encoding?: false | "base64" | undefined;
@@ -2339,9 +2400,9 @@ export declare const rspackOptions: z.ZodObject<{
2339
2400
  filename: string;
2340
2401
  }, ...args: unknown[]) => string) | undefined;
2341
2402
  }, {
2403
+ emit?: boolean | undefined;
2342
2404
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2343
2405
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2344
- emit?: boolean | undefined;
2345
2406
  dataUrl?: {
2346
2407
  mimetype?: string | undefined;
2347
2408
  encoding?: false | "base64" | undefined;
@@ -2392,13 +2453,13 @@ export declare const rspackOptions: z.ZodObject<{
2392
2453
  filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
2393
2454
  publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
2394
2455
  }, "strict", z.ZodTypeAny, {
2456
+ emit?: boolean | undefined;
2395
2457
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2396
2458
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2397
- emit?: boolean | undefined;
2398
2459
  }, {
2460
+ emit?: boolean | undefined;
2399
2461
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2400
2462
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2401
- emit?: boolean | undefined;
2402
2463
  }>>;
2403
2464
  css: z.ZodOptional<z.ZodObject<{
2404
2465
  exportsOnly: z.ZodOptional<z.ZodBoolean>;
@@ -2454,18 +2515,6 @@ export declare const rspackOptions: z.ZodObject<{
2454
2515
  exportsOnly?: boolean | undefined;
2455
2516
  esModule?: boolean | undefined;
2456
2517
  } | undefined;
2457
- asset?: {
2458
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2459
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2460
- emit?: boolean | undefined;
2461
- dataUrl?: {
2462
- mimetype?: string | undefined;
2463
- encoding?: false | "base64" | undefined;
2464
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2465
- module: Module;
2466
- filename: string;
2467
- }, ...args: unknown[]) => string) | undefined;
2468
- } | undefined;
2469
2518
  "css/auto"?: {
2470
2519
  exportsOnly?: boolean | undefined;
2471
2520
  esModule?: boolean | undefined;
@@ -2478,6 +2527,18 @@ export declare const rspackOptions: z.ZodObject<{
2478
2527
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
2479
2528
  localIdentName?: string | undefined;
2480
2529
  } | undefined;
2530
+ asset?: {
2531
+ emit?: boolean | undefined;
2532
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2533
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2534
+ dataUrl?: {
2535
+ mimetype?: string | undefined;
2536
+ encoding?: false | "base64" | undefined;
2537
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2538
+ module: Module;
2539
+ filename: string;
2540
+ }, ...args: unknown[]) => string) | undefined;
2541
+ } | undefined;
2481
2542
  json?: {
2482
2543
  JSONParse?: boolean | undefined;
2483
2544
  } | undefined;
@@ -2491,27 +2552,15 @@ export declare const rspackOptions: z.ZodObject<{
2491
2552
  }, ...args: unknown[]) => string) | undefined;
2492
2553
  } | undefined;
2493
2554
  "asset/resource"?: {
2555
+ emit?: boolean | undefined;
2494
2556
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2495
2557
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2496
- emit?: boolean | undefined;
2497
2558
  } | undefined;
2498
2559
  }, {
2499
2560
  css?: {
2500
2561
  exportsOnly?: boolean | undefined;
2501
2562
  esModule?: boolean | undefined;
2502
2563
  } | undefined;
2503
- asset?: {
2504
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2505
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2506
- emit?: boolean | undefined;
2507
- dataUrl?: {
2508
- mimetype?: string | undefined;
2509
- encoding?: false | "base64" | undefined;
2510
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2511
- module: Module;
2512
- filename: string;
2513
- }, ...args: unknown[]) => string) | undefined;
2514
- } | undefined;
2515
2564
  "css/auto"?: {
2516
2565
  exportsOnly?: boolean | undefined;
2517
2566
  esModule?: boolean | undefined;
@@ -2524,6 +2573,18 @@ export declare const rspackOptions: z.ZodObject<{
2524
2573
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
2525
2574
  localIdentName?: string | undefined;
2526
2575
  } | undefined;
2576
+ asset?: {
2577
+ emit?: boolean | undefined;
2578
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2579
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2580
+ dataUrl?: {
2581
+ mimetype?: string | undefined;
2582
+ encoding?: false | "base64" | undefined;
2583
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2584
+ module: Module;
2585
+ filename: string;
2586
+ }, ...args: unknown[]) => string) | undefined;
2587
+ } | undefined;
2527
2588
  json?: {
2528
2589
  JSONParse?: boolean | undefined;
2529
2590
  } | undefined;
@@ -2537,9 +2598,9 @@ export declare const rspackOptions: z.ZodObject<{
2537
2598
  }, ...args: unknown[]) => string) | undefined;
2538
2599
  } | undefined;
2539
2600
  "asset/resource"?: {
2601
+ emit?: boolean | undefined;
2540
2602
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2541
2603
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2542
- emit?: boolean | undefined;
2543
2604
  } | undefined;
2544
2605
  }>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
2545
2606
  noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">]>>;
@@ -2548,11 +2609,6 @@ export declare const rspackOptions: z.ZodObject<{
2548
2609
  css?: {
2549
2610
  namedExports?: boolean | undefined;
2550
2611
  } | undefined;
2551
- asset?: {
2552
- dataUrlCondition?: {
2553
- maxSize?: number | undefined;
2554
- } | undefined;
2555
- } | undefined;
2556
2612
  "css/auto"?: {
2557
2613
  namedExports?: boolean | undefined;
2558
2614
  } | undefined;
@@ -2580,6 +2636,11 @@ export declare const rspackOptions: z.ZodObject<{
2580
2636
  requireResolve?: boolean | undefined;
2581
2637
  importDynamic?: boolean | undefined;
2582
2638
  } | undefined;
2639
+ asset?: {
2640
+ dataUrlCondition?: {
2641
+ maxSize?: number | undefined;
2642
+ } | undefined;
2643
+ } | undefined;
2583
2644
  "javascript/auto"?: {
2584
2645
  url?: boolean | "relative" | undefined;
2585
2646
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -2649,18 +2710,6 @@ export declare const rspackOptions: z.ZodObject<{
2649
2710
  exportsOnly?: boolean | undefined;
2650
2711
  esModule?: boolean | undefined;
2651
2712
  } | undefined;
2652
- asset?: {
2653
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2654
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2655
- emit?: boolean | undefined;
2656
- dataUrl?: {
2657
- mimetype?: string | undefined;
2658
- encoding?: false | "base64" | undefined;
2659
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2660
- module: Module;
2661
- filename: string;
2662
- }, ...args: unknown[]) => string) | undefined;
2663
- } | undefined;
2664
2713
  "css/auto"?: {
2665
2714
  exportsOnly?: boolean | undefined;
2666
2715
  esModule?: boolean | undefined;
@@ -2673,6 +2722,18 @@ export declare const rspackOptions: z.ZodObject<{
2673
2722
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
2674
2723
  localIdentName?: string | undefined;
2675
2724
  } | undefined;
2725
+ asset?: {
2726
+ emit?: boolean | undefined;
2727
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2728
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2729
+ dataUrl?: {
2730
+ mimetype?: string | undefined;
2731
+ encoding?: false | "base64" | undefined;
2732
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2733
+ module: Module;
2734
+ filename: string;
2735
+ }, ...args: unknown[]) => string) | undefined;
2736
+ } | undefined;
2676
2737
  json?: {
2677
2738
  JSONParse?: boolean | undefined;
2678
2739
  } | undefined;
@@ -2686,24 +2747,19 @@ export declare const rspackOptions: z.ZodObject<{
2686
2747
  }, ...args: unknown[]) => string) | undefined;
2687
2748
  } | undefined;
2688
2749
  "asset/resource"?: {
2750
+ emit?: boolean | undefined;
2689
2751
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2690
2752
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2691
- emit?: boolean | undefined;
2692
2753
  } | undefined;
2693
2754
  } | undefined;
2694
- rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
2695
- defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
2755
+ rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2756
+ defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2696
2757
  noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
2697
2758
  }, {
2698
2759
  parser?: {
2699
2760
  css?: {
2700
2761
  namedExports?: boolean | undefined;
2701
2762
  } | undefined;
2702
- asset?: {
2703
- dataUrlCondition?: {
2704
- maxSize?: number | undefined;
2705
- } | undefined;
2706
- } | undefined;
2707
2763
  "css/auto"?: {
2708
2764
  namedExports?: boolean | undefined;
2709
2765
  } | undefined;
@@ -2731,6 +2787,11 @@ export declare const rspackOptions: z.ZodObject<{
2731
2787
  requireResolve?: boolean | undefined;
2732
2788
  importDynamic?: boolean | undefined;
2733
2789
  } | undefined;
2790
+ asset?: {
2791
+ dataUrlCondition?: {
2792
+ maxSize?: number | undefined;
2793
+ } | undefined;
2794
+ } | undefined;
2734
2795
  "javascript/auto"?: {
2735
2796
  url?: boolean | "relative" | undefined;
2736
2797
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -2800,18 +2861,6 @@ export declare const rspackOptions: z.ZodObject<{
2800
2861
  exportsOnly?: boolean | undefined;
2801
2862
  esModule?: boolean | undefined;
2802
2863
  } | undefined;
2803
- asset?: {
2804
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2805
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2806
- emit?: boolean | undefined;
2807
- dataUrl?: {
2808
- mimetype?: string | undefined;
2809
- encoding?: false | "base64" | undefined;
2810
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2811
- module: Module;
2812
- filename: string;
2813
- }, ...args: unknown[]) => string) | undefined;
2814
- } | undefined;
2815
2864
  "css/auto"?: {
2816
2865
  exportsOnly?: boolean | undefined;
2817
2866
  esModule?: boolean | undefined;
@@ -2824,6 +2873,18 @@ export declare const rspackOptions: z.ZodObject<{
2824
2873
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
2825
2874
  localIdentName?: string | undefined;
2826
2875
  } | undefined;
2876
+ asset?: {
2877
+ emit?: boolean | undefined;
2878
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2879
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2880
+ dataUrl?: {
2881
+ mimetype?: string | undefined;
2882
+ encoding?: false | "base64" | undefined;
2883
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2884
+ module: Module;
2885
+ filename: string;
2886
+ }, ...args: unknown[]) => string) | undefined;
2887
+ } | undefined;
2827
2888
  json?: {
2828
2889
  JSONParse?: boolean | undefined;
2829
2890
  } | undefined;
@@ -2837,13 +2898,13 @@ export declare const rspackOptions: z.ZodObject<{
2837
2898
  }, ...args: unknown[]) => string) | undefined;
2838
2899
  } | undefined;
2839
2900
  "asset/resource"?: {
2901
+ emit?: boolean | undefined;
2840
2902
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2841
2903
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2842
- emit?: boolean | undefined;
2843
2904
  } | undefined;
2844
2905
  } | undefined;
2845
- rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
2846
- defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
2906
+ rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2907
+ defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
2847
2908
  noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
2848
2909
  }>>;
2849
2910
  profile: z.ZodOptional<z.ZodBoolean>;
@@ -2872,11 +2933,6 @@ export declare const rspackOptions: z.ZodObject<{
2872
2933
  css?: {
2873
2934
  namedExports?: boolean | undefined;
2874
2935
  } | undefined;
2875
- asset?: {
2876
- dataUrlCondition?: {
2877
- maxSize?: number | undefined;
2878
- } | undefined;
2879
- } | undefined;
2880
2936
  "css/auto"?: {
2881
2937
  namedExports?: boolean | undefined;
2882
2938
  } | undefined;
@@ -2904,6 +2960,11 @@ export declare const rspackOptions: z.ZodObject<{
2904
2960
  requireResolve?: boolean | undefined;
2905
2961
  importDynamic?: boolean | undefined;
2906
2962
  } | undefined;
2963
+ asset?: {
2964
+ dataUrlCondition?: {
2965
+ maxSize?: number | undefined;
2966
+ } | undefined;
2967
+ } | undefined;
2907
2968
  "javascript/auto"?: {
2908
2969
  url?: boolean | "relative" | undefined;
2909
2970
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -2973,18 +3034,6 @@ export declare const rspackOptions: z.ZodObject<{
2973
3034
  exportsOnly?: boolean | undefined;
2974
3035
  esModule?: boolean | undefined;
2975
3036
  } | undefined;
2976
- asset?: {
2977
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2978
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
2979
- emit?: boolean | undefined;
2980
- dataUrl?: {
2981
- mimetype?: string | undefined;
2982
- encoding?: false | "base64" | undefined;
2983
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2984
- module: Module;
2985
- filename: string;
2986
- }, ...args: unknown[]) => string) | undefined;
2987
- } | undefined;
2988
3037
  "css/auto"?: {
2989
3038
  exportsOnly?: boolean | undefined;
2990
3039
  esModule?: boolean | undefined;
@@ -2997,6 +3046,18 @@ export declare const rspackOptions: z.ZodObject<{
2997
3046
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
2998
3047
  localIdentName?: string | undefined;
2999
3048
  } | undefined;
3049
+ asset?: {
3050
+ emit?: boolean | undefined;
3051
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3052
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3053
+ dataUrl?: {
3054
+ mimetype?: string | undefined;
3055
+ encoding?: false | "base64" | undefined;
3056
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3057
+ module: Module;
3058
+ filename: string;
3059
+ }, ...args: unknown[]) => string) | undefined;
3060
+ } | undefined;
3000
3061
  json?: {
3001
3062
  JSONParse?: boolean | undefined;
3002
3063
  } | undefined;
@@ -3010,19 +3071,22 @@ export declare const rspackOptions: z.ZodObject<{
3010
3071
  }, ...args: unknown[]) => string) | undefined;
3011
3072
  } | undefined;
3012
3073
  "asset/resource"?: {
3074
+ emit?: boolean | undefined;
3013
3075
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3014
3076
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3015
- emit?: boolean | undefined;
3016
3077
  } | undefined;
3017
3078
  } | undefined;
3018
- rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
3019
- defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
3079
+ rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
3080
+ defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
3020
3081
  noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3021
3082
  } | undefined;
3022
3083
  resolve?: t.ResolveOptions | undefined;
3023
3084
  profile?: boolean | undefined;
3024
3085
  cache?: boolean | undefined;
3086
+ context?: string | undefined;
3025
3087
  amd?: false | Record<string, any> | undefined;
3088
+ externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
3089
+ target?: false | "async-node" | "node" | "web" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | "node" | "web" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
3026
3090
  node?: false | {
3027
3091
  global?: boolean | "warn" | undefined;
3028
3092
  __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
@@ -3034,8 +3098,7 @@ export declare const rspackOptions: z.ZodObject<{
3034
3098
  maxAssetSize?: number | undefined;
3035
3099
  maxEntrypointSize?: number | undefined;
3036
3100
  } | undefined;
3037
- context?: string | undefined;
3038
- mode?: "development" | "production" | "none" | undefined;
3101
+ mode?: "none" | "development" | "production" | undefined;
3039
3102
  experiments?: {
3040
3103
  css?: boolean | undefined;
3041
3104
  cache?: boolean | {
@@ -3066,8 +3129,8 @@ export declare const rspackOptions: z.ZodObject<{
3066
3129
  topLevelAwait?: boolean | undefined;
3067
3130
  layers?: boolean | undefined;
3068
3131
  incremental?: boolean | {
3069
- providedExports?: boolean | undefined;
3070
3132
  make?: boolean | undefined;
3133
+ providedExports?: boolean | undefined;
3071
3134
  sideEffects?: boolean | undefined;
3072
3135
  moduleIds?: boolean | undefined;
3073
3136
  chunkIds?: boolean | undefined;
@@ -3086,26 +3149,37 @@ export declare const rspackOptions: z.ZodObject<{
3086
3149
  futureDefaults?: boolean | undefined;
3087
3150
  rspackFuture?: {
3088
3151
  bundlerInfo?: {
3089
- version?: string | undefined;
3090
3152
  force?: boolean | ("version" | "uniqueId")[] | undefined;
3153
+ version?: string | undefined;
3091
3154
  bundler?: string | undefined;
3092
3155
  } | undefined;
3093
3156
  } | undefined;
3157
+ buildHttp?: {
3158
+ allowedUris: (string | RegExp)[];
3159
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
3160
+ status: number;
3161
+ body: Buffer<ArrayBufferLike>;
3162
+ headers: Record<string, string>;
3163
+ }>) | undefined;
3164
+ lockfileLocation?: string | undefined;
3165
+ cacheLocation?: string | false | undefined;
3166
+ upgrade?: boolean | undefined;
3167
+ } | undefined;
3094
3168
  } | undefined;
3095
3169
  devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
3096
- externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
3097
- target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
3098
- stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
3170
+ stats?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
3099
3171
  ids?: boolean | undefined;
3100
3172
  runtime?: boolean | undefined;
3101
3173
  hash?: boolean | undefined;
3102
3174
  modules?: boolean | undefined;
3103
- all?: boolean | undefined;
3104
- version?: boolean | undefined;
3105
3175
  publicPath?: boolean | undefined;
3106
- preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
3107
- assets?: boolean | undefined;
3108
3176
  chunks?: boolean | undefined;
3177
+ source?: boolean | undefined;
3178
+ all?: boolean | undefined;
3179
+ usedExports?: boolean | undefined;
3180
+ assets?: boolean | undefined;
3181
+ version?: boolean | undefined;
3182
+ preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
3109
3183
  entrypoints?: boolean | "auto" | undefined;
3110
3184
  chunkGroups?: boolean | undefined;
3111
3185
  warnings?: boolean | undefined;
@@ -3121,13 +3195,11 @@ export declare const rspackOptions: z.ZodObject<{
3121
3195
  builtAt?: boolean | undefined;
3122
3196
  moduleAssets?: boolean | undefined;
3123
3197
  nestedModules?: boolean | undefined;
3124
- source?: boolean | undefined;
3125
- logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
3198
+ logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
3126
3199
  loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3127
3200
  loggingTrace?: boolean | undefined;
3128
3201
  runtimeModules?: boolean | undefined;
3129
3202
  children?: boolean | undefined;
3130
- usedExports?: boolean | undefined;
3131
3203
  providedExports?: boolean | undefined;
3132
3204
  optimizationBailout?: boolean | undefined;
3133
3205
  groupModulesByType?: boolean | undefined;
@@ -3177,11 +3249,12 @@ export declare const rspackOptions: z.ZodObject<{
3177
3249
  entry?: string | string[] | Record<string, string | string[] | {
3178
3250
  import: string | string[];
3179
3251
  runtime?: string | false | undefined;
3180
- chunkLoading?: string | false | undefined;
3181
- asyncChunks?: boolean | undefined;
3182
3252
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3253
+ layer?: string | null | undefined;
3183
3254
  baseUri?: string | undefined;
3184
3255
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3256
+ chunkLoading?: string | false | undefined;
3257
+ asyncChunks?: boolean | undefined;
3185
3258
  library?: {
3186
3259
  type: string;
3187
3260
  name?: string | string[] | {
@@ -3199,17 +3272,17 @@ export declare const rspackOptions: z.ZodObject<{
3199
3272
  export?: string | string[] | undefined;
3200
3273
  umdNamedDefine?: boolean | undefined;
3201
3274
  } | undefined;
3202
- layer?: string | null | undefined;
3203
- wasmLoading?: string | false | undefined;
3204
3275
  dependOn?: string | string[] | undefined;
3276
+ wasmLoading?: string | false | undefined;
3205
3277
  }> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
3206
3278
  import: string | string[];
3207
3279
  runtime?: string | false | undefined;
3208
- chunkLoading?: string | false | undefined;
3209
- asyncChunks?: boolean | undefined;
3210
3280
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3281
+ layer?: string | null | undefined;
3211
3282
  baseUri?: string | undefined;
3212
3283
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3284
+ chunkLoading?: string | false | undefined;
3285
+ asyncChunks?: boolean | undefined;
3213
3286
  library?: {
3214
3287
  type: string;
3215
3288
  name?: string | string[] | {
@@ -3227,17 +3300,17 @@ export declare const rspackOptions: z.ZodObject<{
3227
3300
  export?: string | string[] | undefined;
3228
3301
  umdNamedDefine?: boolean | undefined;
3229
3302
  } | undefined;
3230
- layer?: string | null | undefined;
3231
- wasmLoading?: string | false | undefined;
3232
3303
  dependOn?: string | string[] | undefined;
3304
+ wasmLoading?: string | false | undefined;
3233
3305
  }> | Promise<string | string[] | Record<string, string | string[] | {
3234
3306
  import: string | string[];
3235
3307
  runtime?: string | false | undefined;
3236
- chunkLoading?: string | false | undefined;
3237
- asyncChunks?: boolean | undefined;
3238
3308
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3309
+ layer?: string | null | undefined;
3239
3310
  baseUri?: string | undefined;
3240
3311
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3312
+ chunkLoading?: string | false | undefined;
3313
+ asyncChunks?: boolean | undefined;
3241
3314
  library?: {
3242
3315
  type: string;
3243
3316
  name?: string | string[] | {
@@ -3255,14 +3328,13 @@ export declare const rspackOptions: z.ZodObject<{
3255
3328
  export?: string | string[] | undefined;
3256
3329
  umdNamedDefine?: boolean | undefined;
3257
3330
  } | undefined;
3258
- layer?: string | null | undefined;
3259
- wasmLoading?: string | false | undefined;
3260
3331
  dependOn?: string | string[] | undefined;
3332
+ wasmLoading?: string | false | undefined;
3261
3333
  }>>) | undefined;
3262
3334
  infrastructureLogging?: {
3263
3335
  debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3264
3336
  colors?: boolean | undefined;
3265
- level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
3337
+ level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
3266
3338
  console?: Console | undefined;
3267
3339
  appendOnly?: boolean | undefined;
3268
3340
  stream?: NodeJS.WritableStream | undefined;
@@ -3272,10 +3344,27 @@ export declare const rspackOptions: z.ZodObject<{
3272
3344
  extends?: string | string[] | undefined;
3273
3345
  output?: {
3274
3346
  module?: boolean | undefined;
3275
- chunkLoading?: string | false | undefined;
3276
- asyncChunks?: boolean | undefined;
3347
+ environment?: {
3348
+ module?: boolean | undefined;
3349
+ arrowFunction?: boolean | undefined;
3350
+ asyncFunction?: boolean | undefined;
3351
+ bigIntLiteral?: boolean | undefined;
3352
+ const?: boolean | undefined;
3353
+ destructuring?: boolean | undefined;
3354
+ document?: boolean | undefined;
3355
+ dynamicImport?: boolean | undefined;
3356
+ dynamicImportInWorker?: boolean | undefined;
3357
+ forOf?: boolean | undefined;
3358
+ globalThis?: boolean | undefined;
3359
+ nodePrefixForCoreModules?: boolean | undefined;
3360
+ optionalChaining?: boolean | undefined;
3361
+ templateLiteral?: boolean | undefined;
3362
+ } | undefined;
3277
3363
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3278
3364
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3365
+ chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3366
+ chunkLoading?: string | false | undefined;
3367
+ asyncChunks?: boolean | undefined;
3279
3368
  library?: string | string[] | {
3280
3369
  commonjs?: string | undefined;
3281
3370
  amd?: string | undefined;
@@ -3297,6 +3386,7 @@ export declare const rspackOptions: z.ZodObject<{
3297
3386
  export?: string | string[] | undefined;
3298
3387
  umdNamedDefine?: boolean | undefined;
3299
3388
  } | undefined;
3389
+ path?: string | undefined;
3300
3390
  wasmLoading?: string | false | undefined;
3301
3391
  cssHeadDataCompression?: boolean | undefined;
3302
3392
  auxiliaryComment?: string | {
@@ -3306,24 +3396,6 @@ export declare const rspackOptions: z.ZodObject<{
3306
3396
  root?: string | undefined;
3307
3397
  } | undefined;
3308
3398
  umdNamedDefine?: boolean | undefined;
3309
- path?: string | undefined;
3310
- environment?: {
3311
- module?: boolean | undefined;
3312
- arrowFunction?: boolean | undefined;
3313
- asyncFunction?: boolean | undefined;
3314
- bigIntLiteral?: boolean | undefined;
3315
- const?: boolean | undefined;
3316
- destructuring?: boolean | undefined;
3317
- document?: boolean | undefined;
3318
- dynamicImport?: boolean | undefined;
3319
- dynamicImportInWorker?: boolean | undefined;
3320
- forOf?: boolean | undefined;
3321
- globalThis?: boolean | undefined;
3322
- nodePrefixForCoreModules?: boolean | undefined;
3323
- optionalChaining?: boolean | undefined;
3324
- templateLiteral?: boolean | undefined;
3325
- } | undefined;
3326
- chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3327
3399
  pathinfo?: boolean | "verbose" | undefined;
3328
3400
  clean?: boolean | {
3329
3401
  keep?: string | undefined;
@@ -3370,10 +3442,10 @@ export declare const rspackOptions: z.ZodObject<{
3370
3442
  charset?: boolean | undefined;
3371
3443
  compareBeforeEmit?: boolean | undefined;
3372
3444
  } | undefined;
3373
- externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
3445
+ externalsType?: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
3374
3446
  externalsPresets?: {
3375
- web?: boolean | undefined;
3376
3447
  node?: boolean | undefined;
3448
+ web?: boolean | undefined;
3377
3449
  nwjs?: boolean | undefined;
3378
3450
  webAsync?: boolean | undefined;
3379
3451
  electron?: boolean | undefined;
@@ -3391,32 +3463,29 @@ export declare const rspackOptions: z.ZodObject<{
3391
3463
  } | undefined;
3392
3464
  watch?: boolean | undefined;
3393
3465
  optimization?: {
3394
- usedExports?: boolean | "global" | undefined;
3395
- providedExports?: boolean | undefined;
3396
3466
  splitChunks?: false | {
3397
3467
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
3398
3468
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3399
3469
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
3400
- usedExports?: boolean | undefined;
3401
3470
  defaultSizeTypes?: string[] | undefined;
3402
3471
  cacheGroups?: Record<string, false | {
3403
3472
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
3404
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3473
+ priority?: number | undefined;
3405
3474
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
3475
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3406
3476
  type?: string | RegExp | undefined;
3407
3477
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
3408
- usedExports?: boolean | undefined;
3409
- defaultSizeTypes?: string[] | undefined;
3410
- priority?: number | undefined;
3411
3478
  test?: string | RegExp | ((args_0: Module, args_1: {
3412
3479
  moduleGraph: ModuleGraph;
3413
3480
  chunkGraph: ChunkGraph;
3414
3481
  }, ...args: unknown[]) => boolean) | undefined;
3482
+ defaultSizeTypes?: string[] | undefined;
3415
3483
  minSize?: number | Record<string, number> | undefined;
3416
3484
  maxSize?: number | Record<string, number> | undefined;
3417
3485
  maxAsyncSize?: number | Record<string, number> | undefined;
3418
3486
  maxInitialSize?: number | Record<string, number> | undefined;
3419
3487
  minChunks?: number | undefined;
3488
+ usedExports?: boolean | undefined;
3420
3489
  maxAsyncRequests?: number | undefined;
3421
3490
  maxInitialRequests?: number | undefined;
3422
3491
  automaticNameDelimiter?: string | undefined;
@@ -3438,12 +3507,15 @@ export declare const rspackOptions: z.ZodObject<{
3438
3507
  maxInitialSize?: number | Record<string, number> | undefined;
3439
3508
  hidePathInfo?: boolean | undefined;
3440
3509
  minChunks?: number | undefined;
3510
+ usedExports?: boolean | undefined;
3441
3511
  maxAsyncRequests?: number | undefined;
3442
3512
  maxInitialRequests?: number | undefined;
3443
3513
  automaticNameDelimiter?: string | undefined;
3444
3514
  } | undefined;
3515
+ usedExports?: boolean | "global" | undefined;
3516
+ providedExports?: boolean | undefined;
3445
3517
  minimize?: boolean | undefined;
3446
- minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
3518
+ minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
3447
3519
  sideEffects?: boolean | "flag" | undefined;
3448
3520
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
3449
3521
  chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
@@ -3474,11 +3546,6 @@ export declare const rspackOptions: z.ZodObject<{
3474
3546
  css?: {
3475
3547
  namedExports?: boolean | undefined;
3476
3548
  } | undefined;
3477
- asset?: {
3478
- dataUrlCondition?: {
3479
- maxSize?: number | undefined;
3480
- } | undefined;
3481
- } | undefined;
3482
3549
  "css/auto"?: {
3483
3550
  namedExports?: boolean | undefined;
3484
3551
  } | undefined;
@@ -3506,6 +3573,11 @@ export declare const rspackOptions: z.ZodObject<{
3506
3573
  requireResolve?: boolean | undefined;
3507
3574
  importDynamic?: boolean | undefined;
3508
3575
  } | undefined;
3576
+ asset?: {
3577
+ dataUrlCondition?: {
3578
+ maxSize?: number | undefined;
3579
+ } | undefined;
3580
+ } | undefined;
3509
3581
  "javascript/auto"?: {
3510
3582
  url?: boolean | "relative" | undefined;
3511
3583
  dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
@@ -3575,18 +3647,6 @@ export declare const rspackOptions: z.ZodObject<{
3575
3647
  exportsOnly?: boolean | undefined;
3576
3648
  esModule?: boolean | undefined;
3577
3649
  } | undefined;
3578
- asset?: {
3579
- publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3580
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3581
- emit?: boolean | undefined;
3582
- dataUrl?: {
3583
- mimetype?: string | undefined;
3584
- encoding?: false | "base64" | undefined;
3585
- } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3586
- module: Module;
3587
- filename: string;
3588
- }, ...args: unknown[]) => string) | undefined;
3589
- } | undefined;
3590
3650
  "css/auto"?: {
3591
3651
  exportsOnly?: boolean | undefined;
3592
3652
  esModule?: boolean | undefined;
@@ -3599,6 +3659,18 @@ export declare const rspackOptions: z.ZodObject<{
3599
3659
  exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
3600
3660
  localIdentName?: string | undefined;
3601
3661
  } | undefined;
3662
+ asset?: {
3663
+ emit?: boolean | undefined;
3664
+ publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3665
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3666
+ dataUrl?: {
3667
+ mimetype?: string | undefined;
3668
+ encoding?: false | "base64" | undefined;
3669
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3670
+ module: Module;
3671
+ filename: string;
3672
+ }, ...args: unknown[]) => string) | undefined;
3673
+ } | undefined;
3602
3674
  json?: {
3603
3675
  JSONParse?: boolean | undefined;
3604
3676
  } | undefined;
@@ -3612,19 +3684,22 @@ export declare const rspackOptions: z.ZodObject<{
3612
3684
  }, ...args: unknown[]) => string) | undefined;
3613
3685
  } | undefined;
3614
3686
  "asset/resource"?: {
3687
+ emit?: boolean | undefined;
3615
3688
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3616
3689
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3617
- emit?: boolean | undefined;
3618
3690
  } | undefined;
3619
3691
  } | undefined;
3620
- rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
3621
- defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
3692
+ rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
3693
+ defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
3622
3694
  noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3623
3695
  } | undefined;
3624
3696
  resolve?: t.ResolveOptions | undefined;
3625
3697
  profile?: boolean | undefined;
3626
3698
  cache?: boolean | undefined;
3699
+ context?: string | undefined;
3627
3700
  amd?: false | Record<string, any> | undefined;
3701
+ externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
3702
+ target?: false | "async-node" | "node" | "web" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | "node" | "web" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
3628
3703
  node?: false | {
3629
3704
  global?: boolean | "warn" | undefined;
3630
3705
  __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
@@ -3636,8 +3711,7 @@ export declare const rspackOptions: z.ZodObject<{
3636
3711
  maxAssetSize?: number | undefined;
3637
3712
  maxEntrypointSize?: number | undefined;
3638
3713
  } | undefined;
3639
- context?: string | undefined;
3640
- mode?: "development" | "production" | "none" | undefined;
3714
+ mode?: "none" | "development" | "production" | undefined;
3641
3715
  experiments?: {
3642
3716
  css?: boolean | undefined;
3643
3717
  cache?: boolean | {
@@ -3668,8 +3742,8 @@ export declare const rspackOptions: z.ZodObject<{
3668
3742
  topLevelAwait?: boolean | undefined;
3669
3743
  layers?: boolean | undefined;
3670
3744
  incremental?: boolean | {
3671
- providedExports?: boolean | undefined;
3672
3745
  make?: boolean | undefined;
3746
+ providedExports?: boolean | undefined;
3673
3747
  sideEffects?: boolean | undefined;
3674
3748
  moduleIds?: boolean | undefined;
3675
3749
  chunkIds?: boolean | undefined;
@@ -3688,26 +3762,37 @@ export declare const rspackOptions: z.ZodObject<{
3688
3762
  futureDefaults?: boolean | undefined;
3689
3763
  rspackFuture?: {
3690
3764
  bundlerInfo?: {
3691
- version?: string | undefined;
3692
3765
  force?: boolean | ("version" | "uniqueId")[] | undefined;
3766
+ version?: string | undefined;
3693
3767
  bundler?: string | undefined;
3694
3768
  } | undefined;
3695
3769
  } | undefined;
3770
+ buildHttp?: {
3771
+ allowedUris: (string | RegExp)[];
3772
+ httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
3773
+ status: number;
3774
+ body: Buffer<ArrayBufferLike>;
3775
+ headers: Record<string, string>;
3776
+ }>) | undefined;
3777
+ lockfileLocation?: string | undefined;
3778
+ cacheLocation?: string | false | undefined;
3779
+ upgrade?: boolean | undefined;
3780
+ } | undefined;
3696
3781
  } | undefined;
3697
3782
  devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
3698
- externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
3699
- target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
3700
- stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
3783
+ stats?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
3701
3784
  ids?: boolean | undefined;
3702
3785
  runtime?: boolean | undefined;
3703
3786
  hash?: boolean | undefined;
3704
3787
  modules?: boolean | undefined;
3705
- all?: boolean | undefined;
3706
- version?: boolean | undefined;
3707
3788
  publicPath?: boolean | undefined;
3708
- preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
3709
- assets?: boolean | undefined;
3710
3789
  chunks?: boolean | undefined;
3790
+ source?: boolean | undefined;
3791
+ all?: boolean | undefined;
3792
+ usedExports?: boolean | undefined;
3793
+ assets?: boolean | undefined;
3794
+ version?: boolean | undefined;
3795
+ preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
3711
3796
  entrypoints?: boolean | "auto" | undefined;
3712
3797
  chunkGroups?: boolean | undefined;
3713
3798
  warnings?: boolean | undefined;
@@ -3723,13 +3808,11 @@ export declare const rspackOptions: z.ZodObject<{
3723
3808
  builtAt?: boolean | undefined;
3724
3809
  moduleAssets?: boolean | undefined;
3725
3810
  nestedModules?: boolean | undefined;
3726
- source?: boolean | undefined;
3727
- logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
3811
+ logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
3728
3812
  loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3729
3813
  loggingTrace?: boolean | undefined;
3730
3814
  runtimeModules?: boolean | undefined;
3731
3815
  children?: boolean | undefined;
3732
- usedExports?: boolean | undefined;
3733
3816
  providedExports?: boolean | undefined;
3734
3817
  optimizationBailout?: boolean | undefined;
3735
3818
  groupModulesByType?: boolean | undefined;
@@ -3779,11 +3862,12 @@ export declare const rspackOptions: z.ZodObject<{
3779
3862
  entry?: string | string[] | Record<string, string | string[] | {
3780
3863
  import: string | string[];
3781
3864
  runtime?: string | false | undefined;
3782
- chunkLoading?: string | false | undefined;
3783
- asyncChunks?: boolean | undefined;
3784
3865
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3866
+ layer?: string | null | undefined;
3785
3867
  baseUri?: string | undefined;
3786
3868
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3869
+ chunkLoading?: string | false | undefined;
3870
+ asyncChunks?: boolean | undefined;
3787
3871
  library?: {
3788
3872
  type: string;
3789
3873
  name?: string | string[] | {
@@ -3801,17 +3885,17 @@ export declare const rspackOptions: z.ZodObject<{
3801
3885
  export?: string | string[] | undefined;
3802
3886
  umdNamedDefine?: boolean | undefined;
3803
3887
  } | undefined;
3804
- layer?: string | null | undefined;
3805
- wasmLoading?: string | false | undefined;
3806
3888
  dependOn?: string | string[] | undefined;
3889
+ wasmLoading?: string | false | undefined;
3807
3890
  }> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
3808
3891
  import: string | string[];
3809
3892
  runtime?: string | false | undefined;
3810
- chunkLoading?: string | false | undefined;
3811
- asyncChunks?: boolean | undefined;
3812
3893
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3894
+ layer?: string | null | undefined;
3813
3895
  baseUri?: string | undefined;
3814
3896
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3897
+ chunkLoading?: string | false | undefined;
3898
+ asyncChunks?: boolean | undefined;
3815
3899
  library?: {
3816
3900
  type: string;
3817
3901
  name?: string | string[] | {
@@ -3829,17 +3913,17 @@ export declare const rspackOptions: z.ZodObject<{
3829
3913
  export?: string | string[] | undefined;
3830
3914
  umdNamedDefine?: boolean | undefined;
3831
3915
  } | undefined;
3832
- layer?: string | null | undefined;
3833
- wasmLoading?: string | false | undefined;
3834
3916
  dependOn?: string | string[] | undefined;
3917
+ wasmLoading?: string | false | undefined;
3835
3918
  }> | Promise<string | string[] | Record<string, string | string[] | {
3836
3919
  import: string | string[];
3837
3920
  runtime?: string | false | undefined;
3838
- chunkLoading?: string | false | undefined;
3839
- asyncChunks?: boolean | undefined;
3840
3921
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3922
+ layer?: string | null | undefined;
3841
3923
  baseUri?: string | undefined;
3842
3924
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3925
+ chunkLoading?: string | false | undefined;
3926
+ asyncChunks?: boolean | undefined;
3843
3927
  library?: {
3844
3928
  type: string;
3845
3929
  name?: string | string[] | {
@@ -3857,14 +3941,13 @@ export declare const rspackOptions: z.ZodObject<{
3857
3941
  export?: string | string[] | undefined;
3858
3942
  umdNamedDefine?: boolean | undefined;
3859
3943
  } | undefined;
3860
- layer?: string | null | undefined;
3861
- wasmLoading?: string | false | undefined;
3862
3944
  dependOn?: string | string[] | undefined;
3945
+ wasmLoading?: string | false | undefined;
3863
3946
  }>>) | undefined;
3864
3947
  infrastructureLogging?: {
3865
3948
  debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
3866
3949
  colors?: boolean | undefined;
3867
- level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
3950
+ level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
3868
3951
  console?: Console | undefined;
3869
3952
  appendOnly?: boolean | undefined;
3870
3953
  stream?: NodeJS.WritableStream | undefined;
@@ -3874,10 +3957,27 @@ export declare const rspackOptions: z.ZodObject<{
3874
3957
  extends?: string | string[] | undefined;
3875
3958
  output?: {
3876
3959
  module?: boolean | undefined;
3877
- chunkLoading?: string | false | undefined;
3878
- asyncChunks?: boolean | undefined;
3960
+ environment?: {
3961
+ module?: boolean | undefined;
3962
+ arrowFunction?: boolean | undefined;
3963
+ asyncFunction?: boolean | undefined;
3964
+ bigIntLiteral?: boolean | undefined;
3965
+ const?: boolean | undefined;
3966
+ destructuring?: boolean | undefined;
3967
+ document?: boolean | undefined;
3968
+ dynamicImport?: boolean | undefined;
3969
+ dynamicImportInWorker?: boolean | undefined;
3970
+ forOf?: boolean | undefined;
3971
+ globalThis?: boolean | undefined;
3972
+ nodePrefixForCoreModules?: boolean | undefined;
3973
+ optionalChaining?: boolean | undefined;
3974
+ templateLiteral?: boolean | undefined;
3975
+ } | undefined;
3879
3976
  publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3880
3977
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3978
+ chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3979
+ chunkLoading?: string | false | undefined;
3980
+ asyncChunks?: boolean | undefined;
3881
3981
  library?: string | string[] | {
3882
3982
  commonjs?: string | undefined;
3883
3983
  amd?: string | undefined;
@@ -3899,6 +3999,7 @@ export declare const rspackOptions: z.ZodObject<{
3899
3999
  export?: string | string[] | undefined;
3900
4000
  umdNamedDefine?: boolean | undefined;
3901
4001
  } | undefined;
4002
+ path?: string | undefined;
3902
4003
  wasmLoading?: string | false | undefined;
3903
4004
  cssHeadDataCompression?: boolean | undefined;
3904
4005
  auxiliaryComment?: string | {
@@ -3908,24 +4009,6 @@ export declare const rspackOptions: z.ZodObject<{
3908
4009
  root?: string | undefined;
3909
4010
  } | undefined;
3910
4011
  umdNamedDefine?: boolean | undefined;
3911
- path?: string | undefined;
3912
- environment?: {
3913
- module?: boolean | undefined;
3914
- arrowFunction?: boolean | undefined;
3915
- asyncFunction?: boolean | undefined;
3916
- bigIntLiteral?: boolean | undefined;
3917
- const?: boolean | undefined;
3918
- destructuring?: boolean | undefined;
3919
- document?: boolean | undefined;
3920
- dynamicImport?: boolean | undefined;
3921
- dynamicImportInWorker?: boolean | undefined;
3922
- forOf?: boolean | undefined;
3923
- globalThis?: boolean | undefined;
3924
- nodePrefixForCoreModules?: boolean | undefined;
3925
- optionalChaining?: boolean | undefined;
3926
- templateLiteral?: boolean | undefined;
3927
- } | undefined;
3928
- chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3929
4012
  pathinfo?: boolean | "verbose" | undefined;
3930
4013
  clean?: boolean | {
3931
4014
  keep?: string | undefined;
@@ -3972,10 +4055,10 @@ export declare const rspackOptions: z.ZodObject<{
3972
4055
  charset?: boolean | undefined;
3973
4056
  compareBeforeEmit?: boolean | undefined;
3974
4057
  } | undefined;
3975
- externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
4058
+ externalsType?: "module" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
3976
4059
  externalsPresets?: {
3977
- web?: boolean | undefined;
3978
4060
  node?: boolean | undefined;
4061
+ web?: boolean | undefined;
3979
4062
  nwjs?: boolean | undefined;
3980
4063
  webAsync?: boolean | undefined;
3981
4064
  electron?: boolean | undefined;
@@ -3993,32 +4076,29 @@ export declare const rspackOptions: z.ZodObject<{
3993
4076
  } | undefined;
3994
4077
  watch?: boolean | undefined;
3995
4078
  optimization?: {
3996
- usedExports?: boolean | "global" | undefined;
3997
- providedExports?: boolean | undefined;
3998
4079
  splitChunks?: false | {
3999
4080
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
4000
4081
  filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
4001
4082
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
4002
- usedExports?: boolean | undefined;
4003
4083
  defaultSizeTypes?: string[] | undefined;
4004
4084
  cacheGroups?: Record<string, false | {
4005
4085
  name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
4006
- filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
4086
+ priority?: number | undefined;
4007
4087
  layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
4088
+ filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
4008
4089
  type?: string | RegExp | undefined;
4009
4090
  chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
4010
- usedExports?: boolean | undefined;
4011
- defaultSizeTypes?: string[] | undefined;
4012
- priority?: number | undefined;
4013
4091
  test?: string | RegExp | ((args_0: Module, args_1: {
4014
4092
  moduleGraph: ModuleGraph;
4015
4093
  chunkGraph: ChunkGraph;
4016
4094
  }, ...args: unknown[]) => boolean) | undefined;
4095
+ defaultSizeTypes?: string[] | undefined;
4017
4096
  minSize?: number | Record<string, number> | undefined;
4018
4097
  maxSize?: number | Record<string, number> | undefined;
4019
4098
  maxAsyncSize?: number | Record<string, number> | undefined;
4020
4099
  maxInitialSize?: number | Record<string, number> | undefined;
4021
4100
  minChunks?: number | undefined;
4101
+ usedExports?: boolean | undefined;
4022
4102
  maxAsyncRequests?: number | undefined;
4023
4103
  maxInitialRequests?: number | undefined;
4024
4104
  automaticNameDelimiter?: string | undefined;
@@ -4040,12 +4120,15 @@ export declare const rspackOptions: z.ZodObject<{
4040
4120
  maxInitialSize?: number | Record<string, number> | undefined;
4041
4121
  hidePathInfo?: boolean | undefined;
4042
4122
  minChunks?: number | undefined;
4123
+ usedExports?: boolean | undefined;
4043
4124
  maxAsyncRequests?: number | undefined;
4044
4125
  maxInitialRequests?: number | undefined;
4045
4126
  automaticNameDelimiter?: string | undefined;
4046
4127
  } | undefined;
4128
+ usedExports?: boolean | "global" | undefined;
4129
+ providedExports?: boolean | undefined;
4047
4130
  minimize?: boolean | undefined;
4048
- minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
4131
+ minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
4049
4132
  sideEffects?: boolean | "flag" | undefined;
4050
4133
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
4051
4134
  chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;