@rspack/core 1.3.0-beta.0 → 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.
- package/dist/ChunkGraph.d.ts +1 -1
- package/dist/Watching.d.ts +4 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +59 -0
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +3 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
- package/dist/config/normalization.d.ts +2 -0
- package/dist/config/types.d.ts +19 -6
- package/dist/config/zod.d.ts +457 -511
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/cssExtractLoader.js +1 -1
- package/dist/exports.d.ts +4 -1
- package/dist/index.js +503 -527
- package/dist/stats/statsFactoryUtils.d.ts +8 -8
- package/dist/util/MergeCaller.d.ts +1 -0
- package/hot/lazy-compilation-node.js +5 -1
- package/hot/lazy-compilation-web.js +6 -10
- package/package.json +6 -6
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +0 -52
- package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +0 -13
package/dist/config/zod.d.ts
CHANGED
@@ -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,11 +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
|
-
|
628
|
-
|
629
|
-
|
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;
|
630
643
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
631
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;
|
632
648
|
library?: string | string[] | {
|
633
649
|
commonjs?: string | undefined;
|
634
650
|
amd?: string | undefined;
|
@@ -650,6 +666,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
650
666
|
export?: string | string[] | undefined;
|
651
667
|
umdNamedDefine?: boolean | undefined;
|
652
668
|
} | undefined;
|
669
|
+
path?: string | undefined;
|
653
670
|
wasmLoading?: string | false | undefined;
|
654
671
|
cssHeadDataCompression?: boolean | undefined;
|
655
672
|
auxiliaryComment?: string | {
|
@@ -659,23 +676,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
659
676
|
root?: string | undefined;
|
660
677
|
} | undefined;
|
661
678
|
umdNamedDefine?: boolean | 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,11 +723,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
723
723
|
compareBeforeEmit?: boolean | undefined;
|
724
724
|
}, {
|
725
725
|
module?: boolean | undefined;
|
726
|
-
|
727
|
-
|
728
|
-
|
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;
|
729
742
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
730
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;
|
731
747
|
library?: string | string[] | {
|
732
748
|
commonjs?: string | undefined;
|
733
749
|
amd?: string | undefined;
|
@@ -749,6 +765,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
749
765
|
export?: string | string[] | undefined;
|
750
766
|
umdNamedDefine?: boolean | undefined;
|
751
767
|
} | undefined;
|
768
|
+
path?: string | undefined;
|
752
769
|
wasmLoading?: string | false | undefined;
|
753
770
|
cssHeadDataCompression?: boolean | undefined;
|
754
771
|
auxiliaryComment?: string | {
|
@@ -758,23 +775,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
758
775
|
root?: string | undefined;
|
759
776
|
} | undefined;
|
760
777
|
umdNamedDefine?: boolean | 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;
|
@@ -885,108 +885,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
885
885
|
} | undefined;
|
886
886
|
}>]>]>;
|
887
887
|
lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
|
888
|
-
backend: z.ZodOptional<z.ZodObject<{
|
889
|
-
client: z.ZodOptional<z.ZodString>;
|
890
|
-
listen: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
891
|
-
port: z.ZodOptional<z.ZodNumber>;
|
892
|
-
host: z.ZodOptional<z.ZodString>;
|
893
|
-
backlog: z.ZodOptional<z.ZodNumber>;
|
894
|
-
path: z.ZodOptional<z.ZodString>;
|
895
|
-
exclusive: z.ZodOptional<z.ZodBoolean>;
|
896
|
-
readableAll: z.ZodOptional<z.ZodBoolean>;
|
897
|
-
writableAll: z.ZodOptional<z.ZodBoolean>;
|
898
|
-
ipv6Only: z.ZodOptional<z.ZodBoolean>;
|
899
|
-
}, "strip", z.ZodTypeAny, {
|
900
|
-
port?: number | undefined;
|
901
|
-
host?: string | undefined;
|
902
|
-
backlog?: number | undefined;
|
903
|
-
path?: string | undefined;
|
904
|
-
exclusive?: boolean | undefined;
|
905
|
-
readableAll?: boolean | undefined;
|
906
|
-
writableAll?: boolean | undefined;
|
907
|
-
ipv6Only?: boolean | undefined;
|
908
|
-
}, {
|
909
|
-
port?: number | undefined;
|
910
|
-
host?: string | undefined;
|
911
|
-
backlog?: number | undefined;
|
912
|
-
path?: string | undefined;
|
913
|
-
exclusive?: boolean | undefined;
|
914
|
-
readableAll?: boolean | undefined;
|
915
|
-
writableAll?: boolean | undefined;
|
916
|
-
ipv6Only?: boolean | undefined;
|
917
|
-
}>]>, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
918
|
-
protocol: z.ZodOptional<z.ZodEnum<["http", "https"]>>;
|
919
|
-
server: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodAny>]>>;
|
920
|
-
}, "strip", z.ZodTypeAny, {
|
921
|
-
client?: string | undefined;
|
922
|
-
listen?: number | {
|
923
|
-
port?: number | undefined;
|
924
|
-
host?: string | undefined;
|
925
|
-
backlog?: number | undefined;
|
926
|
-
path?: string | undefined;
|
927
|
-
exclusive?: boolean | undefined;
|
928
|
-
readableAll?: boolean | undefined;
|
929
|
-
writableAll?: boolean | undefined;
|
930
|
-
ipv6Only?: boolean | undefined;
|
931
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
932
|
-
protocol?: "http" | "https" | undefined;
|
933
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
934
|
-
}, {
|
935
|
-
client?: string | undefined;
|
936
|
-
listen?: number | {
|
937
|
-
port?: number | undefined;
|
938
|
-
host?: string | undefined;
|
939
|
-
backlog?: number | undefined;
|
940
|
-
path?: string | undefined;
|
941
|
-
exclusive?: boolean | undefined;
|
942
|
-
readableAll?: boolean | undefined;
|
943
|
-
writableAll?: boolean | undefined;
|
944
|
-
ipv6Only?: boolean | undefined;
|
945
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
946
|
-
protocol?: "http" | "https" | undefined;
|
947
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
948
|
-
}>>;
|
949
888
|
imports: z.ZodOptional<z.ZodBoolean>;
|
950
889
|
entries: z.ZodOptional<z.ZodBoolean>;
|
951
890
|
test: z.ZodOptional<z.ZodUnion<[z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
891
|
+
client: z.ZodOptional<z.ZodString>;
|
892
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
952
893
|
}, "strip", z.ZodTypeAny, {
|
953
894
|
entries?: boolean | undefined;
|
954
|
-
backend?: {
|
955
|
-
client?: string | undefined;
|
956
|
-
listen?: number | {
|
957
|
-
port?: number | undefined;
|
958
|
-
host?: string | undefined;
|
959
|
-
backlog?: number | undefined;
|
960
|
-
path?: string | undefined;
|
961
|
-
exclusive?: boolean | undefined;
|
962
|
-
readableAll?: boolean | undefined;
|
963
|
-
writableAll?: boolean | undefined;
|
964
|
-
ipv6Only?: boolean | undefined;
|
965
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
966
|
-
protocol?: "http" | "https" | undefined;
|
967
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
968
|
-
} | undefined;
|
969
895
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
970
896
|
imports?: boolean | undefined;
|
897
|
+
client?: string | undefined;
|
898
|
+
serverUrl?: string | undefined;
|
971
899
|
}, {
|
972
900
|
entries?: boolean | undefined;
|
973
|
-
backend?: {
|
974
|
-
client?: string | undefined;
|
975
|
-
listen?: number | {
|
976
|
-
port?: number | undefined;
|
977
|
-
host?: string | undefined;
|
978
|
-
backlog?: number | undefined;
|
979
|
-
path?: string | undefined;
|
980
|
-
exclusive?: boolean | undefined;
|
981
|
-
readableAll?: boolean | undefined;
|
982
|
-
writableAll?: boolean | undefined;
|
983
|
-
ipv6Only?: boolean | undefined;
|
984
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
985
|
-
protocol?: "http" | "https" | undefined;
|
986
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
987
|
-
} | undefined;
|
988
901
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
989
902
|
imports?: boolean | undefined;
|
903
|
+
client?: string | undefined;
|
904
|
+
serverUrl?: string | undefined;
|
990
905
|
}>]>;
|
991
906
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
992
907
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
@@ -1010,8 +925,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1010
925
|
chunksRender: z.ZodOptional<z.ZodBoolean>;
|
1011
926
|
emitAssets: z.ZodOptional<z.ZodBoolean>;
|
1012
927
|
}, "strict", z.ZodTypeAny, {
|
1013
|
-
providedExports?: boolean | undefined;
|
1014
928
|
make?: boolean | undefined;
|
929
|
+
providedExports?: boolean | undefined;
|
1015
930
|
sideEffects?: boolean | undefined;
|
1016
931
|
moduleIds?: boolean | undefined;
|
1017
932
|
chunkIds?: boolean | undefined;
|
@@ -1026,8 +941,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1026
941
|
chunksRender?: boolean | undefined;
|
1027
942
|
emitAssets?: boolean | undefined;
|
1028
943
|
}, {
|
1029
|
-
providedExports?: boolean | undefined;
|
1030
944
|
make?: boolean | undefined;
|
945
|
+
providedExports?: boolean | undefined;
|
1031
946
|
sideEffects?: boolean | undefined;
|
1032
947
|
moduleIds?: boolean | undefined;
|
1033
948
|
chunkIds?: boolean | undefined;
|
@@ -1050,27 +965,66 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1050
965
|
bundler: z.ZodOptional<z.ZodString>;
|
1051
966
|
force: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["version", "uniqueId"]>, "many">]>>;
|
1052
967
|
}, "strict", z.ZodTypeAny, {
|
1053
|
-
version?: string | undefined;
|
1054
968
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
969
|
+
version?: string | undefined;
|
1055
970
|
bundler?: string | undefined;
|
1056
971
|
}, {
|
1057
|
-
version?: string | undefined;
|
1058
972
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
973
|
+
version?: string | undefined;
|
1059
974
|
bundler?: string | undefined;
|
1060
975
|
}>>;
|
1061
976
|
}, "strict", z.ZodTypeAny, {
|
1062
977
|
bundlerInfo?: {
|
1063
|
-
version?: string | undefined;
|
1064
978
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
979
|
+
version?: string | undefined;
|
1065
980
|
bundler?: string | undefined;
|
1066
981
|
} | undefined;
|
1067
982
|
}, {
|
1068
983
|
bundlerInfo?: {
|
1069
|
-
version?: string | undefined;
|
1070
984
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
985
|
+
version?: string | undefined;
|
1071
986
|
bundler?: string | undefined;
|
1072
987
|
} | undefined;
|
1073
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
|
+
}>>;
|
1074
1028
|
}, "strict", z.ZodTypeAny, {
|
1075
1029
|
css?: boolean | undefined;
|
1076
1030
|
cache?: boolean | {
|
@@ -1091,31 +1045,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1091
1045
|
} | undefined;
|
1092
1046
|
lazyCompilation?: boolean | {
|
1093
1047
|
entries?: boolean | undefined;
|
1094
|
-
backend?: {
|
1095
|
-
client?: string | undefined;
|
1096
|
-
listen?: number | {
|
1097
|
-
port?: number | undefined;
|
1098
|
-
host?: string | undefined;
|
1099
|
-
backlog?: number | undefined;
|
1100
|
-
path?: string | undefined;
|
1101
|
-
exclusive?: boolean | undefined;
|
1102
|
-
readableAll?: boolean | undefined;
|
1103
|
-
writableAll?: boolean | undefined;
|
1104
|
-
ipv6Only?: boolean | undefined;
|
1105
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
1106
|
-
protocol?: "http" | "https" | undefined;
|
1107
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
1108
|
-
} | undefined;
|
1109
1048
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1110
1049
|
imports?: boolean | undefined;
|
1050
|
+
client?: string | undefined;
|
1051
|
+
serverUrl?: string | undefined;
|
1111
1052
|
} | undefined;
|
1112
1053
|
asyncWebAssembly?: boolean | undefined;
|
1113
1054
|
outputModule?: boolean | undefined;
|
1114
1055
|
topLevelAwait?: boolean | undefined;
|
1115
1056
|
layers?: boolean | undefined;
|
1116
1057
|
incremental?: boolean | {
|
1117
|
-
providedExports?: boolean | undefined;
|
1118
1058
|
make?: boolean | undefined;
|
1059
|
+
providedExports?: boolean | undefined;
|
1119
1060
|
sideEffects?: boolean | undefined;
|
1120
1061
|
moduleIds?: boolean | undefined;
|
1121
1062
|
chunkIds?: boolean | undefined;
|
@@ -1134,11 +1075,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1134
1075
|
futureDefaults?: boolean | undefined;
|
1135
1076
|
rspackFuture?: {
|
1136
1077
|
bundlerInfo?: {
|
1137
|
-
version?: string | undefined;
|
1138
1078
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
1079
|
+
version?: string | undefined;
|
1139
1080
|
bundler?: string | undefined;
|
1140
1081
|
} | undefined;
|
1141
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;
|
1142
1094
|
}, {
|
1143
1095
|
css?: boolean | undefined;
|
1144
1096
|
cache?: boolean | {
|
@@ -1159,31 +1111,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1159
1111
|
} | undefined;
|
1160
1112
|
lazyCompilation?: boolean | {
|
1161
1113
|
entries?: boolean | undefined;
|
1162
|
-
backend?: {
|
1163
|
-
client?: string | undefined;
|
1164
|
-
listen?: number | {
|
1165
|
-
port?: number | undefined;
|
1166
|
-
host?: string | undefined;
|
1167
|
-
backlog?: number | undefined;
|
1168
|
-
path?: string | undefined;
|
1169
|
-
exclusive?: boolean | undefined;
|
1170
|
-
readableAll?: boolean | undefined;
|
1171
|
-
writableAll?: boolean | undefined;
|
1172
|
-
ipv6Only?: boolean | undefined;
|
1173
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
1174
|
-
protocol?: "http" | "https" | undefined;
|
1175
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
1176
|
-
} | undefined;
|
1177
1114
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1178
1115
|
imports?: boolean | undefined;
|
1116
|
+
client?: string | undefined;
|
1117
|
+
serverUrl?: string | undefined;
|
1179
1118
|
} | undefined;
|
1180
1119
|
asyncWebAssembly?: boolean | undefined;
|
1181
1120
|
outputModule?: boolean | undefined;
|
1182
1121
|
topLevelAwait?: boolean | undefined;
|
1183
1122
|
layers?: boolean | undefined;
|
1184
1123
|
incremental?: boolean | {
|
1185
|
-
providedExports?: boolean | undefined;
|
1186
1124
|
make?: boolean | undefined;
|
1125
|
+
providedExports?: boolean | undefined;
|
1187
1126
|
sideEffects?: boolean | undefined;
|
1188
1127
|
moduleIds?: boolean | undefined;
|
1189
1128
|
chunkIds?: boolean | undefined;
|
@@ -1202,11 +1141,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1202
1141
|
futureDefaults?: boolean | undefined;
|
1203
1142
|
rspackFuture?: {
|
1204
1143
|
bundlerInfo?: {
|
1205
|
-
version?: string | undefined;
|
1206
1144
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
1145
|
+
version?: string | undefined;
|
1207
1146
|
bundler?: string | undefined;
|
1208
1147
|
} | undefined;
|
1209
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;
|
1210
1160
|
}>>;
|
1211
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>]>>]>]>>;
|
1212
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"]>>;
|
@@ -1220,8 +1170,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1220
1170
|
electronRenderer: z.ZodOptional<z.ZodBoolean>;
|
1221
1171
|
nwjs: z.ZodOptional<z.ZodBoolean>;
|
1222
1172
|
}, "strict", z.ZodTypeAny, {
|
1223
|
-
web?: boolean | undefined;
|
1224
1173
|
node?: boolean | undefined;
|
1174
|
+
web?: boolean | undefined;
|
1225
1175
|
nwjs?: boolean | undefined;
|
1226
1176
|
webAsync?: boolean | undefined;
|
1227
1177
|
electron?: boolean | undefined;
|
@@ -1229,8 +1179,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1229
1179
|
electronPreload?: boolean | undefined;
|
1230
1180
|
electronRenderer?: boolean | undefined;
|
1231
1181
|
}, {
|
1232
|
-
web?: boolean | undefined;
|
1233
1182
|
node?: boolean | undefined;
|
1183
|
+
web?: boolean | undefined;
|
1234
1184
|
nwjs?: boolean | undefined;
|
1235
1185
|
webAsync?: boolean | undefined;
|
1236
1186
|
electron?: boolean | undefined;
|
@@ -1248,14 +1198,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1248
1198
|
}, "strict", z.ZodTypeAny, {
|
1249
1199
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1250
1200
|
colors?: boolean | undefined;
|
1251
|
-
level?: "error" | "warn" | "info" | "log" | "
|
1201
|
+
level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
1252
1202
|
console?: Console | undefined;
|
1253
1203
|
appendOnly?: boolean | undefined;
|
1254
1204
|
stream?: NodeJS.WritableStream | undefined;
|
1255
1205
|
}, {
|
1256
1206
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1257
1207
|
colors?: boolean | undefined;
|
1258
|
-
level?: "error" | "warn" | "info" | "log" | "
|
1208
|
+
level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
1259
1209
|
console?: Console | undefined;
|
1260
1210
|
appendOnly?: boolean | undefined;
|
1261
1211
|
stream?: NodeJS.WritableStream | undefined;
|
@@ -1380,12 +1330,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1380
1330
|
runtime?: boolean | undefined;
|
1381
1331
|
hash?: boolean | undefined;
|
1382
1332
|
modules?: boolean | undefined;
|
1383
|
-
all?: boolean | undefined;
|
1384
|
-
version?: boolean | undefined;
|
1385
1333
|
publicPath?: boolean | undefined;
|
1386
|
-
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1387
|
-
assets?: boolean | undefined;
|
1388
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;
|
1389
1341
|
entrypoints?: boolean | "auto" | undefined;
|
1390
1342
|
chunkGroups?: boolean | undefined;
|
1391
1343
|
warnings?: boolean | undefined;
|
@@ -1401,13 +1353,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1401
1353
|
builtAt?: boolean | undefined;
|
1402
1354
|
moduleAssets?: boolean | undefined;
|
1403
1355
|
nestedModules?: boolean | undefined;
|
1404
|
-
|
1405
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
1356
|
+
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
1406
1357
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1407
1358
|
loggingTrace?: boolean | undefined;
|
1408
1359
|
runtimeModules?: boolean | undefined;
|
1409
1360
|
children?: boolean | undefined;
|
1410
|
-
usedExports?: boolean | undefined;
|
1411
1361
|
providedExports?: boolean | undefined;
|
1412
1362
|
optimizationBailout?: boolean | undefined;
|
1413
1363
|
groupModulesByType?: boolean | undefined;
|
@@ -1457,12 +1407,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1457
1407
|
runtime?: boolean | undefined;
|
1458
1408
|
hash?: boolean | undefined;
|
1459
1409
|
modules?: boolean | undefined;
|
1460
|
-
all?: boolean | undefined;
|
1461
|
-
version?: boolean | undefined;
|
1462
1410
|
publicPath?: boolean | undefined;
|
1463
|
-
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1464
|
-
assets?: boolean | undefined;
|
1465
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;
|
1466
1418
|
entrypoints?: boolean | "auto" | undefined;
|
1467
1419
|
chunkGroups?: boolean | undefined;
|
1468
1420
|
warnings?: boolean | undefined;
|
@@ -1478,13 +1430,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1478
1430
|
builtAt?: boolean | undefined;
|
1479
1431
|
moduleAssets?: boolean | undefined;
|
1480
1432
|
nestedModules?: boolean | undefined;
|
1481
|
-
|
1482
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
1433
|
+
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
1483
1434
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1484
1435
|
loggingTrace?: boolean | undefined;
|
1485
1436
|
runtimeModules?: boolean | undefined;
|
1486
1437
|
children?: boolean | undefined;
|
1487
|
-
usedExports?: boolean | undefined;
|
1488
1438
|
providedExports?: boolean | undefined;
|
1489
1439
|
optimizationBailout?: boolean | undefined;
|
1490
1440
|
groupModulesByType?: boolean | undefined;
|
@@ -1583,22 +1533,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1583
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>]>>;
|
1584
1534
|
}, "strict", z.ZodTypeAny, {
|
1585
1535
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1586
|
-
|
1536
|
+
priority?: number | undefined;
|
1587
1537
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1538
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1588
1539
|
type?: string | RegExp | undefined;
|
1589
1540
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1590
|
-
usedExports?: boolean | undefined;
|
1591
|
-
defaultSizeTypes?: string[] | undefined;
|
1592
|
-
priority?: number | undefined;
|
1593
1541
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1594
1542
|
moduleGraph: ModuleGraph;
|
1595
1543
|
chunkGraph: ChunkGraph;
|
1596
1544
|
}, ...args: unknown[]) => boolean) | undefined;
|
1545
|
+
defaultSizeTypes?: string[] | undefined;
|
1597
1546
|
minSize?: number | Record<string, number> | undefined;
|
1598
1547
|
maxSize?: number | Record<string, number> | undefined;
|
1599
1548
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1600
1549
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1601
1550
|
minChunks?: number | undefined;
|
1551
|
+
usedExports?: boolean | undefined;
|
1602
1552
|
maxAsyncRequests?: number | undefined;
|
1603
1553
|
maxInitialRequests?: number | undefined;
|
1604
1554
|
automaticNameDelimiter?: string | undefined;
|
@@ -1607,22 +1557,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1607
1557
|
idHint?: string | undefined;
|
1608
1558
|
}, {
|
1609
1559
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1610
|
-
|
1560
|
+
priority?: number | undefined;
|
1611
1561
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1562
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1612
1563
|
type?: string | RegExp | undefined;
|
1613
1564
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1614
|
-
usedExports?: boolean | undefined;
|
1615
|
-
defaultSizeTypes?: string[] | undefined;
|
1616
|
-
priority?: number | undefined;
|
1617
1565
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1618
1566
|
moduleGraph: ModuleGraph;
|
1619
1567
|
chunkGraph: ChunkGraph;
|
1620
1568
|
}, ...args: unknown[]) => boolean) | undefined;
|
1569
|
+
defaultSizeTypes?: string[] | undefined;
|
1621
1570
|
minSize?: number | Record<string, number> | undefined;
|
1622
1571
|
maxSize?: number | Record<string, number> | undefined;
|
1623
1572
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1624
1573
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1625
1574
|
minChunks?: number | undefined;
|
1575
|
+
usedExports?: boolean | undefined;
|
1626
1576
|
maxAsyncRequests?: number | undefined;
|
1627
1577
|
maxInitialRequests?: number | undefined;
|
1628
1578
|
automaticNameDelimiter?: string | undefined;
|
@@ -1657,26 +1607,25 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1657
1607
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1658
1608
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1659
1609
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1660
|
-
usedExports?: boolean | undefined;
|
1661
1610
|
defaultSizeTypes?: string[] | undefined;
|
1662
1611
|
cacheGroups?: Record<string, false | {
|
1663
1612
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1664
|
-
|
1613
|
+
priority?: number | undefined;
|
1665
1614
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1615
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1666
1616
|
type?: string | RegExp | undefined;
|
1667
1617
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1668
|
-
usedExports?: boolean | undefined;
|
1669
|
-
defaultSizeTypes?: string[] | undefined;
|
1670
|
-
priority?: number | undefined;
|
1671
1618
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1672
1619
|
moduleGraph: ModuleGraph;
|
1673
1620
|
chunkGraph: ChunkGraph;
|
1674
1621
|
}, ...args: unknown[]) => boolean) | undefined;
|
1622
|
+
defaultSizeTypes?: string[] | undefined;
|
1675
1623
|
minSize?: number | Record<string, number> | undefined;
|
1676
1624
|
maxSize?: number | Record<string, number> | undefined;
|
1677
1625
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1678
1626
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1679
1627
|
minChunks?: number | undefined;
|
1628
|
+
usedExports?: boolean | undefined;
|
1680
1629
|
maxAsyncRequests?: number | undefined;
|
1681
1630
|
maxInitialRequests?: number | undefined;
|
1682
1631
|
automaticNameDelimiter?: string | undefined;
|
@@ -1698,6 +1647,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1698
1647
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1699
1648
|
hidePathInfo?: boolean | undefined;
|
1700
1649
|
minChunks?: number | undefined;
|
1650
|
+
usedExports?: boolean | undefined;
|
1701
1651
|
maxAsyncRequests?: number | undefined;
|
1702
1652
|
maxInitialRequests?: number | undefined;
|
1703
1653
|
automaticNameDelimiter?: string | undefined;
|
@@ -1705,26 +1655,25 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1705
1655
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1706
1656
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1707
1657
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1708
|
-
usedExports?: boolean | undefined;
|
1709
1658
|
defaultSizeTypes?: string[] | undefined;
|
1710
1659
|
cacheGroups?: Record<string, false | {
|
1711
1660
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1712
|
-
|
1661
|
+
priority?: number | undefined;
|
1713
1662
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1663
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1714
1664
|
type?: string | RegExp | undefined;
|
1715
1665
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1716
|
-
usedExports?: boolean | undefined;
|
1717
|
-
defaultSizeTypes?: string[] | undefined;
|
1718
|
-
priority?: number | undefined;
|
1719
1666
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1720
1667
|
moduleGraph: ModuleGraph;
|
1721
1668
|
chunkGraph: ChunkGraph;
|
1722
1669
|
}, ...args: unknown[]) => boolean) | undefined;
|
1670
|
+
defaultSizeTypes?: string[] | undefined;
|
1723
1671
|
minSize?: number | Record<string, number> | undefined;
|
1724
1672
|
maxSize?: number | Record<string, number> | undefined;
|
1725
1673
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1726
1674
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1727
1675
|
minChunks?: number | undefined;
|
1676
|
+
usedExports?: boolean | undefined;
|
1728
1677
|
maxAsyncRequests?: number | undefined;
|
1729
1678
|
maxInitialRequests?: number | undefined;
|
1730
1679
|
automaticNameDelimiter?: string | undefined;
|
@@ -1746,6 +1695,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1746
1695
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1747
1696
|
hidePathInfo?: boolean | undefined;
|
1748
1697
|
minChunks?: number | undefined;
|
1698
|
+
usedExports?: boolean | undefined;
|
1749
1699
|
maxAsyncRequests?: number | undefined;
|
1750
1700
|
maxInitialRequests?: number | undefined;
|
1751
1701
|
automaticNameDelimiter?: string | undefined;
|
@@ -1780,32 +1730,29 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1780
1730
|
emitOnErrors: z.ZodOptional<z.ZodBoolean>;
|
1781
1731
|
avoidEntryIife: z.ZodOptional<z.ZodBoolean>;
|
1782
1732
|
}, "strict", z.ZodTypeAny, {
|
1783
|
-
usedExports?: boolean | "global" | undefined;
|
1784
|
-
providedExports?: boolean | undefined;
|
1785
1733
|
splitChunks?: false | {
|
1786
1734
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1787
1735
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1788
1736
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1789
|
-
usedExports?: boolean | undefined;
|
1790
1737
|
defaultSizeTypes?: string[] | undefined;
|
1791
1738
|
cacheGroups?: Record<string, false | {
|
1792
1739
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1793
|
-
|
1740
|
+
priority?: number | undefined;
|
1794
1741
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1742
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1795
1743
|
type?: string | RegExp | undefined;
|
1796
1744
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1797
|
-
usedExports?: boolean | undefined;
|
1798
|
-
defaultSizeTypes?: string[] | undefined;
|
1799
|
-
priority?: number | undefined;
|
1800
1745
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1801
1746
|
moduleGraph: ModuleGraph;
|
1802
1747
|
chunkGraph: ChunkGraph;
|
1803
1748
|
}, ...args: unknown[]) => boolean) | undefined;
|
1749
|
+
defaultSizeTypes?: string[] | undefined;
|
1804
1750
|
minSize?: number | Record<string, number> | undefined;
|
1805
1751
|
maxSize?: number | Record<string, number> | undefined;
|
1806
1752
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1807
1753
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1808
1754
|
minChunks?: number | undefined;
|
1755
|
+
usedExports?: boolean | undefined;
|
1809
1756
|
maxAsyncRequests?: number | undefined;
|
1810
1757
|
maxInitialRequests?: number | undefined;
|
1811
1758
|
automaticNameDelimiter?: string | undefined;
|
@@ -1827,12 +1774,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1827
1774
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1828
1775
|
hidePathInfo?: boolean | undefined;
|
1829
1776
|
minChunks?: number | undefined;
|
1777
|
+
usedExports?: boolean | undefined;
|
1830
1778
|
maxAsyncRequests?: number | undefined;
|
1831
1779
|
maxInitialRequests?: number | undefined;
|
1832
1780
|
automaticNameDelimiter?: string | undefined;
|
1833
1781
|
} | undefined;
|
1782
|
+
usedExports?: boolean | "global" | undefined;
|
1783
|
+
providedExports?: boolean | undefined;
|
1834
1784
|
minimize?: boolean | undefined;
|
1835
|
-
minimizer?: (false | "" | 0 | "..." | t.
|
1785
|
+
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
1836
1786
|
sideEffects?: boolean | "flag" | undefined;
|
1837
1787
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
1838
1788
|
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
@@ -1852,32 +1802,29 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1852
1802
|
emitOnErrors?: boolean | undefined;
|
1853
1803
|
avoidEntryIife?: boolean | undefined;
|
1854
1804
|
}, {
|
1855
|
-
usedExports?: boolean | "global" | undefined;
|
1856
|
-
providedExports?: boolean | undefined;
|
1857
1805
|
splitChunks?: false | {
|
1858
1806
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1859
1807
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1860
1808
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1861
|
-
usedExports?: boolean | undefined;
|
1862
1809
|
defaultSizeTypes?: string[] | undefined;
|
1863
1810
|
cacheGroups?: Record<string, false | {
|
1864
1811
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1865
|
-
|
1812
|
+
priority?: number | undefined;
|
1866
1813
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1814
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1867
1815
|
type?: string | RegExp | undefined;
|
1868
1816
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1869
|
-
usedExports?: boolean | undefined;
|
1870
|
-
defaultSizeTypes?: string[] | undefined;
|
1871
|
-
priority?: number | undefined;
|
1872
1817
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1873
1818
|
moduleGraph: ModuleGraph;
|
1874
1819
|
chunkGraph: ChunkGraph;
|
1875
1820
|
}, ...args: unknown[]) => boolean) | undefined;
|
1821
|
+
defaultSizeTypes?: string[] | undefined;
|
1876
1822
|
minSize?: number | Record<string, number> | undefined;
|
1877
1823
|
maxSize?: number | Record<string, number> | undefined;
|
1878
1824
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1879
1825
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1880
1826
|
minChunks?: number | undefined;
|
1827
|
+
usedExports?: boolean | undefined;
|
1881
1828
|
maxAsyncRequests?: number | undefined;
|
1882
1829
|
maxInitialRequests?: number | undefined;
|
1883
1830
|
automaticNameDelimiter?: string | undefined;
|
@@ -1899,12 +1846,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1899
1846
|
maxInitialSize?: number | Record<string, number> | undefined;
|
1900
1847
|
hidePathInfo?: boolean | undefined;
|
1901
1848
|
minChunks?: number | undefined;
|
1849
|
+
usedExports?: boolean | undefined;
|
1902
1850
|
maxAsyncRequests?: number | undefined;
|
1903
1851
|
maxInitialRequests?: number | undefined;
|
1904
1852
|
automaticNameDelimiter?: string | undefined;
|
1905
1853
|
} | undefined;
|
1854
|
+
usedExports?: boolean | "global" | undefined;
|
1855
|
+
providedExports?: boolean | undefined;
|
1906
1856
|
minimize?: boolean | undefined;
|
1907
|
-
minimizer?: (false | "" | 0 | "..." | t.
|
1857
|
+
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
1908
1858
|
sideEffects?: boolean | "flag" | undefined;
|
1909
1859
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
1910
1860
|
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
@@ -2218,11 +2168,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2218
2168
|
css?: {
|
2219
2169
|
namedExports?: boolean | undefined;
|
2220
2170
|
} | undefined;
|
2221
|
-
asset?: {
|
2222
|
-
dataUrlCondition?: {
|
2223
|
-
maxSize?: number | undefined;
|
2224
|
-
} | undefined;
|
2225
|
-
} | undefined;
|
2226
2171
|
"css/auto"?: {
|
2227
2172
|
namedExports?: boolean | undefined;
|
2228
2173
|
} | undefined;
|
@@ -2250,6 +2195,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2250
2195
|
requireResolve?: boolean | undefined;
|
2251
2196
|
importDynamic?: boolean | undefined;
|
2252
2197
|
} | undefined;
|
2198
|
+
asset?: {
|
2199
|
+
dataUrlCondition?: {
|
2200
|
+
maxSize?: number | undefined;
|
2201
|
+
} | undefined;
|
2202
|
+
} | undefined;
|
2253
2203
|
"javascript/auto"?: {
|
2254
2204
|
url?: boolean | "relative" | undefined;
|
2255
2205
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -2317,11 +2267,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2317
2267
|
css?: {
|
2318
2268
|
namedExports?: boolean | undefined;
|
2319
2269
|
} | undefined;
|
2320
|
-
asset?: {
|
2321
|
-
dataUrlCondition?: {
|
2322
|
-
maxSize?: number | undefined;
|
2323
|
-
} | undefined;
|
2324
|
-
} | undefined;
|
2325
2270
|
"css/auto"?: {
|
2326
2271
|
namedExports?: boolean | undefined;
|
2327
2272
|
} | undefined;
|
@@ -2349,6 +2294,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2349
2294
|
requireResolve?: boolean | undefined;
|
2350
2295
|
importDynamic?: boolean | undefined;
|
2351
2296
|
} | undefined;
|
2297
|
+
asset?: {
|
2298
|
+
dataUrlCondition?: {
|
2299
|
+
maxSize?: number | undefined;
|
2300
|
+
} | undefined;
|
2301
|
+
} | undefined;
|
2352
2302
|
"javascript/auto"?: {
|
2353
2303
|
url?: boolean | "relative" | undefined;
|
2354
2304
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -2439,9 +2389,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2439
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>]>>;
|
2440
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>]>]>>;
|
2441
2391
|
}>, "strict", z.ZodTypeAny, {
|
2392
|
+
emit?: boolean | undefined;
|
2442
2393
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2443
2394
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2444
|
-
emit?: boolean | undefined;
|
2445
2395
|
dataUrl?: {
|
2446
2396
|
mimetype?: string | undefined;
|
2447
2397
|
encoding?: false | "base64" | undefined;
|
@@ -2450,9 +2400,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2450
2400
|
filename: string;
|
2451
2401
|
}, ...args: unknown[]) => string) | undefined;
|
2452
2402
|
}, {
|
2403
|
+
emit?: boolean | undefined;
|
2453
2404
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2454
2405
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2455
|
-
emit?: boolean | undefined;
|
2456
2406
|
dataUrl?: {
|
2457
2407
|
mimetype?: string | undefined;
|
2458
2408
|
encoding?: false | "base64" | undefined;
|
@@ -2503,13 +2453,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2503
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>]>>;
|
2504
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>]>]>>;
|
2505
2455
|
}, "strict", z.ZodTypeAny, {
|
2456
|
+
emit?: boolean | undefined;
|
2506
2457
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2507
2458
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2508
|
-
emit?: boolean | undefined;
|
2509
2459
|
}, {
|
2460
|
+
emit?: boolean | undefined;
|
2510
2461
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2511
2462
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2512
|
-
emit?: boolean | undefined;
|
2513
2463
|
}>>;
|
2514
2464
|
css: z.ZodOptional<z.ZodObject<{
|
2515
2465
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
@@ -2565,18 +2515,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2565
2515
|
exportsOnly?: boolean | undefined;
|
2566
2516
|
esModule?: boolean | undefined;
|
2567
2517
|
} | undefined;
|
2568
|
-
asset?: {
|
2569
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2570
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2571
|
-
emit?: boolean | undefined;
|
2572
|
-
dataUrl?: {
|
2573
|
-
mimetype?: string | undefined;
|
2574
|
-
encoding?: false | "base64" | undefined;
|
2575
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
2576
|
-
module: Module;
|
2577
|
-
filename: string;
|
2578
|
-
}, ...args: unknown[]) => string) | undefined;
|
2579
|
-
} | undefined;
|
2580
2518
|
"css/auto"?: {
|
2581
2519
|
exportsOnly?: boolean | undefined;
|
2582
2520
|
esModule?: boolean | undefined;
|
@@ -2589,6 +2527,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2589
2527
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
2590
2528
|
localIdentName?: string | undefined;
|
2591
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;
|
2592
2542
|
json?: {
|
2593
2543
|
JSONParse?: boolean | undefined;
|
2594
2544
|
} | undefined;
|
@@ -2602,27 +2552,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2602
2552
|
}, ...args: unknown[]) => string) | undefined;
|
2603
2553
|
} | undefined;
|
2604
2554
|
"asset/resource"?: {
|
2555
|
+
emit?: boolean | undefined;
|
2605
2556
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2606
2557
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2607
|
-
emit?: boolean | undefined;
|
2608
2558
|
} | undefined;
|
2609
2559
|
}, {
|
2610
2560
|
css?: {
|
2611
2561
|
exportsOnly?: boolean | undefined;
|
2612
2562
|
esModule?: boolean | undefined;
|
2613
2563
|
} | undefined;
|
2614
|
-
asset?: {
|
2615
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2616
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2617
|
-
emit?: boolean | undefined;
|
2618
|
-
dataUrl?: {
|
2619
|
-
mimetype?: string | undefined;
|
2620
|
-
encoding?: false | "base64" | undefined;
|
2621
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
2622
|
-
module: Module;
|
2623
|
-
filename: string;
|
2624
|
-
}, ...args: unknown[]) => string) | undefined;
|
2625
|
-
} | undefined;
|
2626
2564
|
"css/auto"?: {
|
2627
2565
|
exportsOnly?: boolean | undefined;
|
2628
2566
|
esModule?: boolean | undefined;
|
@@ -2635,6 +2573,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2635
2573
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
2636
2574
|
localIdentName?: string | undefined;
|
2637
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;
|
2638
2588
|
json?: {
|
2639
2589
|
JSONParse?: boolean | undefined;
|
2640
2590
|
} | undefined;
|
@@ -2648,9 +2598,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2648
2598
|
}, ...args: unknown[]) => string) | undefined;
|
2649
2599
|
} | undefined;
|
2650
2600
|
"asset/resource"?: {
|
2601
|
+
emit?: boolean | undefined;
|
2651
2602
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2652
2603
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2653
|
-
emit?: boolean | undefined;
|
2654
2604
|
} | undefined;
|
2655
2605
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
2656
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">]>>;
|
@@ -2659,11 +2609,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2659
2609
|
css?: {
|
2660
2610
|
namedExports?: boolean | undefined;
|
2661
2611
|
} | undefined;
|
2662
|
-
asset?: {
|
2663
|
-
dataUrlCondition?: {
|
2664
|
-
maxSize?: number | undefined;
|
2665
|
-
} | undefined;
|
2666
|
-
} | undefined;
|
2667
2612
|
"css/auto"?: {
|
2668
2613
|
namedExports?: boolean | undefined;
|
2669
2614
|
} | undefined;
|
@@ -2691,6 +2636,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2691
2636
|
requireResolve?: boolean | undefined;
|
2692
2637
|
importDynamic?: boolean | undefined;
|
2693
2638
|
} | undefined;
|
2639
|
+
asset?: {
|
2640
|
+
dataUrlCondition?: {
|
2641
|
+
maxSize?: number | undefined;
|
2642
|
+
} | undefined;
|
2643
|
+
} | undefined;
|
2694
2644
|
"javascript/auto"?: {
|
2695
2645
|
url?: boolean | "relative" | undefined;
|
2696
2646
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -2760,18 +2710,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2760
2710
|
exportsOnly?: boolean | undefined;
|
2761
2711
|
esModule?: boolean | undefined;
|
2762
2712
|
} | undefined;
|
2763
|
-
asset?: {
|
2764
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2765
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2766
|
-
emit?: boolean | undefined;
|
2767
|
-
dataUrl?: {
|
2768
|
-
mimetype?: string | undefined;
|
2769
|
-
encoding?: false | "base64" | undefined;
|
2770
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
2771
|
-
module: Module;
|
2772
|
-
filename: string;
|
2773
|
-
}, ...args: unknown[]) => string) | undefined;
|
2774
|
-
} | undefined;
|
2775
2713
|
"css/auto"?: {
|
2776
2714
|
exportsOnly?: boolean | undefined;
|
2777
2715
|
esModule?: boolean | undefined;
|
@@ -2784,6 +2722,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2784
2722
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
2785
2723
|
localIdentName?: string | undefined;
|
2786
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;
|
2787
2737
|
json?: {
|
2788
2738
|
JSONParse?: boolean | undefined;
|
2789
2739
|
} | undefined;
|
@@ -2797,24 +2747,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2797
2747
|
}, ...args: unknown[]) => string) | undefined;
|
2798
2748
|
} | undefined;
|
2799
2749
|
"asset/resource"?: {
|
2750
|
+
emit?: boolean | undefined;
|
2800
2751
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2801
2752
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2802
|
-
emit?: boolean | undefined;
|
2803
2753
|
} | undefined;
|
2804
2754
|
} | undefined;
|
2805
|
-
rules?: (false | "" | 0 | t.RuleSetRule |
|
2806
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule |
|
2755
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
2756
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
2807
2757
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
2808
2758
|
}, {
|
2809
2759
|
parser?: {
|
2810
2760
|
css?: {
|
2811
2761
|
namedExports?: boolean | undefined;
|
2812
2762
|
} | undefined;
|
2813
|
-
asset?: {
|
2814
|
-
dataUrlCondition?: {
|
2815
|
-
maxSize?: number | undefined;
|
2816
|
-
} | undefined;
|
2817
|
-
} | undefined;
|
2818
2763
|
"css/auto"?: {
|
2819
2764
|
namedExports?: boolean | undefined;
|
2820
2765
|
} | undefined;
|
@@ -2842,6 +2787,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2842
2787
|
requireResolve?: boolean | undefined;
|
2843
2788
|
importDynamic?: boolean | undefined;
|
2844
2789
|
} | undefined;
|
2790
|
+
asset?: {
|
2791
|
+
dataUrlCondition?: {
|
2792
|
+
maxSize?: number | undefined;
|
2793
|
+
} | undefined;
|
2794
|
+
} | undefined;
|
2845
2795
|
"javascript/auto"?: {
|
2846
2796
|
url?: boolean | "relative" | undefined;
|
2847
2797
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -2911,18 +2861,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2911
2861
|
exportsOnly?: boolean | undefined;
|
2912
2862
|
esModule?: boolean | undefined;
|
2913
2863
|
} | undefined;
|
2914
|
-
asset?: {
|
2915
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2916
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2917
|
-
emit?: boolean | undefined;
|
2918
|
-
dataUrl?: {
|
2919
|
-
mimetype?: string | undefined;
|
2920
|
-
encoding?: false | "base64" | undefined;
|
2921
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
2922
|
-
module: Module;
|
2923
|
-
filename: string;
|
2924
|
-
}, ...args: unknown[]) => string) | undefined;
|
2925
|
-
} | undefined;
|
2926
2864
|
"css/auto"?: {
|
2927
2865
|
exportsOnly?: boolean | undefined;
|
2928
2866
|
esModule?: boolean | undefined;
|
@@ -2935,6 +2873,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2935
2873
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
2936
2874
|
localIdentName?: string | undefined;
|
2937
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;
|
2938
2888
|
json?: {
|
2939
2889
|
JSONParse?: boolean | undefined;
|
2940
2890
|
} | undefined;
|
@@ -2948,13 +2898,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2948
2898
|
}, ...args: unknown[]) => string) | undefined;
|
2949
2899
|
} | undefined;
|
2950
2900
|
"asset/resource"?: {
|
2901
|
+
emit?: boolean | undefined;
|
2951
2902
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2952
2903
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2953
|
-
emit?: boolean | undefined;
|
2954
2904
|
} | undefined;
|
2955
2905
|
} | undefined;
|
2956
|
-
rules?: (false | "" | 0 | t.RuleSetRule |
|
2957
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule |
|
2906
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
2907
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
2958
2908
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
2959
2909
|
}>>;
|
2960
2910
|
profile: z.ZodOptional<z.ZodBoolean>;
|
@@ -2983,11 +2933,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2983
2933
|
css?: {
|
2984
2934
|
namedExports?: boolean | undefined;
|
2985
2935
|
} | undefined;
|
2986
|
-
asset?: {
|
2987
|
-
dataUrlCondition?: {
|
2988
|
-
maxSize?: number | undefined;
|
2989
|
-
} | undefined;
|
2990
|
-
} | undefined;
|
2991
2936
|
"css/auto"?: {
|
2992
2937
|
namedExports?: boolean | undefined;
|
2993
2938
|
} | undefined;
|
@@ -3015,6 +2960,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3015
2960
|
requireResolve?: boolean | undefined;
|
3016
2961
|
importDynamic?: boolean | undefined;
|
3017
2962
|
} | undefined;
|
2963
|
+
asset?: {
|
2964
|
+
dataUrlCondition?: {
|
2965
|
+
maxSize?: number | undefined;
|
2966
|
+
} | undefined;
|
2967
|
+
} | undefined;
|
3018
2968
|
"javascript/auto"?: {
|
3019
2969
|
url?: boolean | "relative" | undefined;
|
3020
2970
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -3084,18 +3034,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3084
3034
|
exportsOnly?: boolean | undefined;
|
3085
3035
|
esModule?: boolean | undefined;
|
3086
3036
|
} | undefined;
|
3087
|
-
asset?: {
|
3088
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3089
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3090
|
-
emit?: boolean | undefined;
|
3091
|
-
dataUrl?: {
|
3092
|
-
mimetype?: string | undefined;
|
3093
|
-
encoding?: false | "base64" | undefined;
|
3094
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3095
|
-
module: Module;
|
3096
|
-
filename: string;
|
3097
|
-
}, ...args: unknown[]) => string) | undefined;
|
3098
|
-
} | undefined;
|
3099
3037
|
"css/auto"?: {
|
3100
3038
|
exportsOnly?: boolean | undefined;
|
3101
3039
|
esModule?: boolean | undefined;
|
@@ -3108,6 +3046,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3108
3046
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3109
3047
|
localIdentName?: string | undefined;
|
3110
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;
|
3111
3061
|
json?: {
|
3112
3062
|
JSONParse?: boolean | undefined;
|
3113
3063
|
} | undefined;
|
@@ -3121,19 +3071,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3121
3071
|
}, ...args: unknown[]) => string) | undefined;
|
3122
3072
|
} | undefined;
|
3123
3073
|
"asset/resource"?: {
|
3074
|
+
emit?: boolean | undefined;
|
3124
3075
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3125
3076
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3126
|
-
emit?: boolean | undefined;
|
3127
3077
|
} | undefined;
|
3128
3078
|
} | undefined;
|
3129
|
-
rules?: (false | "" | 0 | t.RuleSetRule |
|
3130
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule |
|
3079
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3080
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3131
3081
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3132
3082
|
} | undefined;
|
3133
3083
|
resolve?: t.ResolveOptions | undefined;
|
3134
3084
|
profile?: boolean | undefined;
|
3135
3085
|
cache?: boolean | undefined;
|
3086
|
+
context?: string | undefined;
|
3136
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;
|
3137
3090
|
node?: false | {
|
3138
3091
|
global?: boolean | "warn" | undefined;
|
3139
3092
|
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
@@ -3145,8 +3098,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3145
3098
|
maxAssetSize?: number | undefined;
|
3146
3099
|
maxEntrypointSize?: number | undefined;
|
3147
3100
|
} | undefined;
|
3148
|
-
|
3149
|
-
mode?: "development" | "production" | "none" | undefined;
|
3101
|
+
mode?: "none" | "development" | "production" | undefined;
|
3150
3102
|
experiments?: {
|
3151
3103
|
css?: boolean | undefined;
|
3152
3104
|
cache?: boolean | {
|
@@ -3167,31 +3119,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3167
3119
|
} | undefined;
|
3168
3120
|
lazyCompilation?: boolean | {
|
3169
3121
|
entries?: boolean | undefined;
|
3170
|
-
backend?: {
|
3171
|
-
client?: string | undefined;
|
3172
|
-
listen?: number | {
|
3173
|
-
port?: number | undefined;
|
3174
|
-
host?: string | undefined;
|
3175
|
-
backlog?: number | undefined;
|
3176
|
-
path?: string | undefined;
|
3177
|
-
exclusive?: boolean | undefined;
|
3178
|
-
readableAll?: boolean | undefined;
|
3179
|
-
writableAll?: boolean | undefined;
|
3180
|
-
ipv6Only?: boolean | undefined;
|
3181
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
3182
|
-
protocol?: "http" | "https" | undefined;
|
3183
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
3184
|
-
} | undefined;
|
3185
3122
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3186
3123
|
imports?: boolean | undefined;
|
3124
|
+
client?: string | undefined;
|
3125
|
+
serverUrl?: string | undefined;
|
3187
3126
|
} | undefined;
|
3188
3127
|
asyncWebAssembly?: boolean | undefined;
|
3189
3128
|
outputModule?: boolean | undefined;
|
3190
3129
|
topLevelAwait?: boolean | undefined;
|
3191
3130
|
layers?: boolean | undefined;
|
3192
3131
|
incremental?: boolean | {
|
3193
|
-
providedExports?: boolean | undefined;
|
3194
3132
|
make?: boolean | undefined;
|
3133
|
+
providedExports?: boolean | undefined;
|
3195
3134
|
sideEffects?: boolean | undefined;
|
3196
3135
|
moduleIds?: boolean | undefined;
|
3197
3136
|
chunkIds?: boolean | undefined;
|
@@ -3210,26 +3149,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3210
3149
|
futureDefaults?: boolean | undefined;
|
3211
3150
|
rspackFuture?: {
|
3212
3151
|
bundlerInfo?: {
|
3213
|
-
version?: string | undefined;
|
3214
3152
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3153
|
+
version?: string | undefined;
|
3215
3154
|
bundler?: string | undefined;
|
3216
3155
|
} | undefined;
|
3217
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;
|
3218
3168
|
} | undefined;
|
3219
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;
|
3220
|
-
|
3221
|
-
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;
|
3222
|
-
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" | {
|
3223
3171
|
ids?: boolean | undefined;
|
3224
3172
|
runtime?: boolean | undefined;
|
3225
3173
|
hash?: boolean | undefined;
|
3226
3174
|
modules?: boolean | undefined;
|
3227
|
-
all?: boolean | undefined;
|
3228
|
-
version?: boolean | undefined;
|
3229
3175
|
publicPath?: boolean | undefined;
|
3230
|
-
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3231
|
-
assets?: boolean | undefined;
|
3232
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;
|
3233
3183
|
entrypoints?: boolean | "auto" | undefined;
|
3234
3184
|
chunkGroups?: boolean | undefined;
|
3235
3185
|
warnings?: boolean | undefined;
|
@@ -3245,13 +3195,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3245
3195
|
builtAt?: boolean | undefined;
|
3246
3196
|
moduleAssets?: boolean | undefined;
|
3247
3197
|
nestedModules?: boolean | undefined;
|
3248
|
-
|
3249
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
3198
|
+
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
3250
3199
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3251
3200
|
loggingTrace?: boolean | undefined;
|
3252
3201
|
runtimeModules?: boolean | undefined;
|
3253
3202
|
children?: boolean | undefined;
|
3254
|
-
usedExports?: boolean | undefined;
|
3255
3203
|
providedExports?: boolean | undefined;
|
3256
3204
|
optimizationBailout?: boolean | undefined;
|
3257
3205
|
groupModulesByType?: boolean | undefined;
|
@@ -3301,11 +3249,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3301
3249
|
entry?: string | string[] | Record<string, string | string[] | {
|
3302
3250
|
import: string | string[];
|
3303
3251
|
runtime?: string | false | undefined;
|
3304
|
-
chunkLoading?: string | false | undefined;
|
3305
|
-
asyncChunks?: boolean | undefined;
|
3306
3252
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3253
|
+
layer?: string | null | undefined;
|
3307
3254
|
baseUri?: string | undefined;
|
3308
3255
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3256
|
+
chunkLoading?: string | false | undefined;
|
3257
|
+
asyncChunks?: boolean | undefined;
|
3309
3258
|
library?: {
|
3310
3259
|
type: string;
|
3311
3260
|
name?: string | string[] | {
|
@@ -3323,17 +3272,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3323
3272
|
export?: string | string[] | undefined;
|
3324
3273
|
umdNamedDefine?: boolean | undefined;
|
3325
3274
|
} | undefined;
|
3326
|
-
layer?: string | null | undefined;
|
3327
|
-
wasmLoading?: string | false | undefined;
|
3328
3275
|
dependOn?: string | string[] | undefined;
|
3276
|
+
wasmLoading?: string | false | undefined;
|
3329
3277
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
3330
3278
|
import: string | string[];
|
3331
3279
|
runtime?: string | false | undefined;
|
3332
|
-
chunkLoading?: string | false | undefined;
|
3333
|
-
asyncChunks?: boolean | undefined;
|
3334
3280
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3281
|
+
layer?: string | null | undefined;
|
3335
3282
|
baseUri?: string | undefined;
|
3336
3283
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3284
|
+
chunkLoading?: string | false | undefined;
|
3285
|
+
asyncChunks?: boolean | undefined;
|
3337
3286
|
library?: {
|
3338
3287
|
type: string;
|
3339
3288
|
name?: string | string[] | {
|
@@ -3351,17 +3300,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3351
3300
|
export?: string | string[] | undefined;
|
3352
3301
|
umdNamedDefine?: boolean | undefined;
|
3353
3302
|
} | undefined;
|
3354
|
-
layer?: string | null | undefined;
|
3355
|
-
wasmLoading?: string | false | undefined;
|
3356
3303
|
dependOn?: string | string[] | undefined;
|
3304
|
+
wasmLoading?: string | false | undefined;
|
3357
3305
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
3358
3306
|
import: string | string[];
|
3359
3307
|
runtime?: string | false | undefined;
|
3360
|
-
chunkLoading?: string | false | undefined;
|
3361
|
-
asyncChunks?: boolean | undefined;
|
3362
3308
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3309
|
+
layer?: string | null | undefined;
|
3363
3310
|
baseUri?: string | undefined;
|
3364
3311
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3312
|
+
chunkLoading?: string | false | undefined;
|
3313
|
+
asyncChunks?: boolean | undefined;
|
3365
3314
|
library?: {
|
3366
3315
|
type: string;
|
3367
3316
|
name?: string | string[] | {
|
@@ -3379,14 +3328,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3379
3328
|
export?: string | string[] | undefined;
|
3380
3329
|
umdNamedDefine?: boolean | undefined;
|
3381
3330
|
} | undefined;
|
3382
|
-
layer?: string | null | undefined;
|
3383
|
-
wasmLoading?: string | false | undefined;
|
3384
3331
|
dependOn?: string | string[] | undefined;
|
3332
|
+
wasmLoading?: string | false | undefined;
|
3385
3333
|
}>>) | undefined;
|
3386
3334
|
infrastructureLogging?: {
|
3387
3335
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3388
3336
|
colors?: boolean | undefined;
|
3389
|
-
level?: "error" | "warn" | "info" | "log" | "
|
3337
|
+
level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
3390
3338
|
console?: Console | undefined;
|
3391
3339
|
appendOnly?: boolean | undefined;
|
3392
3340
|
stream?: NodeJS.WritableStream | undefined;
|
@@ -3396,11 +3344,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3396
3344
|
extends?: string | string[] | undefined;
|
3397
3345
|
output?: {
|
3398
3346
|
module?: boolean | undefined;
|
3399
|
-
|
3400
|
-
|
3401
|
-
|
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;
|
3402
3363
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3403
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;
|
3404
3368
|
library?: string | string[] | {
|
3405
3369
|
commonjs?: string | undefined;
|
3406
3370
|
amd?: string | undefined;
|
@@ -3422,6 +3386,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3422
3386
|
export?: string | string[] | undefined;
|
3423
3387
|
umdNamedDefine?: boolean | undefined;
|
3424
3388
|
} | undefined;
|
3389
|
+
path?: string | undefined;
|
3425
3390
|
wasmLoading?: string | false | undefined;
|
3426
3391
|
cssHeadDataCompression?: boolean | undefined;
|
3427
3392
|
auxiliaryComment?: string | {
|
@@ -3431,23 +3396,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3431
3396
|
root?: string | undefined;
|
3432
3397
|
} | undefined;
|
3433
3398
|
umdNamedDefine?: boolean | undefined;
|
3434
|
-
environment?: {
|
3435
|
-
module?: boolean | undefined;
|
3436
|
-
arrowFunction?: boolean | undefined;
|
3437
|
-
asyncFunction?: boolean | undefined;
|
3438
|
-
bigIntLiteral?: boolean | undefined;
|
3439
|
-
const?: boolean | undefined;
|
3440
|
-
destructuring?: boolean | undefined;
|
3441
|
-
document?: boolean | undefined;
|
3442
|
-
dynamicImport?: boolean | undefined;
|
3443
|
-
dynamicImportInWorker?: boolean | undefined;
|
3444
|
-
forOf?: boolean | undefined;
|
3445
|
-
globalThis?: boolean | undefined;
|
3446
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
3447
|
-
optionalChaining?: boolean | undefined;
|
3448
|
-
templateLiteral?: boolean | undefined;
|
3449
|
-
} | undefined;
|
3450
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3451
3399
|
pathinfo?: boolean | "verbose" | undefined;
|
3452
3400
|
clean?: boolean | {
|
3453
3401
|
keep?: string | undefined;
|
@@ -3494,10 +3442,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3494
3442
|
charset?: boolean | undefined;
|
3495
3443
|
compareBeforeEmit?: boolean | undefined;
|
3496
3444
|
} | undefined;
|
3497
|
-
externalsType?: "module" | "
|
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;
|
3498
3446
|
externalsPresets?: {
|
3499
|
-
web?: boolean | undefined;
|
3500
3447
|
node?: boolean | undefined;
|
3448
|
+
web?: boolean | undefined;
|
3501
3449
|
nwjs?: boolean | undefined;
|
3502
3450
|
webAsync?: boolean | undefined;
|
3503
3451
|
electron?: boolean | undefined;
|
@@ -3515,32 +3463,29 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3515
3463
|
} | undefined;
|
3516
3464
|
watch?: boolean | undefined;
|
3517
3465
|
optimization?: {
|
3518
|
-
usedExports?: boolean | "global" | undefined;
|
3519
|
-
providedExports?: boolean | undefined;
|
3520
3466
|
splitChunks?: false | {
|
3521
3467
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
3522
3468
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3523
3469
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3524
|
-
usedExports?: boolean | undefined;
|
3525
3470
|
defaultSizeTypes?: string[] | undefined;
|
3526
3471
|
cacheGroups?: Record<string, false | {
|
3527
3472
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
3528
|
-
|
3473
|
+
priority?: number | undefined;
|
3529
3474
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
3475
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3530
3476
|
type?: string | RegExp | undefined;
|
3531
3477
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3532
|
-
usedExports?: boolean | undefined;
|
3533
|
-
defaultSizeTypes?: string[] | undefined;
|
3534
|
-
priority?: number | undefined;
|
3535
3478
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
3536
3479
|
moduleGraph: ModuleGraph;
|
3537
3480
|
chunkGraph: ChunkGraph;
|
3538
3481
|
}, ...args: unknown[]) => boolean) | undefined;
|
3482
|
+
defaultSizeTypes?: string[] | undefined;
|
3539
3483
|
minSize?: number | Record<string, number> | undefined;
|
3540
3484
|
maxSize?: number | Record<string, number> | undefined;
|
3541
3485
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
3542
3486
|
maxInitialSize?: number | Record<string, number> | undefined;
|
3543
3487
|
minChunks?: number | undefined;
|
3488
|
+
usedExports?: boolean | undefined;
|
3544
3489
|
maxAsyncRequests?: number | undefined;
|
3545
3490
|
maxInitialRequests?: number | undefined;
|
3546
3491
|
automaticNameDelimiter?: string | undefined;
|
@@ -3562,12 +3507,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3562
3507
|
maxInitialSize?: number | Record<string, number> | undefined;
|
3563
3508
|
hidePathInfo?: boolean | undefined;
|
3564
3509
|
minChunks?: number | undefined;
|
3510
|
+
usedExports?: boolean | undefined;
|
3565
3511
|
maxAsyncRequests?: number | undefined;
|
3566
3512
|
maxInitialRequests?: number | undefined;
|
3567
3513
|
automaticNameDelimiter?: string | undefined;
|
3568
3514
|
} | undefined;
|
3515
|
+
usedExports?: boolean | "global" | undefined;
|
3516
|
+
providedExports?: boolean | undefined;
|
3569
3517
|
minimize?: boolean | undefined;
|
3570
|
-
minimizer?: (false | "" | 0 | "..." | t.
|
3518
|
+
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3571
3519
|
sideEffects?: boolean | "flag" | undefined;
|
3572
3520
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
3573
3521
|
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
@@ -3598,11 +3546,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3598
3546
|
css?: {
|
3599
3547
|
namedExports?: boolean | undefined;
|
3600
3548
|
} | undefined;
|
3601
|
-
asset?: {
|
3602
|
-
dataUrlCondition?: {
|
3603
|
-
maxSize?: number | undefined;
|
3604
|
-
} | undefined;
|
3605
|
-
} | undefined;
|
3606
3549
|
"css/auto"?: {
|
3607
3550
|
namedExports?: boolean | undefined;
|
3608
3551
|
} | undefined;
|
@@ -3630,6 +3573,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3630
3573
|
requireResolve?: boolean | undefined;
|
3631
3574
|
importDynamic?: boolean | undefined;
|
3632
3575
|
} | undefined;
|
3576
|
+
asset?: {
|
3577
|
+
dataUrlCondition?: {
|
3578
|
+
maxSize?: number | undefined;
|
3579
|
+
} | undefined;
|
3580
|
+
} | undefined;
|
3633
3581
|
"javascript/auto"?: {
|
3634
3582
|
url?: boolean | "relative" | undefined;
|
3635
3583
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
@@ -3699,18 +3647,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3699
3647
|
exportsOnly?: boolean | undefined;
|
3700
3648
|
esModule?: boolean | undefined;
|
3701
3649
|
} | undefined;
|
3702
|
-
asset?: {
|
3703
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3704
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3705
|
-
emit?: boolean | undefined;
|
3706
|
-
dataUrl?: {
|
3707
|
-
mimetype?: string | undefined;
|
3708
|
-
encoding?: false | "base64" | undefined;
|
3709
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3710
|
-
module: Module;
|
3711
|
-
filename: string;
|
3712
|
-
}, ...args: unknown[]) => string) | undefined;
|
3713
|
-
} | undefined;
|
3714
3650
|
"css/auto"?: {
|
3715
3651
|
exportsOnly?: boolean | undefined;
|
3716
3652
|
esModule?: boolean | undefined;
|
@@ -3723,6 +3659,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3723
3659
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3724
3660
|
localIdentName?: string | undefined;
|
3725
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;
|
3726
3674
|
json?: {
|
3727
3675
|
JSONParse?: boolean | undefined;
|
3728
3676
|
} | undefined;
|
@@ -3736,19 +3684,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3736
3684
|
}, ...args: unknown[]) => string) | undefined;
|
3737
3685
|
} | undefined;
|
3738
3686
|
"asset/resource"?: {
|
3687
|
+
emit?: boolean | undefined;
|
3739
3688
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3740
3689
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3741
|
-
emit?: boolean | undefined;
|
3742
3690
|
} | undefined;
|
3743
3691
|
} | undefined;
|
3744
|
-
rules?: (false | "" | 0 | t.RuleSetRule |
|
3745
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule |
|
3692
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3693
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3746
3694
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3747
3695
|
} | undefined;
|
3748
3696
|
resolve?: t.ResolveOptions | undefined;
|
3749
3697
|
profile?: boolean | undefined;
|
3750
3698
|
cache?: boolean | undefined;
|
3699
|
+
context?: string | undefined;
|
3751
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;
|
3752
3703
|
node?: false | {
|
3753
3704
|
global?: boolean | "warn" | undefined;
|
3754
3705
|
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
@@ -3760,8 +3711,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3760
3711
|
maxAssetSize?: number | undefined;
|
3761
3712
|
maxEntrypointSize?: number | undefined;
|
3762
3713
|
} | undefined;
|
3763
|
-
|
3764
|
-
mode?: "development" | "production" | "none" | undefined;
|
3714
|
+
mode?: "none" | "development" | "production" | undefined;
|
3765
3715
|
experiments?: {
|
3766
3716
|
css?: boolean | undefined;
|
3767
3717
|
cache?: boolean | {
|
@@ -3782,31 +3732,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3782
3732
|
} | undefined;
|
3783
3733
|
lazyCompilation?: boolean | {
|
3784
3734
|
entries?: boolean | undefined;
|
3785
|
-
backend?: {
|
3786
|
-
client?: string | undefined;
|
3787
|
-
listen?: number | {
|
3788
|
-
port?: number | undefined;
|
3789
|
-
host?: string | undefined;
|
3790
|
-
backlog?: number | undefined;
|
3791
|
-
path?: string | undefined;
|
3792
|
-
exclusive?: boolean | undefined;
|
3793
|
-
readableAll?: boolean | undefined;
|
3794
|
-
writableAll?: boolean | undefined;
|
3795
|
-
ipv6Only?: boolean | undefined;
|
3796
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
3797
|
-
protocol?: "http" | "https" | undefined;
|
3798
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
3799
|
-
} | undefined;
|
3800
3735
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3801
3736
|
imports?: boolean | undefined;
|
3737
|
+
client?: string | undefined;
|
3738
|
+
serverUrl?: string | undefined;
|
3802
3739
|
} | undefined;
|
3803
3740
|
asyncWebAssembly?: boolean | undefined;
|
3804
3741
|
outputModule?: boolean | undefined;
|
3805
3742
|
topLevelAwait?: boolean | undefined;
|
3806
3743
|
layers?: boolean | undefined;
|
3807
3744
|
incremental?: boolean | {
|
3808
|
-
providedExports?: boolean | undefined;
|
3809
3745
|
make?: boolean | undefined;
|
3746
|
+
providedExports?: boolean | undefined;
|
3810
3747
|
sideEffects?: boolean | undefined;
|
3811
3748
|
moduleIds?: boolean | undefined;
|
3812
3749
|
chunkIds?: boolean | undefined;
|
@@ -3825,26 +3762,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3825
3762
|
futureDefaults?: boolean | undefined;
|
3826
3763
|
rspackFuture?: {
|
3827
3764
|
bundlerInfo?: {
|
3828
|
-
version?: string | undefined;
|
3829
3765
|
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3766
|
+
version?: string | undefined;
|
3830
3767
|
bundler?: string | undefined;
|
3831
3768
|
} | undefined;
|
3832
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;
|
3833
3781
|
} | undefined;
|
3834
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;
|
3835
|
-
|
3836
|
-
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;
|
3837
|
-
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" | {
|
3838
3784
|
ids?: boolean | undefined;
|
3839
3785
|
runtime?: boolean | undefined;
|
3840
3786
|
hash?: boolean | undefined;
|
3841
3787
|
modules?: boolean | undefined;
|
3842
|
-
all?: boolean | undefined;
|
3843
|
-
version?: boolean | undefined;
|
3844
3788
|
publicPath?: boolean | undefined;
|
3845
|
-
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3846
|
-
assets?: boolean | undefined;
|
3847
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;
|
3848
3796
|
entrypoints?: boolean | "auto" | undefined;
|
3849
3797
|
chunkGroups?: boolean | undefined;
|
3850
3798
|
warnings?: boolean | undefined;
|
@@ -3860,13 +3808,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3860
3808
|
builtAt?: boolean | undefined;
|
3861
3809
|
moduleAssets?: boolean | undefined;
|
3862
3810
|
nestedModules?: boolean | undefined;
|
3863
|
-
|
3864
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
3811
|
+
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
3865
3812
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3866
3813
|
loggingTrace?: boolean | undefined;
|
3867
3814
|
runtimeModules?: boolean | undefined;
|
3868
3815
|
children?: boolean | undefined;
|
3869
|
-
usedExports?: boolean | undefined;
|
3870
3816
|
providedExports?: boolean | undefined;
|
3871
3817
|
optimizationBailout?: boolean | undefined;
|
3872
3818
|
groupModulesByType?: boolean | undefined;
|
@@ -3916,11 +3862,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3916
3862
|
entry?: string | string[] | Record<string, string | string[] | {
|
3917
3863
|
import: string | string[];
|
3918
3864
|
runtime?: string | false | undefined;
|
3919
|
-
chunkLoading?: string | false | undefined;
|
3920
|
-
asyncChunks?: boolean | undefined;
|
3921
3865
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3866
|
+
layer?: string | null | undefined;
|
3922
3867
|
baseUri?: string | undefined;
|
3923
3868
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3869
|
+
chunkLoading?: string | false | undefined;
|
3870
|
+
asyncChunks?: boolean | undefined;
|
3924
3871
|
library?: {
|
3925
3872
|
type: string;
|
3926
3873
|
name?: string | string[] | {
|
@@ -3938,17 +3885,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3938
3885
|
export?: string | string[] | undefined;
|
3939
3886
|
umdNamedDefine?: boolean | undefined;
|
3940
3887
|
} | undefined;
|
3941
|
-
layer?: string | null | undefined;
|
3942
|
-
wasmLoading?: string | false | undefined;
|
3943
3888
|
dependOn?: string | string[] | undefined;
|
3889
|
+
wasmLoading?: string | false | undefined;
|
3944
3890
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
3945
3891
|
import: string | string[];
|
3946
3892
|
runtime?: string | false | undefined;
|
3947
|
-
chunkLoading?: string | false | undefined;
|
3948
|
-
asyncChunks?: boolean | undefined;
|
3949
3893
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3894
|
+
layer?: string | null | undefined;
|
3950
3895
|
baseUri?: string | undefined;
|
3951
3896
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3897
|
+
chunkLoading?: string | false | undefined;
|
3898
|
+
asyncChunks?: boolean | undefined;
|
3952
3899
|
library?: {
|
3953
3900
|
type: string;
|
3954
3901
|
name?: string | string[] | {
|
@@ -3966,17 +3913,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3966
3913
|
export?: string | string[] | undefined;
|
3967
3914
|
umdNamedDefine?: boolean | undefined;
|
3968
3915
|
} | undefined;
|
3969
|
-
layer?: string | null | undefined;
|
3970
|
-
wasmLoading?: string | false | undefined;
|
3971
3916
|
dependOn?: string | string[] | undefined;
|
3917
|
+
wasmLoading?: string | false | undefined;
|
3972
3918
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
3973
3919
|
import: string | string[];
|
3974
3920
|
runtime?: string | false | undefined;
|
3975
|
-
chunkLoading?: string | false | undefined;
|
3976
|
-
asyncChunks?: boolean | undefined;
|
3977
3921
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3922
|
+
layer?: string | null | undefined;
|
3978
3923
|
baseUri?: string | undefined;
|
3979
3924
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3925
|
+
chunkLoading?: string | false | undefined;
|
3926
|
+
asyncChunks?: boolean | undefined;
|
3980
3927
|
library?: {
|
3981
3928
|
type: string;
|
3982
3929
|
name?: string | string[] | {
|
@@ -3994,14 +3941,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3994
3941
|
export?: string | string[] | undefined;
|
3995
3942
|
umdNamedDefine?: boolean | undefined;
|
3996
3943
|
} | undefined;
|
3997
|
-
layer?: string | null | undefined;
|
3998
|
-
wasmLoading?: string | false | undefined;
|
3999
3944
|
dependOn?: string | string[] | undefined;
|
3945
|
+
wasmLoading?: string | false | undefined;
|
4000
3946
|
}>>) | undefined;
|
4001
3947
|
infrastructureLogging?: {
|
4002
3948
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
4003
3949
|
colors?: boolean | undefined;
|
4004
|
-
level?: "error" | "warn" | "info" | "log" | "
|
3950
|
+
level?: "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
4005
3951
|
console?: Console | undefined;
|
4006
3952
|
appendOnly?: boolean | undefined;
|
4007
3953
|
stream?: NodeJS.WritableStream | undefined;
|
@@ -4011,11 +3957,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4011
3957
|
extends?: string | string[] | undefined;
|
4012
3958
|
output?: {
|
4013
3959
|
module?: boolean | undefined;
|
4014
|
-
|
4015
|
-
|
4016
|
-
|
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;
|
4017
3976
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4018
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;
|
4019
3981
|
library?: string | string[] | {
|
4020
3982
|
commonjs?: string | undefined;
|
4021
3983
|
amd?: string | undefined;
|
@@ -4037,6 +3999,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4037
3999
|
export?: string | string[] | undefined;
|
4038
4000
|
umdNamedDefine?: boolean | undefined;
|
4039
4001
|
} | undefined;
|
4002
|
+
path?: string | undefined;
|
4040
4003
|
wasmLoading?: string | false | undefined;
|
4041
4004
|
cssHeadDataCompression?: boolean | undefined;
|
4042
4005
|
auxiliaryComment?: string | {
|
@@ -4046,23 +4009,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4046
4009
|
root?: string | undefined;
|
4047
4010
|
} | undefined;
|
4048
4011
|
umdNamedDefine?: boolean | undefined;
|
4049
|
-
environment?: {
|
4050
|
-
module?: boolean | undefined;
|
4051
|
-
arrowFunction?: boolean | undefined;
|
4052
|
-
asyncFunction?: boolean | undefined;
|
4053
|
-
bigIntLiteral?: boolean | undefined;
|
4054
|
-
const?: boolean | undefined;
|
4055
|
-
destructuring?: boolean | undefined;
|
4056
|
-
document?: boolean | undefined;
|
4057
|
-
dynamicImport?: boolean | undefined;
|
4058
|
-
dynamicImportInWorker?: boolean | undefined;
|
4059
|
-
forOf?: boolean | undefined;
|
4060
|
-
globalThis?: boolean | undefined;
|
4061
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
4062
|
-
optionalChaining?: boolean | undefined;
|
4063
|
-
templateLiteral?: boolean | undefined;
|
4064
|
-
} | undefined;
|
4065
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4066
4012
|
pathinfo?: boolean | "verbose" | undefined;
|
4067
4013
|
clean?: boolean | {
|
4068
4014
|
keep?: string | undefined;
|
@@ -4109,10 +4055,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4109
4055
|
charset?: boolean | undefined;
|
4110
4056
|
compareBeforeEmit?: boolean | undefined;
|
4111
4057
|
} | undefined;
|
4112
|
-
externalsType?: "module" | "
|
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;
|
4113
4059
|
externalsPresets?: {
|
4114
|
-
web?: boolean | undefined;
|
4115
4060
|
node?: boolean | undefined;
|
4061
|
+
web?: boolean | undefined;
|
4116
4062
|
nwjs?: boolean | undefined;
|
4117
4063
|
webAsync?: boolean | undefined;
|
4118
4064
|
electron?: boolean | undefined;
|
@@ -4130,32 +4076,29 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4130
4076
|
} | undefined;
|
4131
4077
|
watch?: boolean | undefined;
|
4132
4078
|
optimization?: {
|
4133
|
-
usedExports?: boolean | "global" | undefined;
|
4134
|
-
providedExports?: boolean | undefined;
|
4135
4079
|
splitChunks?: false | {
|
4136
4080
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
4137
4081
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4138
4082
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4139
|
-
usedExports?: boolean | undefined;
|
4140
4083
|
defaultSizeTypes?: string[] | undefined;
|
4141
4084
|
cacheGroups?: Record<string, false | {
|
4142
4085
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
4143
|
-
|
4086
|
+
priority?: number | undefined;
|
4144
4087
|
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
4088
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4145
4089
|
type?: string | RegExp | undefined;
|
4146
4090
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4147
|
-
usedExports?: boolean | undefined;
|
4148
|
-
defaultSizeTypes?: string[] | undefined;
|
4149
|
-
priority?: number | undefined;
|
4150
4091
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
4151
4092
|
moduleGraph: ModuleGraph;
|
4152
4093
|
chunkGraph: ChunkGraph;
|
4153
4094
|
}, ...args: unknown[]) => boolean) | undefined;
|
4095
|
+
defaultSizeTypes?: string[] | undefined;
|
4154
4096
|
minSize?: number | Record<string, number> | undefined;
|
4155
4097
|
maxSize?: number | Record<string, number> | undefined;
|
4156
4098
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
4157
4099
|
maxInitialSize?: number | Record<string, number> | undefined;
|
4158
4100
|
minChunks?: number | undefined;
|
4101
|
+
usedExports?: boolean | undefined;
|
4159
4102
|
maxAsyncRequests?: number | undefined;
|
4160
4103
|
maxInitialRequests?: number | undefined;
|
4161
4104
|
automaticNameDelimiter?: string | undefined;
|
@@ -4177,12 +4120,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4177
4120
|
maxInitialSize?: number | Record<string, number> | undefined;
|
4178
4121
|
hidePathInfo?: boolean | undefined;
|
4179
4122
|
minChunks?: number | undefined;
|
4123
|
+
usedExports?: boolean | undefined;
|
4180
4124
|
maxAsyncRequests?: number | undefined;
|
4181
4125
|
maxInitialRequests?: number | undefined;
|
4182
4126
|
automaticNameDelimiter?: string | undefined;
|
4183
4127
|
} | undefined;
|
4128
|
+
usedExports?: boolean | "global" | undefined;
|
4129
|
+
providedExports?: boolean | undefined;
|
4184
4130
|
minimize?: boolean | undefined;
|
4185
|
-
minimizer?: (false | "" | 0 | "..." | t.
|
4131
|
+
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
4186
4132
|
sideEffects?: boolean | "flag" | undefined;
|
4187
4133
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
4188
4134
|
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|