@rspack/core 1.2.7 → 1.3.0-beta.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/compiled/@swc/types/index.d.ts +9 -2
- package/compiled/@swc/types/package.json +1 -1
- package/dist/ChunkGraph.d.ts +3 -4
- package/dist/ChunkGroup.d.ts +1 -1
- package/dist/Compilation.d.ts +2 -2
- package/dist/ConcatenatedModule.d.ts +1 -0
- package/dist/ContextModule.d.ts +1 -0
- package/dist/Entrypoint.d.ts +1 -0
- package/dist/ExternalModule.d.ts +1 -0
- package/dist/Module.d.ts +15 -51
- package/dist/ModuleGraph.d.ts +1 -1
- package/dist/ModuleGraphConnection.d.ts +1 -1
- package/dist/NormalModule.d.ts +10 -7
- package/dist/Resolver.d.ts +2 -0
- 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/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/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 +10 -0
- 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/options.d.ts +4 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +16 -19
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +5 -4
- package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +3 -3
- package/dist/config/adapterRuleUse.d.ts +1 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/types.d.ts +17 -1
- package/dist/config/zod.d.ts +384 -356
- package/dist/container/ModuleFederationPluginV1.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +4 -1
- package/dist/index.js +2154 -2197
- package/package.json +9 -9
- package/dist/DependenciesBlock.d.ts +0 -9
package/dist/config/zod.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const externalsType: z.ZodEnum<["var", "module", "assign", "this"
|
|
|
11
11
|
export declare const rspackOptions: z.ZodObject<{
|
|
12
12
|
name: z.ZodOptional<z.ZodString>;
|
|
13
13
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
+
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
14
15
|
entry: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
15
16
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
16
17
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
@@ -91,7 +92,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
91
92
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
92
93
|
}, "strict", z.ZodTypeAny, {
|
|
93
94
|
import: string | string[];
|
|
94
|
-
layer?: string | null | undefined;
|
|
95
95
|
runtime?: string | false | undefined;
|
|
96
96
|
chunkLoading?: string | false | undefined;
|
|
97
97
|
asyncChunks?: boolean | undefined;
|
|
@@ -115,11 +115,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
115
115
|
export?: string | string[] | undefined;
|
|
116
116
|
umdNamedDefine?: boolean | undefined;
|
|
117
117
|
} | undefined;
|
|
118
|
+
layer?: string | null | undefined;
|
|
118
119
|
wasmLoading?: string | false | undefined;
|
|
119
120
|
dependOn?: string | string[] | undefined;
|
|
120
121
|
}, {
|
|
121
122
|
import: string | string[];
|
|
122
|
-
layer?: string | null | undefined;
|
|
123
123
|
runtime?: string | false | undefined;
|
|
124
124
|
chunkLoading?: string | false | undefined;
|
|
125
125
|
asyncChunks?: boolean | undefined;
|
|
@@ -143,6 +143,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
143
143
|
export?: string | string[] | undefined;
|
|
144
144
|
umdNamedDefine?: boolean | undefined;
|
|
145
145
|
} | undefined;
|
|
146
|
+
layer?: string | null | undefined;
|
|
146
147
|
wasmLoading?: string | false | undefined;
|
|
147
148
|
dependOn?: string | string[] | undefined;
|
|
148
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<{
|
|
@@ -225,7 +226,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
225
226
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
226
227
|
}, "strict", z.ZodTypeAny, {
|
|
227
228
|
import: string | string[];
|
|
228
|
-
layer?: string | null | undefined;
|
|
229
229
|
runtime?: string | false | undefined;
|
|
230
230
|
chunkLoading?: string | false | undefined;
|
|
231
231
|
asyncChunks?: boolean | undefined;
|
|
@@ -249,11 +249,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
249
249
|
export?: string | string[] | undefined;
|
|
250
250
|
umdNamedDefine?: boolean | undefined;
|
|
251
251
|
} | undefined;
|
|
252
|
+
layer?: string | null | undefined;
|
|
252
253
|
wasmLoading?: string | false | undefined;
|
|
253
254
|
dependOn?: string | string[] | undefined;
|
|
254
255
|
}, {
|
|
255
256
|
import: string | string[];
|
|
256
|
-
layer?: string | null | undefined;
|
|
257
257
|
runtime?: string | false | undefined;
|
|
258
258
|
chunkLoading?: string | false | undefined;
|
|
259
259
|
asyncChunks?: boolean | undefined;
|
|
@@ -277,6 +277,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
277
277
|
export?: string | string[] | undefined;
|
|
278
278
|
umdNamedDefine?: boolean | undefined;
|
|
279
279
|
} | undefined;
|
|
280
|
+
layer?: string | null | undefined;
|
|
280
281
|
wasmLoading?: string | false | undefined;
|
|
281
282
|
dependOn?: string | string[] | undefined;
|
|
282
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<{
|
|
@@ -359,7 +360,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
359
360
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
360
361
|
}, "strict", z.ZodTypeAny, {
|
|
361
362
|
import: string | string[];
|
|
362
|
-
layer?: string | null | undefined;
|
|
363
363
|
runtime?: string | false | undefined;
|
|
364
364
|
chunkLoading?: string | false | undefined;
|
|
365
365
|
asyncChunks?: boolean | undefined;
|
|
@@ -383,11 +383,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
383
383
|
export?: string | string[] | undefined;
|
|
384
384
|
umdNamedDefine?: boolean | undefined;
|
|
385
385
|
} | undefined;
|
|
386
|
+
layer?: string | null | undefined;
|
|
386
387
|
wasmLoading?: string | false | undefined;
|
|
387
388
|
dependOn?: string | string[] | undefined;
|
|
388
389
|
}, {
|
|
389
390
|
import: string | string[];
|
|
390
|
-
layer?: string | null | undefined;
|
|
391
391
|
runtime?: string | false | undefined;
|
|
392
392
|
chunkLoading?: string | false | undefined;
|
|
393
393
|
asyncChunks?: boolean | undefined;
|
|
@@ -411,6 +411,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
411
411
|
export?: string | string[] | undefined;
|
|
412
412
|
umdNamedDefine?: boolean | undefined;
|
|
413
413
|
} | undefined;
|
|
414
|
+
layer?: string | null | undefined;
|
|
414
415
|
wasmLoading?: string | false | undefined;
|
|
415
416
|
dependOn?: string | string[] | undefined;
|
|
416
417
|
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>]>>]>>;
|
|
@@ -591,34 +592,34 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
591
592
|
templateLiteral: z.ZodOptional<z.ZodBoolean>;
|
|
592
593
|
}, "strict", z.ZodTypeAny, {
|
|
593
594
|
module?: boolean | undefined;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
globalThis?: boolean | undefined;
|
|
595
|
+
arrowFunction?: boolean | undefined;
|
|
596
|
+
asyncFunction?: boolean | undefined;
|
|
597
597
|
bigIntLiteral?: boolean | undefined;
|
|
598
598
|
const?: boolean | undefined;
|
|
599
|
-
arrowFunction?: boolean | undefined;
|
|
600
|
-
forOf?: boolean | undefined;
|
|
601
599
|
destructuring?: boolean | undefined;
|
|
600
|
+
document?: boolean | undefined;
|
|
602
601
|
dynamicImport?: boolean | undefined;
|
|
603
602
|
dynamicImportInWorker?: boolean | undefined;
|
|
603
|
+
forOf?: boolean | undefined;
|
|
604
|
+
globalThis?: boolean | undefined;
|
|
605
|
+
nodePrefixForCoreModules?: boolean | undefined;
|
|
604
606
|
optionalChaining?: boolean | undefined;
|
|
605
607
|
templateLiteral?: boolean | undefined;
|
|
606
|
-
asyncFunction?: boolean | undefined;
|
|
607
608
|
}, {
|
|
608
609
|
module?: boolean | undefined;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
globalThis?: boolean | undefined;
|
|
610
|
+
arrowFunction?: boolean | undefined;
|
|
611
|
+
asyncFunction?: boolean | undefined;
|
|
612
612
|
bigIntLiteral?: boolean | undefined;
|
|
613
613
|
const?: boolean | undefined;
|
|
614
|
-
arrowFunction?: boolean | undefined;
|
|
615
|
-
forOf?: boolean | undefined;
|
|
616
614
|
destructuring?: boolean | undefined;
|
|
615
|
+
document?: boolean | undefined;
|
|
617
616
|
dynamicImport?: boolean | undefined;
|
|
618
617
|
dynamicImportInWorker?: boolean | undefined;
|
|
618
|
+
forOf?: boolean | undefined;
|
|
619
|
+
globalThis?: boolean | undefined;
|
|
620
|
+
nodePrefixForCoreModules?: boolean | undefined;
|
|
619
621
|
optionalChaining?: boolean | undefined;
|
|
620
622
|
templateLiteral?: boolean | undefined;
|
|
621
|
-
asyncFunction?: boolean | undefined;
|
|
622
623
|
}>>;
|
|
623
624
|
compareBeforeEmit: z.ZodOptional<z.ZodBoolean>;
|
|
624
625
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -658,11 +659,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
658
659
|
root?: string | undefined;
|
|
659
660
|
} | undefined;
|
|
660
661
|
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;
|
|
661
679
|
pathinfo?: boolean | "verbose" | undefined;
|
|
662
680
|
clean?: boolean | {
|
|
663
681
|
keep?: string | undefined;
|
|
664
682
|
} | undefined;
|
|
665
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
666
683
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
667
684
|
cssFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
668
685
|
cssChunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -673,6 +690,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
673
690
|
uniqueName?: string | undefined;
|
|
674
691
|
chunkLoadingGlobal?: string | undefined;
|
|
675
692
|
enabledLibraryTypes?: string[] | undefined;
|
|
693
|
+
libraryExport?: string | string[] | undefined;
|
|
694
|
+
libraryTarget?: string | undefined;
|
|
695
|
+
strictModuleExceptionHandling?: boolean | undefined;
|
|
676
696
|
strictModuleErrorHandling?: boolean | undefined;
|
|
677
697
|
globalObject?: string | undefined;
|
|
678
698
|
importFunctionName?: string | undefined;
|
|
@@ -698,28 +718,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
698
718
|
devtoolNamespace?: string | undefined;
|
|
699
719
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
700
720
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
701
|
-
environment?: {
|
|
702
|
-
module?: boolean | undefined;
|
|
703
|
-
document?: boolean | undefined;
|
|
704
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
|
705
|
-
globalThis?: boolean | undefined;
|
|
706
|
-
bigIntLiteral?: boolean | undefined;
|
|
707
|
-
const?: boolean | undefined;
|
|
708
|
-
arrowFunction?: boolean | undefined;
|
|
709
|
-
forOf?: boolean | undefined;
|
|
710
|
-
destructuring?: boolean | undefined;
|
|
711
|
-
dynamicImport?: boolean | undefined;
|
|
712
|
-
dynamicImportInWorker?: boolean | undefined;
|
|
713
|
-
optionalChaining?: boolean | undefined;
|
|
714
|
-
templateLiteral?: boolean | undefined;
|
|
715
|
-
asyncFunction?: boolean | undefined;
|
|
716
|
-
} | undefined;
|
|
717
|
-
charset?: boolean | undefined;
|
|
718
721
|
chunkLoadTimeout?: number | undefined;
|
|
722
|
+
charset?: boolean | undefined;
|
|
719
723
|
compareBeforeEmit?: boolean | undefined;
|
|
720
|
-
libraryExport?: string | string[] | undefined;
|
|
721
|
-
libraryTarget?: string | undefined;
|
|
722
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
723
724
|
}, {
|
|
724
725
|
module?: boolean | undefined;
|
|
725
726
|
path?: string | undefined;
|
|
@@ -757,11 +758,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
757
758
|
root?: string | undefined;
|
|
758
759
|
} | undefined;
|
|
759
760
|
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;
|
|
760
778
|
pathinfo?: boolean | "verbose" | undefined;
|
|
761
779
|
clean?: boolean | {
|
|
762
780
|
keep?: string | undefined;
|
|
763
781
|
} | undefined;
|
|
764
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
765
782
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
766
783
|
cssFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
767
784
|
cssChunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -772,6 +789,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
772
789
|
uniqueName?: string | undefined;
|
|
773
790
|
chunkLoadingGlobal?: string | undefined;
|
|
774
791
|
enabledLibraryTypes?: string[] | undefined;
|
|
792
|
+
libraryExport?: string | string[] | undefined;
|
|
793
|
+
libraryTarget?: string | undefined;
|
|
794
|
+
strictModuleExceptionHandling?: boolean | undefined;
|
|
775
795
|
strictModuleErrorHandling?: boolean | undefined;
|
|
776
796
|
globalObject?: string | undefined;
|
|
777
797
|
importFunctionName?: string | undefined;
|
|
@@ -797,28 +817,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
797
817
|
devtoolNamespace?: string | undefined;
|
|
798
818
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
799
819
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
800
|
-
environment?: {
|
|
801
|
-
module?: boolean | undefined;
|
|
802
|
-
document?: boolean | undefined;
|
|
803
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
|
804
|
-
globalThis?: boolean | undefined;
|
|
805
|
-
bigIntLiteral?: boolean | undefined;
|
|
806
|
-
const?: boolean | undefined;
|
|
807
|
-
arrowFunction?: boolean | undefined;
|
|
808
|
-
forOf?: boolean | undefined;
|
|
809
|
-
destructuring?: boolean | undefined;
|
|
810
|
-
dynamicImport?: boolean | undefined;
|
|
811
|
-
dynamicImportInWorker?: boolean | undefined;
|
|
812
|
-
optionalChaining?: boolean | undefined;
|
|
813
|
-
templateLiteral?: boolean | undefined;
|
|
814
|
-
asyncFunction?: boolean | undefined;
|
|
815
|
-
} | undefined;
|
|
816
|
-
charset?: boolean | undefined;
|
|
817
820
|
chunkLoadTimeout?: number | undefined;
|
|
821
|
+
charset?: boolean | undefined;
|
|
818
822
|
compareBeforeEmit?: boolean | undefined;
|
|
819
|
-
libraryExport?: string | string[] | undefined;
|
|
820
|
-
libraryTarget?: string | undefined;
|
|
821
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
822
823
|
}>>;
|
|
823
824
|
target: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, "many">]>>;
|
|
824
825
|
mode: z.ZodOptional<z.ZodEnum<["development", "production", "none"]>>;
|
|
@@ -859,12 +860,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
859
860
|
}, "strip", z.ZodTypeAny, {
|
|
860
861
|
type: "persistent";
|
|
861
862
|
version?: string | undefined;
|
|
863
|
+
buildDependencies?: string[] | undefined;
|
|
862
864
|
snapshot?: {
|
|
863
865
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
864
866
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
865
867
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
866
868
|
} | undefined;
|
|
867
|
-
buildDependencies?: string[] | undefined;
|
|
868
869
|
storage?: {
|
|
869
870
|
type: "filesystem";
|
|
870
871
|
directory?: string | undefined;
|
|
@@ -872,12 +873,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
872
873
|
}, {
|
|
873
874
|
type: "persistent";
|
|
874
875
|
version?: string | undefined;
|
|
876
|
+
buildDependencies?: string[] | undefined;
|
|
875
877
|
snapshot?: {
|
|
876
878
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
877
879
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
878
880
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
879
881
|
} | undefined;
|
|
880
|
-
buildDependencies?: string[] | undefined;
|
|
881
882
|
storage?: {
|
|
882
883
|
type: "filesystem";
|
|
883
884
|
directory?: string | undefined;
|
|
@@ -950,8 +951,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
950
951
|
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>]>>;
|
|
951
952
|
}, "strip", z.ZodTypeAny, {
|
|
952
953
|
entries?: boolean | undefined;
|
|
953
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
954
|
-
imports?: boolean | undefined;
|
|
955
954
|
backend?: {
|
|
956
955
|
client?: string | undefined;
|
|
957
956
|
listen?: number | {
|
|
@@ -967,10 +966,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
967
966
|
protocol?: "http" | "https" | undefined;
|
|
968
967
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
969
968
|
} | undefined;
|
|
970
|
-
}, {
|
|
971
|
-
entries?: boolean | undefined;
|
|
972
969
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
973
970
|
imports?: boolean | undefined;
|
|
971
|
+
}, {
|
|
972
|
+
entries?: boolean | undefined;
|
|
974
973
|
backend?: {
|
|
975
974
|
client?: string | undefined;
|
|
976
975
|
listen?: number | {
|
|
@@ -986,6 +985,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
986
985
|
protocol?: "http" | "https" | undefined;
|
|
987
986
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
988
987
|
} | undefined;
|
|
988
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
989
|
+
imports?: boolean | undefined;
|
|
989
990
|
}>]>;
|
|
990
991
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
|
991
992
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1011,12 +1012,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1011
1012
|
}, "strict", z.ZodTypeAny, {
|
|
1012
1013
|
providedExports?: boolean | undefined;
|
|
1013
1014
|
make?: boolean | undefined;
|
|
1014
|
-
inferAsyncModules?: boolean | undefined;
|
|
1015
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
1016
1015
|
sideEffects?: boolean | undefined;
|
|
1017
|
-
buildChunkGraph?: boolean | undefined;
|
|
1018
1016
|
moduleIds?: boolean | undefined;
|
|
1019
1017
|
chunkIds?: boolean | undefined;
|
|
1018
|
+
inferAsyncModules?: boolean | undefined;
|
|
1019
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
1020
|
+
buildChunkGraph?: boolean | undefined;
|
|
1020
1021
|
modulesHashes?: boolean | undefined;
|
|
1021
1022
|
modulesCodegen?: boolean | undefined;
|
|
1022
1023
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1027,12 +1028,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1027
1028
|
}, {
|
|
1028
1029
|
providedExports?: boolean | undefined;
|
|
1029
1030
|
make?: boolean | undefined;
|
|
1030
|
-
inferAsyncModules?: boolean | undefined;
|
|
1031
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
1032
1031
|
sideEffects?: boolean | undefined;
|
|
1033
|
-
buildChunkGraph?: boolean | undefined;
|
|
1034
1032
|
moduleIds?: boolean | undefined;
|
|
1035
1033
|
chunkIds?: boolean | undefined;
|
|
1034
|
+
inferAsyncModules?: boolean | undefined;
|
|
1035
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
1036
|
+
buildChunkGraph?: boolean | undefined;
|
|
1036
1037
|
modulesHashes?: boolean | undefined;
|
|
1037
1038
|
modulesCodegen?: boolean | undefined;
|
|
1038
1039
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1077,12 +1078,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1077
1078
|
} | {
|
|
1078
1079
|
type: "persistent";
|
|
1079
1080
|
version?: string | undefined;
|
|
1081
|
+
buildDependencies?: string[] | undefined;
|
|
1080
1082
|
snapshot?: {
|
|
1081
1083
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
1082
1084
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
1083
1085
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
1084
1086
|
} | undefined;
|
|
1085
|
-
buildDependencies?: string[] | undefined;
|
|
1086
1087
|
storage?: {
|
|
1087
1088
|
type: "filesystem";
|
|
1088
1089
|
directory?: string | undefined;
|
|
@@ -1090,8 +1091,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1090
1091
|
} | undefined;
|
|
1091
1092
|
lazyCompilation?: boolean | {
|
|
1092
1093
|
entries?: boolean | undefined;
|
|
1093
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
1094
|
-
imports?: boolean | undefined;
|
|
1095
1094
|
backend?: {
|
|
1096
1095
|
client?: string | undefined;
|
|
1097
1096
|
listen?: number | {
|
|
@@ -1107,6 +1106,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1107
1106
|
protocol?: "http" | "https" | undefined;
|
|
1108
1107
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
1109
1108
|
} | undefined;
|
|
1109
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
1110
|
+
imports?: boolean | undefined;
|
|
1110
1111
|
} | undefined;
|
|
1111
1112
|
asyncWebAssembly?: boolean | undefined;
|
|
1112
1113
|
outputModule?: boolean | undefined;
|
|
@@ -1115,12 +1116,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1115
1116
|
incremental?: boolean | {
|
|
1116
1117
|
providedExports?: boolean | undefined;
|
|
1117
1118
|
make?: boolean | undefined;
|
|
1118
|
-
inferAsyncModules?: boolean | undefined;
|
|
1119
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
1120
1119
|
sideEffects?: boolean | undefined;
|
|
1121
|
-
buildChunkGraph?: boolean | undefined;
|
|
1122
1120
|
moduleIds?: boolean | undefined;
|
|
1123
1121
|
chunkIds?: boolean | undefined;
|
|
1122
|
+
inferAsyncModules?: boolean | undefined;
|
|
1123
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
1124
|
+
buildChunkGraph?: boolean | undefined;
|
|
1124
1125
|
modulesHashes?: boolean | undefined;
|
|
1125
1126
|
modulesCodegen?: boolean | undefined;
|
|
1126
1127
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1145,12 +1146,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1145
1146
|
} | {
|
|
1146
1147
|
type: "persistent";
|
|
1147
1148
|
version?: string | undefined;
|
|
1149
|
+
buildDependencies?: string[] | undefined;
|
|
1148
1150
|
snapshot?: {
|
|
1149
1151
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
1150
1152
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
1151
1153
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
1152
1154
|
} | undefined;
|
|
1153
|
-
buildDependencies?: string[] | undefined;
|
|
1154
1155
|
storage?: {
|
|
1155
1156
|
type: "filesystem";
|
|
1156
1157
|
directory?: string | undefined;
|
|
@@ -1158,8 +1159,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1158
1159
|
} | undefined;
|
|
1159
1160
|
lazyCompilation?: boolean | {
|
|
1160
1161
|
entries?: boolean | undefined;
|
|
1161
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
1162
|
-
imports?: boolean | undefined;
|
|
1163
1162
|
backend?: {
|
|
1164
1163
|
client?: string | undefined;
|
|
1165
1164
|
listen?: number | {
|
|
@@ -1175,6 +1174,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1175
1174
|
protocol?: "http" | "https" | undefined;
|
|
1176
1175
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
1177
1176
|
} | undefined;
|
|
1177
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
1178
|
+
imports?: boolean | undefined;
|
|
1178
1179
|
} | undefined;
|
|
1179
1180
|
asyncWebAssembly?: boolean | undefined;
|
|
1180
1181
|
outputModule?: boolean | undefined;
|
|
@@ -1183,12 +1184,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1183
1184
|
incremental?: boolean | {
|
|
1184
1185
|
providedExports?: boolean | undefined;
|
|
1185
1186
|
make?: boolean | undefined;
|
|
1186
|
-
inferAsyncModules?: boolean | undefined;
|
|
1187
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
1188
1187
|
sideEffects?: boolean | undefined;
|
|
1189
|
-
buildChunkGraph?: boolean | undefined;
|
|
1190
1188
|
moduleIds?: boolean | undefined;
|
|
1191
1189
|
chunkIds?: boolean | undefined;
|
|
1190
|
+
inferAsyncModules?: boolean | undefined;
|
|
1191
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
1192
|
+
buildChunkGraph?: boolean | undefined;
|
|
1192
1193
|
modulesHashes?: boolean | undefined;
|
|
1193
1194
|
modulesCodegen?: boolean | undefined;
|
|
1194
1195
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1222,20 +1223,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1222
1223
|
web?: boolean | undefined;
|
|
1223
1224
|
node?: boolean | undefined;
|
|
1224
1225
|
nwjs?: boolean | undefined;
|
|
1226
|
+
webAsync?: boolean | undefined;
|
|
1225
1227
|
electron?: boolean | undefined;
|
|
1226
1228
|
electronMain?: boolean | undefined;
|
|
1227
1229
|
electronPreload?: boolean | undefined;
|
|
1228
1230
|
electronRenderer?: boolean | undefined;
|
|
1229
|
-
webAsync?: boolean | undefined;
|
|
1230
1231
|
}, {
|
|
1231
1232
|
web?: boolean | undefined;
|
|
1232
1233
|
node?: boolean | undefined;
|
|
1233
1234
|
nwjs?: boolean | undefined;
|
|
1235
|
+
webAsync?: boolean | undefined;
|
|
1234
1236
|
electron?: boolean | undefined;
|
|
1235
1237
|
electronMain?: boolean | undefined;
|
|
1236
1238
|
electronPreload?: boolean | undefined;
|
|
1237
1239
|
electronRenderer?: boolean | undefined;
|
|
1238
|
-
webAsync?: boolean | undefined;
|
|
1239
1240
|
}>>;
|
|
1240
1241
|
infrastructureLogging: z.ZodOptional<z.ZodObject<{
|
|
1241
1242
|
appendOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1247,17 +1248,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1247
1248
|
}, "strict", z.ZodTypeAny, {
|
|
1248
1249
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
1249
1250
|
colors?: boolean | undefined;
|
|
1250
|
-
stream?: NodeJS.WritableStream | undefined;
|
|
1251
|
-
appendOnly?: boolean | undefined;
|
|
1252
|
-
console?: Console | undefined;
|
|
1253
1251
|
level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
|
1252
|
+
console?: Console | undefined;
|
|
1253
|
+
appendOnly?: boolean | undefined;
|
|
1254
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
1254
1255
|
}, {
|
|
1255
1256
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
1256
1257
|
colors?: boolean | undefined;
|
|
1257
|
-
stream?: NodeJS.WritableStream | undefined;
|
|
1258
|
-
appendOnly?: boolean | undefined;
|
|
1259
|
-
console?: Console | undefined;
|
|
1260
1258
|
level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
|
1259
|
+
console?: Console | undefined;
|
|
1260
|
+
appendOnly?: boolean | undefined;
|
|
1261
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
1261
1262
|
}>>;
|
|
1262
1263
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
1263
1264
|
context: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -1375,14 +1376,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1375
1376
|
errorsSpace: z.ZodOptional<z.ZodNumber>;
|
|
1376
1377
|
warningsSpace: z.ZodOptional<z.ZodNumber>;
|
|
1377
1378
|
}, "strict", z.ZodTypeAny, {
|
|
1379
|
+
ids?: boolean | undefined;
|
|
1380
|
+
runtime?: boolean | undefined;
|
|
1381
|
+
hash?: boolean | undefined;
|
|
1378
1382
|
modules?: boolean | undefined;
|
|
1379
|
-
chunks?: boolean | undefined;
|
|
1380
1383
|
all?: boolean | undefined;
|
|
1381
1384
|
version?: boolean | undefined;
|
|
1382
|
-
runtime?: boolean | undefined;
|
|
1383
1385
|
publicPath?: boolean | undefined;
|
|
1384
1386
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1385
1387
|
assets?: boolean | undefined;
|
|
1388
|
+
chunks?: boolean | undefined;
|
|
1386
1389
|
entrypoints?: boolean | "auto" | undefined;
|
|
1387
1390
|
chunkGroups?: boolean | undefined;
|
|
1388
1391
|
warnings?: boolean | undefined;
|
|
@@ -1390,12 +1393,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1390
1393
|
errors?: boolean | undefined;
|
|
1391
1394
|
errorsCount?: boolean | undefined;
|
|
1392
1395
|
colors?: boolean | undefined;
|
|
1393
|
-
hash?: boolean | undefined;
|
|
1394
1396
|
reasons?: boolean | undefined;
|
|
1395
1397
|
outputPath?: boolean | undefined;
|
|
1396
1398
|
chunkModules?: boolean | undefined;
|
|
1397
1399
|
chunkRelations?: boolean | undefined;
|
|
1398
|
-
ids?: boolean | undefined;
|
|
1399
1400
|
timings?: boolean | undefined;
|
|
1400
1401
|
builtAt?: boolean | undefined;
|
|
1401
1402
|
moduleAssets?: boolean | undefined;
|
|
@@ -1452,14 +1453,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1452
1453
|
errorsSpace?: number | undefined;
|
|
1453
1454
|
warningsSpace?: number | undefined;
|
|
1454
1455
|
}, {
|
|
1456
|
+
ids?: boolean | undefined;
|
|
1457
|
+
runtime?: boolean | undefined;
|
|
1458
|
+
hash?: boolean | undefined;
|
|
1455
1459
|
modules?: boolean | undefined;
|
|
1456
|
-
chunks?: boolean | undefined;
|
|
1457
1460
|
all?: boolean | undefined;
|
|
1458
1461
|
version?: boolean | undefined;
|
|
1459
|
-
runtime?: boolean | undefined;
|
|
1460
1462
|
publicPath?: boolean | undefined;
|
|
1461
1463
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1462
1464
|
assets?: boolean | undefined;
|
|
1465
|
+
chunks?: boolean | undefined;
|
|
1463
1466
|
entrypoints?: boolean | "auto" | undefined;
|
|
1464
1467
|
chunkGroups?: boolean | undefined;
|
|
1465
1468
|
warnings?: boolean | undefined;
|
|
@@ -1467,12 +1470,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1467
1470
|
errors?: boolean | undefined;
|
|
1468
1471
|
errorsCount?: boolean | undefined;
|
|
1469
1472
|
colors?: boolean | undefined;
|
|
1470
|
-
hash?: boolean | undefined;
|
|
1471
1473
|
reasons?: boolean | undefined;
|
|
1472
1474
|
outputPath?: boolean | undefined;
|
|
1473
1475
|
chunkModules?: boolean | undefined;
|
|
1474
1476
|
chunkRelations?: boolean | undefined;
|
|
1475
|
-
ids?: boolean | undefined;
|
|
1476
1477
|
timings?: boolean | undefined;
|
|
1477
1478
|
builtAt?: boolean | undefined;
|
|
1478
1479
|
moduleAssets?: boolean | undefined;
|
|
@@ -1581,20 +1582,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1581
1582
|
idHint: z.ZodOptional<z.ZodString>;
|
|
1582
1583
|
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>]>>;
|
|
1583
1584
|
}, "strict", z.ZodTypeAny, {
|
|
1584
|
-
type?: string | RegExp | undefined;
|
|
1585
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1586
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1587
1585
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1588
1586
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1587
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1588
|
+
type?: string | RegExp | undefined;
|
|
1589
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1589
1590
|
usedExports?: boolean | undefined;
|
|
1590
1591
|
defaultSizeTypes?: string[] | undefined;
|
|
1591
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1592
1592
|
priority?: number | undefined;
|
|
1593
1593
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1594
1594
|
moduleGraph: ModuleGraph;
|
|
1595
1595
|
chunkGraph: ChunkGraph;
|
|
1596
1596
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1597
1597
|
minSize?: number | Record<string, number> | undefined;
|
|
1598
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1598
1599
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1599
1600
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1600
1601
|
minChunks?: number | undefined;
|
|
@@ -1605,20 +1606,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1605
1606
|
reuseExistingChunk?: boolean | undefined;
|
|
1606
1607
|
idHint?: string | undefined;
|
|
1607
1608
|
}, {
|
|
1608
|
-
type?: string | RegExp | undefined;
|
|
1609
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1610
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1611
1609
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1612
1610
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1611
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1612
|
+
type?: string | RegExp | undefined;
|
|
1613
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1613
1614
|
usedExports?: boolean | undefined;
|
|
1614
1615
|
defaultSizeTypes?: string[] | undefined;
|
|
1615
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1616
1616
|
priority?: number | undefined;
|
|
1617
1617
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1618
1618
|
moduleGraph: ModuleGraph;
|
|
1619
1619
|
chunkGraph: ChunkGraph;
|
|
1620
1620
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1621
1621
|
minSize?: number | Record<string, number> | undefined;
|
|
1622
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1622
1623
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1623
1624
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1624
1625
|
minChunks?: number | undefined;
|
|
@@ -1638,41 +1639,41 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1638
1639
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
|
1639
1640
|
}, "strict", z.ZodTypeAny, {
|
|
1640
1641
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1641
|
-
maxSize?: number | undefined;
|
|
1642
1642
|
minSize?: number | undefined;
|
|
1643
|
+
maxSize?: number | undefined;
|
|
1643
1644
|
maxAsyncSize?: number | undefined;
|
|
1644
1645
|
maxInitialSize?: number | undefined;
|
|
1645
1646
|
automaticNameDelimiter?: string | undefined;
|
|
1646
1647
|
}, {
|
|
1647
1648
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1648
|
-
maxSize?: number | undefined;
|
|
1649
1649
|
minSize?: number | undefined;
|
|
1650
|
+
maxSize?: number | undefined;
|
|
1650
1651
|
maxAsyncSize?: number | undefined;
|
|
1651
1652
|
maxInitialSize?: number | undefined;
|
|
1652
1653
|
automaticNameDelimiter?: string | undefined;
|
|
1653
1654
|
}>>;
|
|
1654
1655
|
hidePathInfo: z.ZodOptional<z.ZodBoolean>;
|
|
1655
1656
|
}, "strict", z.ZodTypeAny, {
|
|
1656
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1657
1657
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1658
1658
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1659
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1659
1660
|
usedExports?: boolean | undefined;
|
|
1660
1661
|
defaultSizeTypes?: string[] | undefined;
|
|
1661
1662
|
cacheGroups?: Record<string, false | {
|
|
1662
|
-
type?: string | RegExp | undefined;
|
|
1663
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1664
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1665
1663
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1666
1664
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1665
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1666
|
+
type?: string | RegExp | undefined;
|
|
1667
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1667
1668
|
usedExports?: boolean | undefined;
|
|
1668
1669
|
defaultSizeTypes?: string[] | undefined;
|
|
1669
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1670
1670
|
priority?: number | undefined;
|
|
1671
1671
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1672
1672
|
moduleGraph: ModuleGraph;
|
|
1673
1673
|
chunkGraph: ChunkGraph;
|
|
1674
1674
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1675
1675
|
minSize?: number | Record<string, number> | undefined;
|
|
1676
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1676
1677
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1677
1678
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1678
1679
|
minChunks?: number | undefined;
|
|
@@ -1683,16 +1684,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1683
1684
|
reuseExistingChunk?: boolean | undefined;
|
|
1684
1685
|
idHint?: string | undefined;
|
|
1685
1686
|
}> | undefined;
|
|
1686
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1687
1687
|
fallbackCacheGroup?: {
|
|
1688
1688
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1689
|
-
maxSize?: number | undefined;
|
|
1690
1689
|
minSize?: number | undefined;
|
|
1690
|
+
maxSize?: number | undefined;
|
|
1691
1691
|
maxAsyncSize?: number | undefined;
|
|
1692
1692
|
maxInitialSize?: number | undefined;
|
|
1693
1693
|
automaticNameDelimiter?: string | undefined;
|
|
1694
1694
|
} | undefined;
|
|
1695
1695
|
minSize?: number | Record<string, number> | undefined;
|
|
1696
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1696
1697
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1697
1698
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1698
1699
|
hidePathInfo?: boolean | undefined;
|
|
@@ -1701,26 +1702,26 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1701
1702
|
maxInitialRequests?: number | undefined;
|
|
1702
1703
|
automaticNameDelimiter?: string | undefined;
|
|
1703
1704
|
}, {
|
|
1704
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1705
1705
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1706
1706
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1707
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1707
1708
|
usedExports?: boolean | undefined;
|
|
1708
1709
|
defaultSizeTypes?: string[] | undefined;
|
|
1709
1710
|
cacheGroups?: Record<string, false | {
|
|
1710
|
-
type?: string | RegExp | undefined;
|
|
1711
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1712
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1713
1711
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1714
1712
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1713
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1714
|
+
type?: string | RegExp | undefined;
|
|
1715
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1715
1716
|
usedExports?: boolean | undefined;
|
|
1716
1717
|
defaultSizeTypes?: string[] | undefined;
|
|
1717
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1718
1718
|
priority?: number | undefined;
|
|
1719
1719
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1720
1720
|
moduleGraph: ModuleGraph;
|
|
1721
1721
|
chunkGraph: ChunkGraph;
|
|
1722
1722
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1723
1723
|
minSize?: number | Record<string, number> | undefined;
|
|
1724
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1724
1725
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1725
1726
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1726
1727
|
minChunks?: number | undefined;
|
|
@@ -1731,16 +1732,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1731
1732
|
reuseExistingChunk?: boolean | undefined;
|
|
1732
1733
|
idHint?: string | undefined;
|
|
1733
1734
|
}> | undefined;
|
|
1734
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1735
1735
|
fallbackCacheGroup?: {
|
|
1736
1736
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1737
|
-
maxSize?: number | undefined;
|
|
1738
1737
|
minSize?: number | undefined;
|
|
1738
|
+
maxSize?: number | undefined;
|
|
1739
1739
|
maxAsyncSize?: number | undefined;
|
|
1740
1740
|
maxInitialSize?: number | undefined;
|
|
1741
1741
|
automaticNameDelimiter?: string | undefined;
|
|
1742
1742
|
} | undefined;
|
|
1743
1743
|
minSize?: number | Record<string, number> | undefined;
|
|
1744
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1744
1745
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1745
1746
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1746
1747
|
hidePathInfo?: boolean | undefined;
|
|
@@ -1781,33 +1782,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1781
1782
|
}, "strict", z.ZodTypeAny, {
|
|
1782
1783
|
usedExports?: boolean | "global" | undefined;
|
|
1783
1784
|
providedExports?: boolean | undefined;
|
|
1784
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
1785
|
-
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1786
|
-
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
1787
|
-
minimize?: boolean | undefined;
|
|
1788
|
-
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1789
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
1790
1785
|
splitChunks?: false | {
|
|
1791
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1792
1786
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1793
1787
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1788
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1794
1789
|
usedExports?: boolean | undefined;
|
|
1795
1790
|
defaultSizeTypes?: string[] | undefined;
|
|
1796
1791
|
cacheGroups?: Record<string, false | {
|
|
1797
|
-
type?: string | RegExp | undefined;
|
|
1798
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1799
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1800
1792
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1801
1793
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1794
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1795
|
+
type?: string | RegExp | undefined;
|
|
1796
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1802
1797
|
usedExports?: boolean | undefined;
|
|
1803
1798
|
defaultSizeTypes?: string[] | undefined;
|
|
1804
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1805
1799
|
priority?: number | undefined;
|
|
1806
1800
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1807
1801
|
moduleGraph: ModuleGraph;
|
|
1808
1802
|
chunkGraph: ChunkGraph;
|
|
1809
1803
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1810
1804
|
minSize?: number | Record<string, number> | undefined;
|
|
1805
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1811
1806
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1812
1807
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1813
1808
|
minChunks?: number | undefined;
|
|
@@ -1818,16 +1813,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1818
1813
|
reuseExistingChunk?: boolean | undefined;
|
|
1819
1814
|
idHint?: string | undefined;
|
|
1820
1815
|
}> | undefined;
|
|
1821
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1822
1816
|
fallbackCacheGroup?: {
|
|
1823
1817
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1824
|
-
maxSize?: number | undefined;
|
|
1825
1818
|
minSize?: number | undefined;
|
|
1819
|
+
maxSize?: number | undefined;
|
|
1826
1820
|
maxAsyncSize?: number | undefined;
|
|
1827
1821
|
maxInitialSize?: number | undefined;
|
|
1828
1822
|
automaticNameDelimiter?: string | undefined;
|
|
1829
1823
|
} | undefined;
|
|
1830
1824
|
minSize?: number | Record<string, number> | undefined;
|
|
1825
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1831
1826
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1832
1827
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1833
1828
|
hidePathInfo?: boolean | undefined;
|
|
@@ -1836,6 +1831,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1836
1831
|
maxInitialRequests?: number | undefined;
|
|
1837
1832
|
automaticNameDelimiter?: string | undefined;
|
|
1838
1833
|
} | undefined;
|
|
1834
|
+
minimize?: boolean | undefined;
|
|
1835
|
+
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1836
|
+
sideEffects?: boolean | "flag" | undefined;
|
|
1837
|
+
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1838
|
+
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
|
1839
|
+
mergeDuplicateChunks?: boolean | undefined;
|
|
1839
1840
|
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
1840
1841
|
name?: string | ((args_0: {
|
|
1841
1842
|
name: string;
|
|
@@ -1846,40 +1847,34 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1846
1847
|
realContentHash?: boolean | undefined;
|
|
1847
1848
|
concatenateModules?: boolean | undefined;
|
|
1848
1849
|
innerGraph?: boolean | undefined;
|
|
1849
|
-
mangleExports?: boolean | "
|
|
1850
|
+
mangleExports?: boolean | "deterministic" | "size" | undefined;
|
|
1850
1851
|
nodeEnv?: string | false | undefined;
|
|
1851
1852
|
emitOnErrors?: boolean | undefined;
|
|
1852
1853
|
avoidEntryIife?: boolean | undefined;
|
|
1853
1854
|
}, {
|
|
1854
1855
|
usedExports?: boolean | "global" | undefined;
|
|
1855
1856
|
providedExports?: boolean | undefined;
|
|
1856
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
1857
|
-
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1858
|
-
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
1859
|
-
minimize?: boolean | undefined;
|
|
1860
|
-
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1861
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
1862
1857
|
splitChunks?: false | {
|
|
1863
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1864
1858
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1865
1859
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1860
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1866
1861
|
usedExports?: boolean | undefined;
|
|
1867
1862
|
defaultSizeTypes?: string[] | undefined;
|
|
1868
1863
|
cacheGroups?: Record<string, false | {
|
|
1869
|
-
type?: string | RegExp | undefined;
|
|
1870
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1871
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1872
1864
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1873
1865
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1866
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1867
|
+
type?: string | RegExp | undefined;
|
|
1868
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1874
1869
|
usedExports?: boolean | undefined;
|
|
1875
1870
|
defaultSizeTypes?: string[] | undefined;
|
|
1876
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1877
1871
|
priority?: number | undefined;
|
|
1878
1872
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1879
1873
|
moduleGraph: ModuleGraph;
|
|
1880
1874
|
chunkGraph: ChunkGraph;
|
|
1881
1875
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
1882
1876
|
minSize?: number | Record<string, number> | undefined;
|
|
1877
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1883
1878
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1884
1879
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1885
1880
|
minChunks?: number | undefined;
|
|
@@ -1890,16 +1885,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1890
1885
|
reuseExistingChunk?: boolean | undefined;
|
|
1891
1886
|
idHint?: string | undefined;
|
|
1892
1887
|
}> | undefined;
|
|
1893
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
1894
1888
|
fallbackCacheGroup?: {
|
|
1895
1889
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1896
|
-
maxSize?: number | undefined;
|
|
1897
1890
|
minSize?: number | undefined;
|
|
1891
|
+
maxSize?: number | undefined;
|
|
1898
1892
|
maxAsyncSize?: number | undefined;
|
|
1899
1893
|
maxInitialSize?: number | undefined;
|
|
1900
1894
|
automaticNameDelimiter?: string | undefined;
|
|
1901
1895
|
} | undefined;
|
|
1902
1896
|
minSize?: number | Record<string, number> | undefined;
|
|
1897
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
1903
1898
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1904
1899
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
1905
1900
|
hidePathInfo?: boolean | undefined;
|
|
@@ -1908,6 +1903,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1908
1903
|
maxInitialRequests?: number | undefined;
|
|
1909
1904
|
automaticNameDelimiter?: string | undefined;
|
|
1910
1905
|
} | undefined;
|
|
1906
|
+
minimize?: boolean | undefined;
|
|
1907
|
+
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1908
|
+
sideEffects?: boolean | "flag" | undefined;
|
|
1909
|
+
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1910
|
+
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
|
1911
|
+
mergeDuplicateChunks?: boolean | undefined;
|
|
1911
1912
|
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
1912
1913
|
name?: string | ((args_0: {
|
|
1913
1914
|
name: string;
|
|
@@ -1918,7 +1919,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1918
1919
|
realContentHash?: boolean | undefined;
|
|
1919
1920
|
concatenateModules?: boolean | undefined;
|
|
1920
1921
|
innerGraph?: boolean | undefined;
|
|
1921
|
-
mangleExports?: boolean | "
|
|
1922
|
+
mangleExports?: boolean | "deterministic" | "size" | undefined;
|
|
1922
1923
|
nodeEnv?: string | false | undefined;
|
|
1923
1924
|
emitOnErrors?: boolean | undefined;
|
|
1924
1925
|
avoidEntryIife?: boolean | undefined;
|
|
@@ -2418,12 +2419,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2418
2419
|
encoding: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"base64">]>>;
|
|
2419
2420
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
2420
2421
|
}, "strict", z.ZodTypeAny, {
|
|
2421
|
-
encoding?: false | "base64" | undefined;
|
|
2422
2422
|
mimetype?: string | undefined;
|
|
2423
|
-
}, {
|
|
2424
2423
|
encoding?: false | "base64" | undefined;
|
|
2424
|
+
}, {
|
|
2425
2425
|
mimetype?: string | undefined;
|
|
2426
|
-
|
|
2426
|
+
encoding?: false | "base64" | undefined;
|
|
2427
|
+
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
|
2427
2428
|
filename: z.ZodString;
|
|
2428
2429
|
module: z.ZodType<Module, z.ZodTypeDef, Module>;
|
|
2429
2430
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2440,37 +2441,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2440
2441
|
}>, "strict", z.ZodTypeAny, {
|
|
2441
2442
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2442
2443
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2444
|
+
emit?: boolean | undefined;
|
|
2443
2445
|
dataUrl?: {
|
|
2444
|
-
encoding?: false | "base64" | undefined;
|
|
2445
2446
|
mimetype?: string | undefined;
|
|
2446
|
-
|
|
2447
|
+
encoding?: false | "base64" | undefined;
|
|
2448
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2447
2449
|
module: Module;
|
|
2448
2450
|
filename: string;
|
|
2449
2451
|
}, ...args: unknown[]) => string) | undefined;
|
|
2450
|
-
emit?: boolean | undefined;
|
|
2451
2452
|
}, {
|
|
2452
2453
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2453
2454
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2455
|
+
emit?: boolean | undefined;
|
|
2454
2456
|
dataUrl?: {
|
|
2455
|
-
encoding?: false | "base64" | undefined;
|
|
2456
2457
|
mimetype?: string | undefined;
|
|
2457
|
-
|
|
2458
|
+
encoding?: false | "base64" | undefined;
|
|
2459
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2458
2460
|
module: Module;
|
|
2459
2461
|
filename: string;
|
|
2460
2462
|
}, ...args: unknown[]) => string) | undefined;
|
|
2461
|
-
emit?: boolean | undefined;
|
|
2462
2463
|
}>>;
|
|
2463
2464
|
"asset/inline": z.ZodOptional<z.ZodObject<{
|
|
2464
2465
|
dataUrl: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2465
2466
|
encoding: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"base64">]>>;
|
|
2466
2467
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
2467
2468
|
}, "strict", z.ZodTypeAny, {
|
|
2468
|
-
encoding?: false | "base64" | undefined;
|
|
2469
2469
|
mimetype?: string | undefined;
|
|
2470
|
-
}, {
|
|
2471
2470
|
encoding?: false | "base64" | undefined;
|
|
2471
|
+
}, {
|
|
2472
2472
|
mimetype?: string | undefined;
|
|
2473
|
-
|
|
2473
|
+
encoding?: false | "base64" | undefined;
|
|
2474
|
+
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
|
2474
2475
|
filename: z.ZodString;
|
|
2475
2476
|
module: z.ZodType<Module, z.ZodTypeDef, Module>;
|
|
2476
2477
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2482,17 +2483,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2482
2483
|
}>], z.ZodUnknown>, z.ZodString>]>>;
|
|
2483
2484
|
}, "strict", z.ZodTypeAny, {
|
|
2484
2485
|
dataUrl?: {
|
|
2485
|
-
encoding?: false | "base64" | undefined;
|
|
2486
2486
|
mimetype?: string | undefined;
|
|
2487
|
-
|
|
2487
|
+
encoding?: false | "base64" | undefined;
|
|
2488
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2488
2489
|
module: Module;
|
|
2489
2490
|
filename: string;
|
|
2490
2491
|
}, ...args: unknown[]) => string) | undefined;
|
|
2491
2492
|
}, {
|
|
2492
2493
|
dataUrl?: {
|
|
2493
|
-
encoding?: false | "base64" | undefined;
|
|
2494
2494
|
mimetype?: string | undefined;
|
|
2495
|
-
|
|
2495
|
+
encoding?: false | "base64" | undefined;
|
|
2496
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2496
2497
|
module: Module;
|
|
2497
2498
|
filename: string;
|
|
2498
2499
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -2552,6 +2553,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2552
2553
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2553
2554
|
localIdentName?: string | undefined;
|
|
2554
2555
|
}>>;
|
|
2556
|
+
json: z.ZodOptional<z.ZodObject<{
|
|
2557
|
+
JSONParse: z.ZodOptional<z.ZodBoolean>;
|
|
2558
|
+
}, "strict", z.ZodTypeAny, {
|
|
2559
|
+
JSONParse?: boolean | undefined;
|
|
2560
|
+
}, {
|
|
2561
|
+
JSONParse?: boolean | undefined;
|
|
2562
|
+
}>>;
|
|
2555
2563
|
}, "strict", z.ZodTypeAny, {
|
|
2556
2564
|
css?: {
|
|
2557
2565
|
exportsOnly?: boolean | undefined;
|
|
@@ -2560,14 +2568,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2560
2568
|
asset?: {
|
|
2561
2569
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2562
2570
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2571
|
+
emit?: boolean | undefined;
|
|
2563
2572
|
dataUrl?: {
|
|
2564
|
-
encoding?: false | "base64" | undefined;
|
|
2565
2573
|
mimetype?: string | undefined;
|
|
2566
|
-
|
|
2574
|
+
encoding?: false | "base64" | undefined;
|
|
2575
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2567
2576
|
module: Module;
|
|
2568
2577
|
filename: string;
|
|
2569
2578
|
}, ...args: unknown[]) => string) | undefined;
|
|
2570
|
-
emit?: boolean | undefined;
|
|
2571
2579
|
} | undefined;
|
|
2572
2580
|
"css/auto"?: {
|
|
2573
2581
|
exportsOnly?: boolean | undefined;
|
|
@@ -2581,11 +2589,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2581
2589
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2582
2590
|
localIdentName?: string | undefined;
|
|
2583
2591
|
} | undefined;
|
|
2592
|
+
json?: {
|
|
2593
|
+
JSONParse?: boolean | undefined;
|
|
2594
|
+
} | undefined;
|
|
2584
2595
|
"asset/inline"?: {
|
|
2585
2596
|
dataUrl?: {
|
|
2586
|
-
encoding?: false | "base64" | undefined;
|
|
2587
2597
|
mimetype?: string | undefined;
|
|
2588
|
-
|
|
2598
|
+
encoding?: false | "base64" | undefined;
|
|
2599
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2589
2600
|
module: Module;
|
|
2590
2601
|
filename: string;
|
|
2591
2602
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -2603,14 +2614,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2603
2614
|
asset?: {
|
|
2604
2615
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2605
2616
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2617
|
+
emit?: boolean | undefined;
|
|
2606
2618
|
dataUrl?: {
|
|
2607
|
-
encoding?: false | "base64" | undefined;
|
|
2608
2619
|
mimetype?: string | undefined;
|
|
2609
|
-
|
|
2620
|
+
encoding?: false | "base64" | undefined;
|
|
2621
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2610
2622
|
module: Module;
|
|
2611
2623
|
filename: string;
|
|
2612
2624
|
}, ...args: unknown[]) => string) | undefined;
|
|
2613
|
-
emit?: boolean | undefined;
|
|
2614
2625
|
} | undefined;
|
|
2615
2626
|
"css/auto"?: {
|
|
2616
2627
|
exportsOnly?: boolean | undefined;
|
|
@@ -2624,11 +2635,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2624
2635
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2625
2636
|
localIdentName?: string | undefined;
|
|
2626
2637
|
} | undefined;
|
|
2638
|
+
json?: {
|
|
2639
|
+
JSONParse?: boolean | undefined;
|
|
2640
|
+
} | undefined;
|
|
2627
2641
|
"asset/inline"?: {
|
|
2628
2642
|
dataUrl?: {
|
|
2629
|
-
encoding?: false | "base64" | undefined;
|
|
2630
2643
|
mimetype?: string | undefined;
|
|
2631
|
-
|
|
2644
|
+
encoding?: false | "base64" | undefined;
|
|
2645
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2632
2646
|
module: Module;
|
|
2633
2647
|
filename: string;
|
|
2634
2648
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -2641,8 +2655,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2641
2655
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
2642
2656
|
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">]>>;
|
|
2643
2657
|
}, "strict", z.ZodTypeAny, {
|
|
2644
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2645
|
-
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2646
2658
|
parser?: {
|
|
2647
2659
|
css?: {
|
|
2648
2660
|
namedExports?: boolean | undefined;
|
|
@@ -2751,14 +2763,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2751
2763
|
asset?: {
|
|
2752
2764
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2753
2765
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2766
|
+
emit?: boolean | undefined;
|
|
2754
2767
|
dataUrl?: {
|
|
2755
|
-
encoding?: false | "base64" | undefined;
|
|
2756
2768
|
mimetype?: string | undefined;
|
|
2757
|
-
|
|
2769
|
+
encoding?: false | "base64" | undefined;
|
|
2770
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2758
2771
|
module: Module;
|
|
2759
2772
|
filename: string;
|
|
2760
2773
|
}, ...args: unknown[]) => string) | undefined;
|
|
2761
|
-
emit?: boolean | undefined;
|
|
2762
2774
|
} | undefined;
|
|
2763
2775
|
"css/auto"?: {
|
|
2764
2776
|
exportsOnly?: boolean | undefined;
|
|
@@ -2772,11 +2784,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2772
2784
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2773
2785
|
localIdentName?: string | undefined;
|
|
2774
2786
|
} | undefined;
|
|
2787
|
+
json?: {
|
|
2788
|
+
JSONParse?: boolean | undefined;
|
|
2789
|
+
} | undefined;
|
|
2775
2790
|
"asset/inline"?: {
|
|
2776
2791
|
dataUrl?: {
|
|
2777
|
-
encoding?: false | "base64" | undefined;
|
|
2778
2792
|
mimetype?: string | undefined;
|
|
2779
|
-
|
|
2793
|
+
encoding?: false | "base64" | undefined;
|
|
2794
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2780
2795
|
module: Module;
|
|
2781
2796
|
filename: string;
|
|
2782
2797
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -2787,10 +2802,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2787
2802
|
emit?: boolean | undefined;
|
|
2788
2803
|
} | undefined;
|
|
2789
2804
|
} | undefined;
|
|
2805
|
+
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2806
|
+
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2790
2807
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
2791
2808
|
}, {
|
|
2792
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2793
|
-
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2794
2809
|
parser?: {
|
|
2795
2810
|
css?: {
|
|
2796
2811
|
namedExports?: boolean | undefined;
|
|
@@ -2899,14 +2914,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2899
2914
|
asset?: {
|
|
2900
2915
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2901
2916
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
2917
|
+
emit?: boolean | undefined;
|
|
2902
2918
|
dataUrl?: {
|
|
2903
|
-
encoding?: false | "base64" | undefined;
|
|
2904
2919
|
mimetype?: string | undefined;
|
|
2905
|
-
|
|
2920
|
+
encoding?: false | "base64" | undefined;
|
|
2921
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2906
2922
|
module: Module;
|
|
2907
2923
|
filename: string;
|
|
2908
2924
|
}, ...args: unknown[]) => string) | undefined;
|
|
2909
|
-
emit?: boolean | undefined;
|
|
2910
2925
|
} | undefined;
|
|
2911
2926
|
"css/auto"?: {
|
|
2912
2927
|
exportsOnly?: boolean | undefined;
|
|
@@ -2920,11 +2935,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2920
2935
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2921
2936
|
localIdentName?: string | undefined;
|
|
2922
2937
|
} | undefined;
|
|
2938
|
+
json?: {
|
|
2939
|
+
JSONParse?: boolean | undefined;
|
|
2940
|
+
} | undefined;
|
|
2923
2941
|
"asset/inline"?: {
|
|
2924
2942
|
dataUrl?: {
|
|
2925
|
-
encoding?: false | "base64" | undefined;
|
|
2926
2943
|
mimetype?: string | undefined;
|
|
2927
|
-
|
|
2944
|
+
encoding?: false | "base64" | undefined;
|
|
2945
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
2928
2946
|
module: Module;
|
|
2929
2947
|
filename: string;
|
|
2930
2948
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -2935,6 +2953,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2935
2953
|
emit?: boolean | undefined;
|
|
2936
2954
|
} | undefined;
|
|
2937
2955
|
} | undefined;
|
|
2956
|
+
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2957
|
+
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2938
2958
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
2939
2959
|
}>>;
|
|
2940
2960
|
profile: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2946,23 +2966,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2946
2966
|
maxAssetSize: z.ZodOptional<z.ZodNumber>;
|
|
2947
2967
|
maxEntrypointSize: z.ZodOptional<z.ZodNumber>;
|
|
2948
2968
|
}, "strict", z.ZodTypeAny, {
|
|
2949
|
-
maxAssetSize?: number | undefined;
|
|
2950
2969
|
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
2951
2970
|
hints?: false | "error" | "warning" | undefined;
|
|
2971
|
+
maxAssetSize?: number | undefined;
|
|
2952
2972
|
maxEntrypointSize?: number | undefined;
|
|
2953
2973
|
}, {
|
|
2954
|
-
maxAssetSize?: number | undefined;
|
|
2955
2974
|
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
2956
2975
|
hints?: false | "error" | "warning" | undefined;
|
|
2976
|
+
maxAssetSize?: number | undefined;
|
|
2957
2977
|
maxEntrypointSize?: number | undefined;
|
|
2958
2978
|
}>, z.ZodLiteral<false>]>>;
|
|
2959
2979
|
}, "strict", z.ZodTypeAny, {
|
|
2960
|
-
dependencies?: string[] | undefined;
|
|
2961
|
-
context?: string | undefined;
|
|
2962
2980
|
name?: string | undefined;
|
|
2963
2981
|
module?: {
|
|
2964
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2965
|
-
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2966
2982
|
parser?: {
|
|
2967
2983
|
css?: {
|
|
2968
2984
|
namedExports?: boolean | undefined;
|
|
@@ -3071,14 +3087,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3071
3087
|
asset?: {
|
|
3072
3088
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3073
3089
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3090
|
+
emit?: boolean | undefined;
|
|
3074
3091
|
dataUrl?: {
|
|
3075
|
-
encoding?: false | "base64" | undefined;
|
|
3076
3092
|
mimetype?: string | undefined;
|
|
3077
|
-
|
|
3093
|
+
encoding?: false | "base64" | undefined;
|
|
3094
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
3078
3095
|
module: Module;
|
|
3079
3096
|
filename: string;
|
|
3080
3097
|
}, ...args: unknown[]) => string) | undefined;
|
|
3081
|
-
emit?: boolean | undefined;
|
|
3082
3098
|
} | undefined;
|
|
3083
3099
|
"css/auto"?: {
|
|
3084
3100
|
exportsOnly?: boolean | undefined;
|
|
@@ -3092,11 +3108,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3092
3108
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3093
3109
|
localIdentName?: string | undefined;
|
|
3094
3110
|
} | undefined;
|
|
3111
|
+
json?: {
|
|
3112
|
+
JSONParse?: boolean | undefined;
|
|
3113
|
+
} | undefined;
|
|
3095
3114
|
"asset/inline"?: {
|
|
3096
3115
|
dataUrl?: {
|
|
3097
|
-
encoding?: false | "base64" | undefined;
|
|
3098
3116
|
mimetype?: string | undefined;
|
|
3099
|
-
|
|
3117
|
+
encoding?: false | "base64" | undefined;
|
|
3118
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
3100
3119
|
module: Module;
|
|
3101
3120
|
filename: string;
|
|
3102
3121
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -3107,8 +3126,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3107
3126
|
emit?: boolean | undefined;
|
|
3108
3127
|
} | undefined;
|
|
3109
3128
|
} | undefined;
|
|
3129
|
+
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3130
|
+
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3110
3131
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
3111
3132
|
} | undefined;
|
|
3133
|
+
resolve?: t.ResolveOptions | undefined;
|
|
3112
3134
|
profile?: boolean | undefined;
|
|
3113
3135
|
cache?: boolean | undefined;
|
|
3114
3136
|
amd?: false | Record<string, any> | undefined;
|
|
@@ -3118,11 +3140,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3118
3140
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3119
3141
|
} | undefined;
|
|
3120
3142
|
performance?: false | {
|
|
3121
|
-
maxAssetSize?: number | undefined;
|
|
3122
3143
|
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
3123
3144
|
hints?: false | "error" | "warning" | undefined;
|
|
3145
|
+
maxAssetSize?: number | undefined;
|
|
3124
3146
|
maxEntrypointSize?: number | undefined;
|
|
3125
3147
|
} | undefined;
|
|
3148
|
+
context?: string | undefined;
|
|
3126
3149
|
mode?: "development" | "production" | "none" | undefined;
|
|
3127
3150
|
experiments?: {
|
|
3128
3151
|
css?: boolean | undefined;
|
|
@@ -3131,12 +3154,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3131
3154
|
} | {
|
|
3132
3155
|
type: "persistent";
|
|
3133
3156
|
version?: string | undefined;
|
|
3157
|
+
buildDependencies?: string[] | undefined;
|
|
3134
3158
|
snapshot?: {
|
|
3135
3159
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
3136
3160
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
3137
3161
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
3138
3162
|
} | undefined;
|
|
3139
|
-
buildDependencies?: string[] | undefined;
|
|
3140
3163
|
storage?: {
|
|
3141
3164
|
type: "filesystem";
|
|
3142
3165
|
directory?: string | undefined;
|
|
@@ -3144,8 +3167,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3144
3167
|
} | undefined;
|
|
3145
3168
|
lazyCompilation?: boolean | {
|
|
3146
3169
|
entries?: boolean | undefined;
|
|
3147
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
3148
|
-
imports?: boolean | undefined;
|
|
3149
3170
|
backend?: {
|
|
3150
3171
|
client?: string | undefined;
|
|
3151
3172
|
listen?: number | {
|
|
@@ -3161,6 +3182,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3161
3182
|
protocol?: "http" | "https" | undefined;
|
|
3162
3183
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
3163
3184
|
} | undefined;
|
|
3185
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
3186
|
+
imports?: boolean | undefined;
|
|
3164
3187
|
} | undefined;
|
|
3165
3188
|
asyncWebAssembly?: boolean | undefined;
|
|
3166
3189
|
outputModule?: boolean | undefined;
|
|
@@ -3169,12 +3192,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3169
3192
|
incremental?: boolean | {
|
|
3170
3193
|
providedExports?: boolean | undefined;
|
|
3171
3194
|
make?: boolean | undefined;
|
|
3172
|
-
inferAsyncModules?: boolean | undefined;
|
|
3173
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
3174
3195
|
sideEffects?: boolean | undefined;
|
|
3175
|
-
buildChunkGraph?: boolean | undefined;
|
|
3176
3196
|
moduleIds?: boolean | undefined;
|
|
3177
3197
|
chunkIds?: boolean | undefined;
|
|
3198
|
+
inferAsyncModules?: boolean | undefined;
|
|
3199
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
3200
|
+
buildChunkGraph?: boolean | undefined;
|
|
3178
3201
|
modulesHashes?: boolean | undefined;
|
|
3179
3202
|
modulesCodegen?: boolean | undefined;
|
|
3180
3203
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -3194,16 +3217,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3194
3217
|
} | undefined;
|
|
3195
3218
|
} | undefined;
|
|
3196
3219
|
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;
|
|
3197
|
-
|
|
3220
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
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;
|
|
3198
3222
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3223
|
+
ids?: boolean | undefined;
|
|
3224
|
+
runtime?: boolean | undefined;
|
|
3225
|
+
hash?: boolean | undefined;
|
|
3199
3226
|
modules?: boolean | undefined;
|
|
3200
|
-
chunks?: boolean | undefined;
|
|
3201
3227
|
all?: boolean | undefined;
|
|
3202
3228
|
version?: boolean | undefined;
|
|
3203
|
-
runtime?: boolean | undefined;
|
|
3204
3229
|
publicPath?: boolean | undefined;
|
|
3205
3230
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3206
3231
|
assets?: boolean | undefined;
|
|
3232
|
+
chunks?: boolean | undefined;
|
|
3207
3233
|
entrypoints?: boolean | "auto" | undefined;
|
|
3208
3234
|
chunkGroups?: boolean | undefined;
|
|
3209
3235
|
warnings?: boolean | undefined;
|
|
@@ -3211,12 +3237,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3211
3237
|
errors?: boolean | undefined;
|
|
3212
3238
|
errorsCount?: boolean | undefined;
|
|
3213
3239
|
colors?: boolean | undefined;
|
|
3214
|
-
hash?: boolean | undefined;
|
|
3215
3240
|
reasons?: boolean | undefined;
|
|
3216
3241
|
outputPath?: boolean | undefined;
|
|
3217
3242
|
chunkModules?: boolean | undefined;
|
|
3218
3243
|
chunkRelations?: boolean | undefined;
|
|
3219
|
-
ids?: boolean | undefined;
|
|
3220
3244
|
timings?: boolean | undefined;
|
|
3221
3245
|
builtAt?: boolean | undefined;
|
|
3222
3246
|
moduleAssets?: boolean | undefined;
|
|
@@ -3273,12 +3297,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3273
3297
|
errorsSpace?: number | undefined;
|
|
3274
3298
|
warningsSpace?: number | undefined;
|
|
3275
3299
|
} | undefined;
|
|
3276
|
-
|
|
3277
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
3278
|
-
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;
|
|
3300
|
+
dependencies?: string[] | undefined;
|
|
3279
3301
|
entry?: string | string[] | Record<string, string | string[] | {
|
|
3280
3302
|
import: string | string[];
|
|
3281
|
-
layer?: string | null | undefined;
|
|
3282
3303
|
runtime?: string | false | undefined;
|
|
3283
3304
|
chunkLoading?: string | false | undefined;
|
|
3284
3305
|
asyncChunks?: boolean | undefined;
|
|
@@ -3302,11 +3323,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3302
3323
|
export?: string | string[] | undefined;
|
|
3303
3324
|
umdNamedDefine?: boolean | undefined;
|
|
3304
3325
|
} | undefined;
|
|
3326
|
+
layer?: string | null | undefined;
|
|
3305
3327
|
wasmLoading?: string | false | undefined;
|
|
3306
3328
|
dependOn?: string | string[] | undefined;
|
|
3307
3329
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
3308
3330
|
import: string | string[];
|
|
3309
|
-
layer?: string | null | undefined;
|
|
3310
3331
|
runtime?: string | false | undefined;
|
|
3311
3332
|
chunkLoading?: string | false | undefined;
|
|
3312
3333
|
asyncChunks?: boolean | undefined;
|
|
@@ -3330,11 +3351,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3330
3351
|
export?: string | string[] | undefined;
|
|
3331
3352
|
umdNamedDefine?: boolean | undefined;
|
|
3332
3353
|
} | undefined;
|
|
3354
|
+
layer?: string | null | undefined;
|
|
3333
3355
|
wasmLoading?: string | false | undefined;
|
|
3334
3356
|
dependOn?: string | string[] | undefined;
|
|
3335
3357
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
|
3336
3358
|
import: string | string[];
|
|
3337
|
-
layer?: string | null | undefined;
|
|
3338
3359
|
runtime?: string | false | undefined;
|
|
3339
3360
|
chunkLoading?: string | false | undefined;
|
|
3340
3361
|
asyncChunks?: boolean | undefined;
|
|
@@ -3358,9 +3379,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3358
3379
|
export?: string | string[] | undefined;
|
|
3359
3380
|
umdNamedDefine?: boolean | undefined;
|
|
3360
3381
|
} | undefined;
|
|
3382
|
+
layer?: string | null | undefined;
|
|
3361
3383
|
wasmLoading?: string | false | undefined;
|
|
3362
3384
|
dependOn?: string | string[] | undefined;
|
|
3363
3385
|
}>>) | undefined;
|
|
3386
|
+
infrastructureLogging?: {
|
|
3387
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
3388
|
+
colors?: boolean | undefined;
|
|
3389
|
+
level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
|
3390
|
+
console?: Console | undefined;
|
|
3391
|
+
appendOnly?: boolean | undefined;
|
|
3392
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
3393
|
+
} | undefined;
|
|
3394
|
+
loader?: Record<string, any> | undefined;
|
|
3395
|
+
snapshot?: {} | undefined;
|
|
3396
|
+
extends?: string | string[] | undefined;
|
|
3364
3397
|
output?: {
|
|
3365
3398
|
module?: boolean | undefined;
|
|
3366
3399
|
path?: string | undefined;
|
|
@@ -3398,11 +3431,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3398
3431
|
root?: string | undefined;
|
|
3399
3432
|
} | undefined;
|
|
3400
3433
|
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;
|
|
3401
3451
|
pathinfo?: boolean | "verbose" | undefined;
|
|
3402
3452
|
clean?: boolean | {
|
|
3403
3453
|
keep?: string | undefined;
|
|
3404
3454
|
} | undefined;
|
|
3405
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3406
3455
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
3407
3456
|
cssFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3408
3457
|
cssChunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -3413,6 +3462,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3413
3462
|
uniqueName?: string | undefined;
|
|
3414
3463
|
chunkLoadingGlobal?: string | undefined;
|
|
3415
3464
|
enabledLibraryTypes?: string[] | undefined;
|
|
3465
|
+
libraryExport?: string | string[] | undefined;
|
|
3466
|
+
libraryTarget?: string | undefined;
|
|
3467
|
+
strictModuleExceptionHandling?: boolean | undefined;
|
|
3416
3468
|
strictModuleErrorHandling?: boolean | undefined;
|
|
3417
3469
|
globalObject?: string | undefined;
|
|
3418
3470
|
importFunctionName?: string | undefined;
|
|
@@ -3438,80 +3490,54 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3438
3490
|
devtoolNamespace?: string | undefined;
|
|
3439
3491
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
3440
3492
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
3441
|
-
environment?: {
|
|
3442
|
-
module?: boolean | undefined;
|
|
3443
|
-
document?: boolean | undefined;
|
|
3444
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
|
3445
|
-
globalThis?: boolean | undefined;
|
|
3446
|
-
bigIntLiteral?: boolean | undefined;
|
|
3447
|
-
const?: boolean | undefined;
|
|
3448
|
-
arrowFunction?: boolean | undefined;
|
|
3449
|
-
forOf?: boolean | undefined;
|
|
3450
|
-
destructuring?: boolean | undefined;
|
|
3451
|
-
dynamicImport?: boolean | undefined;
|
|
3452
|
-
dynamicImportInWorker?: boolean | undefined;
|
|
3453
|
-
optionalChaining?: boolean | undefined;
|
|
3454
|
-
templateLiteral?: boolean | undefined;
|
|
3455
|
-
asyncFunction?: boolean | undefined;
|
|
3456
|
-
} | undefined;
|
|
3457
|
-
charset?: boolean | undefined;
|
|
3458
3493
|
chunkLoadTimeout?: number | undefined;
|
|
3494
|
+
charset?: boolean | undefined;
|
|
3459
3495
|
compareBeforeEmit?: boolean | undefined;
|
|
3460
|
-
libraryExport?: string | string[] | undefined;
|
|
3461
|
-
libraryTarget?: string | undefined;
|
|
3462
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
3463
3496
|
} | undefined;
|
|
3464
|
-
resolveLoader?: t.ResolveOptions | undefined;
|
|
3465
3497
|
externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
|
|
3466
3498
|
externalsPresets?: {
|
|
3467
3499
|
web?: boolean | undefined;
|
|
3468
3500
|
node?: boolean | undefined;
|
|
3469
3501
|
nwjs?: boolean | undefined;
|
|
3502
|
+
webAsync?: boolean | undefined;
|
|
3470
3503
|
electron?: boolean | undefined;
|
|
3471
3504
|
electronMain?: boolean | undefined;
|
|
3472
3505
|
electronPreload?: boolean | undefined;
|
|
3473
3506
|
electronRenderer?: boolean | undefined;
|
|
3474
|
-
webAsync?: boolean | undefined;
|
|
3475
3507
|
} | undefined;
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3508
|
+
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
|
3509
|
+
watchOptions?: {
|
|
3510
|
+
aggregateTimeout?: number | undefined;
|
|
3511
|
+
followSymlinks?: boolean | undefined;
|
|
3512
|
+
ignored?: string | RegExp | string[] | undefined;
|
|
3513
|
+
poll?: number | boolean | undefined;
|
|
3514
|
+
stdin?: boolean | undefined;
|
|
3483
3515
|
} | undefined;
|
|
3484
|
-
|
|
3516
|
+
watch?: boolean | undefined;
|
|
3485
3517
|
optimization?: {
|
|
3486
3518
|
usedExports?: boolean | "global" | undefined;
|
|
3487
3519
|
providedExports?: boolean | undefined;
|
|
3488
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
3489
|
-
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3490
|
-
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
3491
|
-
minimize?: boolean | undefined;
|
|
3492
|
-
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
3493
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
3494
3520
|
splitChunks?: false | {
|
|
3495
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3496
3521
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
3497
3522
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3523
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3498
3524
|
usedExports?: boolean | undefined;
|
|
3499
3525
|
defaultSizeTypes?: string[] | undefined;
|
|
3500
3526
|
cacheGroups?: Record<string, false | {
|
|
3501
|
-
type?: string | RegExp | undefined;
|
|
3502
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
3503
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3504
3527
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
3505
3528
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3529
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
3530
|
+
type?: string | RegExp | undefined;
|
|
3531
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3506
3532
|
usedExports?: boolean | undefined;
|
|
3507
3533
|
defaultSizeTypes?: string[] | undefined;
|
|
3508
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
3509
3534
|
priority?: number | undefined;
|
|
3510
3535
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
3511
3536
|
moduleGraph: ModuleGraph;
|
|
3512
3537
|
chunkGraph: ChunkGraph;
|
|
3513
3538
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
3514
3539
|
minSize?: number | Record<string, number> | undefined;
|
|
3540
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
3515
3541
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
3516
3542
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
3517
3543
|
minChunks?: number | undefined;
|
|
@@ -3522,16 +3548,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3522
3548
|
reuseExistingChunk?: boolean | undefined;
|
|
3523
3549
|
idHint?: string | undefined;
|
|
3524
3550
|
}> | undefined;
|
|
3525
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
3526
3551
|
fallbackCacheGroup?: {
|
|
3527
3552
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3528
|
-
maxSize?: number | undefined;
|
|
3529
3553
|
minSize?: number | undefined;
|
|
3554
|
+
maxSize?: number | undefined;
|
|
3530
3555
|
maxAsyncSize?: number | undefined;
|
|
3531
3556
|
maxInitialSize?: number | undefined;
|
|
3532
3557
|
automaticNameDelimiter?: string | undefined;
|
|
3533
3558
|
} | undefined;
|
|
3534
3559
|
minSize?: number | Record<string, number> | undefined;
|
|
3560
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
3535
3561
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
3536
3562
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
3537
3563
|
hidePathInfo?: boolean | undefined;
|
|
@@ -3540,6 +3566,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3540
3566
|
maxInitialRequests?: number | undefined;
|
|
3541
3567
|
automaticNameDelimiter?: string | undefined;
|
|
3542
3568
|
} | undefined;
|
|
3569
|
+
minimize?: boolean | undefined;
|
|
3570
|
+
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
3571
|
+
sideEffects?: boolean | "flag" | undefined;
|
|
3572
|
+
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3573
|
+
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
|
3574
|
+
mergeDuplicateChunks?: boolean | undefined;
|
|
3543
3575
|
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
3544
3576
|
name?: string | ((args_0: {
|
|
3545
3577
|
name: string;
|
|
@@ -3550,30 +3582,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3550
3582
|
realContentHash?: boolean | undefined;
|
|
3551
3583
|
concatenateModules?: boolean | undefined;
|
|
3552
3584
|
innerGraph?: boolean | undefined;
|
|
3553
|
-
mangleExports?: boolean | "
|
|
3585
|
+
mangleExports?: boolean | "deterministic" | "size" | undefined;
|
|
3554
3586
|
nodeEnv?: string | false | undefined;
|
|
3555
3587
|
emitOnErrors?: boolean | undefined;
|
|
3556
3588
|
avoidEntryIife?: boolean | undefined;
|
|
3557
3589
|
} | undefined;
|
|
3590
|
+
resolveLoader?: t.ResolveOptions | undefined;
|
|
3558
3591
|
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
3559
|
-
watch?: boolean | undefined;
|
|
3560
|
-
watchOptions?: {
|
|
3561
|
-
aggregateTimeout?: number | undefined;
|
|
3562
|
-
followSymlinks?: boolean | undefined;
|
|
3563
|
-
ignored?: string | RegExp | string[] | undefined;
|
|
3564
|
-
poll?: number | boolean | undefined;
|
|
3565
|
-
stdin?: boolean | undefined;
|
|
3566
|
-
} | undefined;
|
|
3567
3592
|
devServer?: t.DevServer | undefined;
|
|
3568
|
-
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
|
3569
3593
|
bail?: boolean | undefined;
|
|
3570
3594
|
}, {
|
|
3571
|
-
dependencies?: string[] | undefined;
|
|
3572
|
-
context?: string | undefined;
|
|
3573
3595
|
name?: string | undefined;
|
|
3574
3596
|
module?: {
|
|
3575
|
-
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3576
|
-
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3577
3597
|
parser?: {
|
|
3578
3598
|
css?: {
|
|
3579
3599
|
namedExports?: boolean | undefined;
|
|
@@ -3682,14 +3702,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3682
3702
|
asset?: {
|
|
3683
3703
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3684
3704
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3705
|
+
emit?: boolean | undefined;
|
|
3685
3706
|
dataUrl?: {
|
|
3686
|
-
encoding?: false | "base64" | undefined;
|
|
3687
3707
|
mimetype?: string | undefined;
|
|
3688
|
-
|
|
3708
|
+
encoding?: false | "base64" | undefined;
|
|
3709
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
3689
3710
|
module: Module;
|
|
3690
3711
|
filename: string;
|
|
3691
3712
|
}, ...args: unknown[]) => string) | undefined;
|
|
3692
|
-
emit?: boolean | undefined;
|
|
3693
3713
|
} | undefined;
|
|
3694
3714
|
"css/auto"?: {
|
|
3695
3715
|
exportsOnly?: boolean | undefined;
|
|
@@ -3703,11 +3723,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3703
3723
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3704
3724
|
localIdentName?: string | undefined;
|
|
3705
3725
|
} | undefined;
|
|
3726
|
+
json?: {
|
|
3727
|
+
JSONParse?: boolean | undefined;
|
|
3728
|
+
} | undefined;
|
|
3706
3729
|
"asset/inline"?: {
|
|
3707
3730
|
dataUrl?: {
|
|
3708
|
-
encoding?: false | "base64" | undefined;
|
|
3709
3731
|
mimetype?: string | undefined;
|
|
3710
|
-
|
|
3732
|
+
encoding?: false | "base64" | undefined;
|
|
3733
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
|
3711
3734
|
module: Module;
|
|
3712
3735
|
filename: string;
|
|
3713
3736
|
}, ...args: unknown[]) => string) | undefined;
|
|
@@ -3718,8 +3741,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3718
3741
|
emit?: boolean | undefined;
|
|
3719
3742
|
} | undefined;
|
|
3720
3743
|
} | undefined;
|
|
3744
|
+
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3745
|
+
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3721
3746
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
3722
3747
|
} | undefined;
|
|
3748
|
+
resolve?: t.ResolveOptions | undefined;
|
|
3723
3749
|
profile?: boolean | undefined;
|
|
3724
3750
|
cache?: boolean | undefined;
|
|
3725
3751
|
amd?: false | Record<string, any> | undefined;
|
|
@@ -3729,11 +3755,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3729
3755
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3730
3756
|
} | undefined;
|
|
3731
3757
|
performance?: false | {
|
|
3732
|
-
maxAssetSize?: number | undefined;
|
|
3733
3758
|
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
3734
3759
|
hints?: false | "error" | "warning" | undefined;
|
|
3760
|
+
maxAssetSize?: number | undefined;
|
|
3735
3761
|
maxEntrypointSize?: number | undefined;
|
|
3736
3762
|
} | undefined;
|
|
3763
|
+
context?: string | undefined;
|
|
3737
3764
|
mode?: "development" | "production" | "none" | undefined;
|
|
3738
3765
|
experiments?: {
|
|
3739
3766
|
css?: boolean | undefined;
|
|
@@ -3742,12 +3769,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3742
3769
|
} | {
|
|
3743
3770
|
type: "persistent";
|
|
3744
3771
|
version?: string | undefined;
|
|
3772
|
+
buildDependencies?: string[] | undefined;
|
|
3745
3773
|
snapshot?: {
|
|
3746
3774
|
immutablePaths?: (string | RegExp)[] | undefined;
|
|
3747
3775
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
|
3748
3776
|
managedPaths?: (string | RegExp)[] | undefined;
|
|
3749
3777
|
} | undefined;
|
|
3750
|
-
buildDependencies?: string[] | undefined;
|
|
3751
3778
|
storage?: {
|
|
3752
3779
|
type: "filesystem";
|
|
3753
3780
|
directory?: string | undefined;
|
|
@@ -3755,8 +3782,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3755
3782
|
} | undefined;
|
|
3756
3783
|
lazyCompilation?: boolean | {
|
|
3757
3784
|
entries?: boolean | undefined;
|
|
3758
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
3759
|
-
imports?: boolean | undefined;
|
|
3760
3785
|
backend?: {
|
|
3761
3786
|
client?: string | undefined;
|
|
3762
3787
|
listen?: number | {
|
|
@@ -3772,6 +3797,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3772
3797
|
protocol?: "http" | "https" | undefined;
|
|
3773
3798
|
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
3774
3799
|
} | undefined;
|
|
3800
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
|
3801
|
+
imports?: boolean | undefined;
|
|
3775
3802
|
} | undefined;
|
|
3776
3803
|
asyncWebAssembly?: boolean | undefined;
|
|
3777
3804
|
outputModule?: boolean | undefined;
|
|
@@ -3780,12 +3807,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3780
3807
|
incremental?: boolean | {
|
|
3781
3808
|
providedExports?: boolean | undefined;
|
|
3782
3809
|
make?: boolean | undefined;
|
|
3783
|
-
inferAsyncModules?: boolean | undefined;
|
|
3784
|
-
dependenciesDiagnostics?: boolean | undefined;
|
|
3785
3810
|
sideEffects?: boolean | undefined;
|
|
3786
|
-
buildChunkGraph?: boolean | undefined;
|
|
3787
3811
|
moduleIds?: boolean | undefined;
|
|
3788
3812
|
chunkIds?: boolean | undefined;
|
|
3813
|
+
inferAsyncModules?: boolean | undefined;
|
|
3814
|
+
dependenciesDiagnostics?: boolean | undefined;
|
|
3815
|
+
buildChunkGraph?: boolean | undefined;
|
|
3789
3816
|
modulesHashes?: boolean | undefined;
|
|
3790
3817
|
modulesCodegen?: boolean | undefined;
|
|
3791
3818
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -3805,16 +3832,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3805
3832
|
} | undefined;
|
|
3806
3833
|
} | undefined;
|
|
3807
3834
|
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;
|
|
3808
|
-
|
|
3835
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
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;
|
|
3809
3837
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3838
|
+
ids?: boolean | undefined;
|
|
3839
|
+
runtime?: boolean | undefined;
|
|
3840
|
+
hash?: boolean | undefined;
|
|
3810
3841
|
modules?: boolean | undefined;
|
|
3811
|
-
chunks?: boolean | undefined;
|
|
3812
3842
|
all?: boolean | undefined;
|
|
3813
3843
|
version?: boolean | undefined;
|
|
3814
|
-
runtime?: boolean | undefined;
|
|
3815
3844
|
publicPath?: boolean | undefined;
|
|
3816
3845
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3817
3846
|
assets?: boolean | undefined;
|
|
3847
|
+
chunks?: boolean | undefined;
|
|
3818
3848
|
entrypoints?: boolean | "auto" | undefined;
|
|
3819
3849
|
chunkGroups?: boolean | undefined;
|
|
3820
3850
|
warnings?: boolean | undefined;
|
|
@@ -3822,12 +3852,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3822
3852
|
errors?: boolean | undefined;
|
|
3823
3853
|
errorsCount?: boolean | undefined;
|
|
3824
3854
|
colors?: boolean | undefined;
|
|
3825
|
-
hash?: boolean | undefined;
|
|
3826
3855
|
reasons?: boolean | undefined;
|
|
3827
3856
|
outputPath?: boolean | undefined;
|
|
3828
3857
|
chunkModules?: boolean | undefined;
|
|
3829
3858
|
chunkRelations?: boolean | undefined;
|
|
3830
|
-
ids?: boolean | undefined;
|
|
3831
3859
|
timings?: boolean | undefined;
|
|
3832
3860
|
builtAt?: boolean | undefined;
|
|
3833
3861
|
moduleAssets?: boolean | undefined;
|
|
@@ -3884,12 +3912,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3884
3912
|
errorsSpace?: number | undefined;
|
|
3885
3913
|
warningsSpace?: number | undefined;
|
|
3886
3914
|
} | undefined;
|
|
3887
|
-
|
|
3888
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
3889
|
-
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;
|
|
3915
|
+
dependencies?: string[] | undefined;
|
|
3890
3916
|
entry?: string | string[] | Record<string, string | string[] | {
|
|
3891
3917
|
import: string | string[];
|
|
3892
|
-
layer?: string | null | undefined;
|
|
3893
3918
|
runtime?: string | false | undefined;
|
|
3894
3919
|
chunkLoading?: string | false | undefined;
|
|
3895
3920
|
asyncChunks?: boolean | undefined;
|
|
@@ -3913,11 +3938,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3913
3938
|
export?: string | string[] | undefined;
|
|
3914
3939
|
umdNamedDefine?: boolean | undefined;
|
|
3915
3940
|
} | undefined;
|
|
3941
|
+
layer?: string | null | undefined;
|
|
3916
3942
|
wasmLoading?: string | false | undefined;
|
|
3917
3943
|
dependOn?: string | string[] | undefined;
|
|
3918
3944
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
3919
3945
|
import: string | string[];
|
|
3920
|
-
layer?: string | null | undefined;
|
|
3921
3946
|
runtime?: string | false | undefined;
|
|
3922
3947
|
chunkLoading?: string | false | undefined;
|
|
3923
3948
|
asyncChunks?: boolean | undefined;
|
|
@@ -3941,11 +3966,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3941
3966
|
export?: string | string[] | undefined;
|
|
3942
3967
|
umdNamedDefine?: boolean | undefined;
|
|
3943
3968
|
} | undefined;
|
|
3969
|
+
layer?: string | null | undefined;
|
|
3944
3970
|
wasmLoading?: string | false | undefined;
|
|
3945
3971
|
dependOn?: string | string[] | undefined;
|
|
3946
3972
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
|
3947
3973
|
import: string | string[];
|
|
3948
|
-
layer?: string | null | undefined;
|
|
3949
3974
|
runtime?: string | false | undefined;
|
|
3950
3975
|
chunkLoading?: string | false | undefined;
|
|
3951
3976
|
asyncChunks?: boolean | undefined;
|
|
@@ -3969,9 +3994,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3969
3994
|
export?: string | string[] | undefined;
|
|
3970
3995
|
umdNamedDefine?: boolean | undefined;
|
|
3971
3996
|
} | undefined;
|
|
3997
|
+
layer?: string | null | undefined;
|
|
3972
3998
|
wasmLoading?: string | false | undefined;
|
|
3973
3999
|
dependOn?: string | string[] | undefined;
|
|
3974
4000
|
}>>) | undefined;
|
|
4001
|
+
infrastructureLogging?: {
|
|
4002
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
4003
|
+
colors?: boolean | undefined;
|
|
4004
|
+
level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined;
|
|
4005
|
+
console?: Console | undefined;
|
|
4006
|
+
appendOnly?: boolean | undefined;
|
|
4007
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
4008
|
+
} | undefined;
|
|
4009
|
+
loader?: Record<string, any> | undefined;
|
|
4010
|
+
snapshot?: {} | undefined;
|
|
4011
|
+
extends?: string | string[] | undefined;
|
|
3975
4012
|
output?: {
|
|
3976
4013
|
module?: boolean | undefined;
|
|
3977
4014
|
path?: string | undefined;
|
|
@@ -4009,11 +4046,27 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4009
4046
|
root?: string | undefined;
|
|
4010
4047
|
} | undefined;
|
|
4011
4048
|
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;
|
|
4012
4066
|
pathinfo?: boolean | "verbose" | undefined;
|
|
4013
4067
|
clean?: boolean | {
|
|
4014
4068
|
keep?: string | undefined;
|
|
4015
4069
|
} | undefined;
|
|
4016
|
-
chunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4017
4070
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
4018
4071
|
cssFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4019
4072
|
cssChunkFilename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -4024,6 +4077,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4024
4077
|
uniqueName?: string | undefined;
|
|
4025
4078
|
chunkLoadingGlobal?: string | undefined;
|
|
4026
4079
|
enabledLibraryTypes?: string[] | undefined;
|
|
4080
|
+
libraryExport?: string | string[] | undefined;
|
|
4081
|
+
libraryTarget?: string | undefined;
|
|
4082
|
+
strictModuleExceptionHandling?: boolean | undefined;
|
|
4027
4083
|
strictModuleErrorHandling?: boolean | undefined;
|
|
4028
4084
|
globalObject?: string | undefined;
|
|
4029
4085
|
importFunctionName?: string | undefined;
|
|
@@ -4049,80 +4105,54 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4049
4105
|
devtoolNamespace?: string | undefined;
|
|
4050
4106
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
4051
4107
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
4052
|
-
environment?: {
|
|
4053
|
-
module?: boolean | undefined;
|
|
4054
|
-
document?: boolean | undefined;
|
|
4055
|
-
nodePrefixForCoreModules?: boolean | undefined;
|
|
4056
|
-
globalThis?: boolean | undefined;
|
|
4057
|
-
bigIntLiteral?: boolean | undefined;
|
|
4058
|
-
const?: boolean | undefined;
|
|
4059
|
-
arrowFunction?: boolean | undefined;
|
|
4060
|
-
forOf?: boolean | undefined;
|
|
4061
|
-
destructuring?: boolean | undefined;
|
|
4062
|
-
dynamicImport?: boolean | undefined;
|
|
4063
|
-
dynamicImportInWorker?: boolean | undefined;
|
|
4064
|
-
optionalChaining?: boolean | undefined;
|
|
4065
|
-
templateLiteral?: boolean | undefined;
|
|
4066
|
-
asyncFunction?: boolean | undefined;
|
|
4067
|
-
} | undefined;
|
|
4068
|
-
charset?: boolean | undefined;
|
|
4069
4108
|
chunkLoadTimeout?: number | undefined;
|
|
4109
|
+
charset?: boolean | undefined;
|
|
4070
4110
|
compareBeforeEmit?: boolean | undefined;
|
|
4071
|
-
libraryExport?: string | string[] | undefined;
|
|
4072
|
-
libraryTarget?: string | undefined;
|
|
4073
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
4074
4111
|
} | undefined;
|
|
4075
|
-
resolveLoader?: t.ResolveOptions | undefined;
|
|
4076
4112
|
externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
|
|
4077
4113
|
externalsPresets?: {
|
|
4078
4114
|
web?: boolean | undefined;
|
|
4079
4115
|
node?: boolean | undefined;
|
|
4080
4116
|
nwjs?: boolean | undefined;
|
|
4117
|
+
webAsync?: boolean | undefined;
|
|
4081
4118
|
electron?: boolean | undefined;
|
|
4082
4119
|
electronMain?: boolean | undefined;
|
|
4083
4120
|
electronPreload?: boolean | undefined;
|
|
4084
4121
|
electronRenderer?: boolean | undefined;
|
|
4085
|
-
webAsync?: boolean | undefined;
|
|
4086
4122
|
} | undefined;
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4123
|
+
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
|
4124
|
+
watchOptions?: {
|
|
4125
|
+
aggregateTimeout?: number | undefined;
|
|
4126
|
+
followSymlinks?: boolean | undefined;
|
|
4127
|
+
ignored?: string | RegExp | string[] | undefined;
|
|
4128
|
+
poll?: number | boolean | undefined;
|
|
4129
|
+
stdin?: boolean | undefined;
|
|
4094
4130
|
} | undefined;
|
|
4095
|
-
|
|
4131
|
+
watch?: boolean | undefined;
|
|
4096
4132
|
optimization?: {
|
|
4097
4133
|
usedExports?: boolean | "global" | undefined;
|
|
4098
4134
|
providedExports?: boolean | undefined;
|
|
4099
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
4100
|
-
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
4101
|
-
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
4102
|
-
minimize?: boolean | undefined;
|
|
4103
|
-
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
4104
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
4105
4135
|
splitChunks?: false | {
|
|
4106
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4107
4136
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
4108
4137
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4138
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4109
4139
|
usedExports?: boolean | undefined;
|
|
4110
4140
|
defaultSizeTypes?: string[] | undefined;
|
|
4111
4141
|
cacheGroups?: Record<string, false | {
|
|
4112
|
-
type?: string | RegExp | undefined;
|
|
4113
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
4114
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4115
4142
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
4116
4143
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4144
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
4145
|
+
type?: string | RegExp | undefined;
|
|
4146
|
+
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4117
4147
|
usedExports?: boolean | undefined;
|
|
4118
4148
|
defaultSizeTypes?: string[] | undefined;
|
|
4119
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
4120
4149
|
priority?: number | undefined;
|
|
4121
4150
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
4122
4151
|
moduleGraph: ModuleGraph;
|
|
4123
4152
|
chunkGraph: ChunkGraph;
|
|
4124
4153
|
}, ...args: unknown[]) => boolean) | undefined;
|
|
4125
4154
|
minSize?: number | Record<string, number> | undefined;
|
|
4155
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
4126
4156
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
4127
4157
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
4128
4158
|
minChunks?: number | undefined;
|
|
@@ -4133,16 +4163,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4133
4163
|
reuseExistingChunk?: boolean | undefined;
|
|
4134
4164
|
idHint?: string | undefined;
|
|
4135
4165
|
}> | undefined;
|
|
4136
|
-
maxSize?: number | Record<string, number> | undefined;
|
|
4137
4166
|
fallbackCacheGroup?: {
|
|
4138
4167
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4139
|
-
maxSize?: number | undefined;
|
|
4140
4168
|
minSize?: number | undefined;
|
|
4169
|
+
maxSize?: number | undefined;
|
|
4141
4170
|
maxAsyncSize?: number | undefined;
|
|
4142
4171
|
maxInitialSize?: number | undefined;
|
|
4143
4172
|
automaticNameDelimiter?: string | undefined;
|
|
4144
4173
|
} | undefined;
|
|
4145
4174
|
minSize?: number | Record<string, number> | undefined;
|
|
4175
|
+
maxSize?: number | Record<string, number> | undefined;
|
|
4146
4176
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
4147
4177
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
4148
4178
|
hidePathInfo?: boolean | undefined;
|
|
@@ -4151,6 +4181,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4151
4181
|
maxInitialRequests?: number | undefined;
|
|
4152
4182
|
automaticNameDelimiter?: string | undefined;
|
|
4153
4183
|
} | undefined;
|
|
4184
|
+
minimize?: boolean | undefined;
|
|
4185
|
+
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
4186
|
+
sideEffects?: boolean | "flag" | undefined;
|
|
4187
|
+
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
4188
|
+
chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined;
|
|
4189
|
+
mergeDuplicateChunks?: boolean | undefined;
|
|
4154
4190
|
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
4155
4191
|
name?: string | ((args_0: {
|
|
4156
4192
|
name: string;
|
|
@@ -4161,21 +4197,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4161
4197
|
realContentHash?: boolean | undefined;
|
|
4162
4198
|
concatenateModules?: boolean | undefined;
|
|
4163
4199
|
innerGraph?: boolean | undefined;
|
|
4164
|
-
mangleExports?: boolean | "
|
|
4200
|
+
mangleExports?: boolean | "deterministic" | "size" | undefined;
|
|
4165
4201
|
nodeEnv?: string | false | undefined;
|
|
4166
4202
|
emitOnErrors?: boolean | undefined;
|
|
4167
4203
|
avoidEntryIife?: boolean | undefined;
|
|
4168
4204
|
} | undefined;
|
|
4205
|
+
resolveLoader?: t.ResolveOptions | undefined;
|
|
4169
4206
|
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
4170
|
-
watch?: boolean | undefined;
|
|
4171
|
-
watchOptions?: {
|
|
4172
|
-
aggregateTimeout?: number | undefined;
|
|
4173
|
-
followSymlinks?: boolean | undefined;
|
|
4174
|
-
ignored?: string | RegExp | string[] | undefined;
|
|
4175
|
-
poll?: number | boolean | undefined;
|
|
4176
|
-
stdin?: boolean | undefined;
|
|
4177
|
-
} | undefined;
|
|
4178
4207
|
devServer?: t.DevServer | undefined;
|
|
4179
|
-
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
|
4180
4208
|
bail?: boolean | undefined;
|
|
4181
4209
|
}>;
|