@rspack/core 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chunk.d.ts +1 -2
- package/dist/Compilation.d.ts +16 -3
- package/dist/Dependency.d.ts +2 -2
- package/dist/builtin-loader/lightningcss/index.d.ts +5 -0
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +13 -0
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +10 -0
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +18 -0
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +5 -0
- package/dist/builtin-plugin/index.d.ts +3 -0
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +63 -13
- package/dist/config/utils.d.ts +16 -0
- package/dist/config/zod.d.ts +197 -215
- package/dist/exports.d.ts +2 -0
- package/dist/index.js +1847 -1035
- package/dist/lib/DllPlugin.d.ts +42 -0
- package/dist/lib/DllReferencePlugin.d.ts +119 -0
- package/package.json +2 -2
package/dist/config/zod.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { Chunk } from "../Chunk";
|
|
|
4
4
|
import type { Compilation, PathData } from "../Compilation";
|
|
5
5
|
import { Module } from "../Module";
|
|
6
6
|
import type * as t from "./types";
|
|
7
|
-
|
|
7
|
+
import { ZodRspackCrossChecker } from "./utils";
|
|
8
|
+
export declare const externalsType: z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>;
|
|
8
9
|
export declare const rspackOptions: z.ZodObject<{
|
|
9
10
|
name: z.ZodOptional<z.ZodString>;
|
|
10
11
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -805,6 +806,60 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
805
806
|
target: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.ZodType<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.ZodType<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.ZodType<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.ZodType<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.ZodType<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, "many">]>>;
|
|
806
807
|
mode: z.ZodOptional<z.ZodEnum<["development", "production", "none"]>>;
|
|
807
808
|
experiments: z.ZodOptional<z.ZodObject<{
|
|
809
|
+
cache: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodUnion<[z.ZodObject<{
|
|
810
|
+
type: z.ZodEnum<["memory"]>;
|
|
811
|
+
}, "strip", z.ZodTypeAny, {
|
|
812
|
+
type: "memory";
|
|
813
|
+
}, {
|
|
814
|
+
type: "memory";
|
|
815
|
+
}>, z.ZodObject<{
|
|
816
|
+
type: z.ZodEnum<["persistent"]>;
|
|
817
|
+
snapshot: z.ZodObject<{
|
|
818
|
+
immutablePaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
|
|
819
|
+
unmanagedPaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
|
|
820
|
+
managedPaths: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
|
|
821
|
+
}, "strict", z.ZodTypeAny, {
|
|
822
|
+
immutablePaths: (string | RegExp)[];
|
|
823
|
+
unmanagedPaths: (string | RegExp)[];
|
|
824
|
+
managedPaths: (string | RegExp)[];
|
|
825
|
+
}, {
|
|
826
|
+
immutablePaths: (string | RegExp)[];
|
|
827
|
+
unmanagedPaths: (string | RegExp)[];
|
|
828
|
+
managedPaths: (string | RegExp)[];
|
|
829
|
+
}>;
|
|
830
|
+
storage: z.ZodObject<{
|
|
831
|
+
type: z.ZodEnum<["filesystem"]>;
|
|
832
|
+
directory: z.ZodString;
|
|
833
|
+
}, "strict", z.ZodTypeAny, {
|
|
834
|
+
type: "filesystem";
|
|
835
|
+
directory: string;
|
|
836
|
+
}, {
|
|
837
|
+
type: "filesystem";
|
|
838
|
+
directory: string;
|
|
839
|
+
}>;
|
|
840
|
+
}, "strip", z.ZodTypeAny, {
|
|
841
|
+
type: "persistent";
|
|
842
|
+
snapshot: {
|
|
843
|
+
immutablePaths: (string | RegExp)[];
|
|
844
|
+
unmanagedPaths: (string | RegExp)[];
|
|
845
|
+
managedPaths: (string | RegExp)[];
|
|
846
|
+
};
|
|
847
|
+
storage: {
|
|
848
|
+
type: "filesystem";
|
|
849
|
+
directory: string;
|
|
850
|
+
};
|
|
851
|
+
}, {
|
|
852
|
+
type: "persistent";
|
|
853
|
+
snapshot: {
|
|
854
|
+
immutablePaths: (string | RegExp)[];
|
|
855
|
+
unmanagedPaths: (string | RegExp)[];
|
|
856
|
+
managedPaths: (string | RegExp)[];
|
|
857
|
+
};
|
|
858
|
+
storage: {
|
|
859
|
+
type: "filesystem";
|
|
860
|
+
directory: string;
|
|
861
|
+
};
|
|
862
|
+
}>]>]>;
|
|
808
863
|
lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
|
|
809
864
|
backend: z.ZodOptional<z.ZodObject<{
|
|
810
865
|
client: z.ZodOptional<z.ZodString>;
|
|
@@ -911,34 +966,43 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
911
966
|
layers: z.ZodOptional<z.ZodBoolean>;
|
|
912
967
|
incremental: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
913
968
|
make: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
-
emitAssets: z.ZodOptional<z.ZodBoolean>;
|
|
915
969
|
inferAsyncModules: z.ZodOptional<z.ZodBoolean>;
|
|
916
970
|
providedExports: z.ZodOptional<z.ZodBoolean>;
|
|
917
971
|
dependenciesDiagnostics: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
+
buildChunkGraph: z.ZodOptional<z.ZodBoolean>;
|
|
918
973
|
modulesHashes: z.ZodOptional<z.ZodBoolean>;
|
|
919
974
|
modulesCodegen: z.ZodOptional<z.ZodBoolean>;
|
|
920
975
|
modulesRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
|
|
921
|
-
|
|
976
|
+
chunksRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
|
|
977
|
+
chunksHashes: z.ZodOptional<z.ZodBoolean>;
|
|
978
|
+
chunksRender: z.ZodOptional<z.ZodBoolean>;
|
|
979
|
+
emitAssets: z.ZodOptional<z.ZodBoolean>;
|
|
922
980
|
}, "strict", z.ZodTypeAny, {
|
|
923
981
|
make?: boolean | undefined;
|
|
924
982
|
providedExports?: boolean | undefined;
|
|
925
|
-
emitAssets?: boolean | undefined;
|
|
926
983
|
inferAsyncModules?: boolean | undefined;
|
|
927
984
|
dependenciesDiagnostics?: boolean | undefined;
|
|
985
|
+
buildChunkGraph?: boolean | undefined;
|
|
928
986
|
modulesHashes?: boolean | undefined;
|
|
929
987
|
modulesCodegen?: boolean | undefined;
|
|
930
988
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
931
|
-
|
|
989
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
990
|
+
chunksHashes?: boolean | undefined;
|
|
991
|
+
chunksRender?: boolean | undefined;
|
|
992
|
+
emitAssets?: boolean | undefined;
|
|
932
993
|
}, {
|
|
933
994
|
make?: boolean | undefined;
|
|
934
995
|
providedExports?: boolean | undefined;
|
|
935
|
-
emitAssets?: boolean | undefined;
|
|
936
996
|
inferAsyncModules?: boolean | undefined;
|
|
937
997
|
dependenciesDiagnostics?: boolean | undefined;
|
|
998
|
+
buildChunkGraph?: boolean | undefined;
|
|
938
999
|
modulesHashes?: boolean | undefined;
|
|
939
1000
|
modulesCodegen?: boolean | undefined;
|
|
940
1001
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
941
|
-
|
|
1002
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
1003
|
+
chunksHashes?: boolean | undefined;
|
|
1004
|
+
chunksRender?: boolean | undefined;
|
|
1005
|
+
emitAssets?: boolean | undefined;
|
|
942
1006
|
}>]>>;
|
|
943
1007
|
futureDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
944
1008
|
rspackFuture: z.ZodOptional<z.ZodObject<{
|
|
@@ -970,18 +1034,35 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
970
1034
|
}>>;
|
|
971
1035
|
}, "strict", z.ZodTypeAny, {
|
|
972
1036
|
css?: boolean | undefined;
|
|
1037
|
+
cache?: boolean | {
|
|
1038
|
+
type: "memory";
|
|
1039
|
+
} | {
|
|
1040
|
+
type: "persistent";
|
|
1041
|
+
snapshot: {
|
|
1042
|
+
immutablePaths: (string | RegExp)[];
|
|
1043
|
+
unmanagedPaths: (string | RegExp)[];
|
|
1044
|
+
managedPaths: (string | RegExp)[];
|
|
1045
|
+
};
|
|
1046
|
+
storage: {
|
|
1047
|
+
type: "filesystem";
|
|
1048
|
+
directory: string;
|
|
1049
|
+
};
|
|
1050
|
+
} | undefined;
|
|
973
1051
|
topLevelAwait?: boolean | undefined;
|
|
974
1052
|
layers?: boolean | undefined;
|
|
975
1053
|
incremental?: boolean | {
|
|
976
1054
|
make?: boolean | undefined;
|
|
977
1055
|
providedExports?: boolean | undefined;
|
|
978
|
-
emitAssets?: boolean | undefined;
|
|
979
1056
|
inferAsyncModules?: boolean | undefined;
|
|
980
1057
|
dependenciesDiagnostics?: boolean | undefined;
|
|
1058
|
+
buildChunkGraph?: boolean | undefined;
|
|
981
1059
|
modulesHashes?: boolean | undefined;
|
|
982
1060
|
modulesCodegen?: boolean | undefined;
|
|
983
1061
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
984
|
-
|
|
1062
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
1063
|
+
chunksHashes?: boolean | undefined;
|
|
1064
|
+
chunksRender?: boolean | undefined;
|
|
1065
|
+
emitAssets?: boolean | undefined;
|
|
985
1066
|
} | undefined;
|
|
986
1067
|
rspackFuture?: {
|
|
987
1068
|
bundlerInfo?: {
|
|
@@ -1014,18 +1095,35 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1014
1095
|
} | undefined;
|
|
1015
1096
|
}, {
|
|
1016
1097
|
css?: boolean | undefined;
|
|
1098
|
+
cache?: boolean | {
|
|
1099
|
+
type: "memory";
|
|
1100
|
+
} | {
|
|
1101
|
+
type: "persistent";
|
|
1102
|
+
snapshot: {
|
|
1103
|
+
immutablePaths: (string | RegExp)[];
|
|
1104
|
+
unmanagedPaths: (string | RegExp)[];
|
|
1105
|
+
managedPaths: (string | RegExp)[];
|
|
1106
|
+
};
|
|
1107
|
+
storage: {
|
|
1108
|
+
type: "filesystem";
|
|
1109
|
+
directory: string;
|
|
1110
|
+
};
|
|
1111
|
+
} | undefined;
|
|
1017
1112
|
topLevelAwait?: boolean | undefined;
|
|
1018
1113
|
layers?: boolean | undefined;
|
|
1019
1114
|
incremental?: boolean | {
|
|
1020
1115
|
make?: boolean | undefined;
|
|
1021
1116
|
providedExports?: boolean | undefined;
|
|
1022
|
-
emitAssets?: boolean | undefined;
|
|
1023
1117
|
inferAsyncModules?: boolean | undefined;
|
|
1024
1118
|
dependenciesDiagnostics?: boolean | undefined;
|
|
1119
|
+
buildChunkGraph?: boolean | undefined;
|
|
1025
1120
|
modulesHashes?: boolean | undefined;
|
|
1026
1121
|
modulesCodegen?: boolean | undefined;
|
|
1027
1122
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
1028
|
-
|
|
1123
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
1124
|
+
chunksHashes?: boolean | undefined;
|
|
1125
|
+
chunksRender?: boolean | undefined;
|
|
1126
|
+
emitAssets?: boolean | undefined;
|
|
1029
1127
|
} | undefined;
|
|
1030
1128
|
rspackFuture?: {
|
|
1031
1129
|
bundlerInfo?: {
|
|
@@ -1057,22 +1155,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1057
1155
|
} | undefined;
|
|
1058
1156
|
} | undefined;
|
|
1059
1157
|
}>>;
|
|
1060
|
-
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
1061
|
-
root: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1062
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1063
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1064
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1065
|
-
}, "strict", z.ZodTypeAny, {
|
|
1066
|
-
root: string | string[];
|
|
1067
|
-
commonjs: string | string[];
|
|
1068
|
-
commonjs2: string | string[];
|
|
1069
|
-
amd?: string | string[] | undefined;
|
|
1070
|
-
}, {
|
|
1071
|
-
root: string | string[];
|
|
1072
|
-
commonjs: string | string[];
|
|
1073
|
-
commonjs2: string | string[];
|
|
1074
|
-
amd?: string | string[] | undefined;
|
|
1075
|
-
}>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1158
|
+
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1076
1159
|
context: z.ZodOptional<z.ZodString>;
|
|
1077
1160
|
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1078
1161
|
request: z.ZodOptional<z.ZodString>;
|
|
@@ -1097,22 +1180,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1097
1180
|
contextInfo?: {
|
|
1098
1181
|
issuer: string;
|
|
1099
1182
|
} | undefined;
|
|
1100
|
-
}>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
1101
|
-
root: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1102
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1103
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1104
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1105
|
-
}, "strict", z.ZodTypeAny, {
|
|
1106
|
-
root: string | string[];
|
|
1107
|
-
commonjs: string | string[];
|
|
1108
|
-
commonjs2: string | string[];
|
|
1109
|
-
amd?: string | string[] | undefined;
|
|
1110
|
-
}, {
|
|
1111
|
-
root: string | string[];
|
|
1112
|
-
commonjs: string | string[];
|
|
1113
|
-
commonjs2: string | string[];
|
|
1114
|
-
amd?: string | string[] | undefined;
|
|
1115
|
-
}>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1183
|
+
}>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1116
1184
|
context: z.ZodOptional<z.ZodString>;
|
|
1117
1185
|
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1118
1186
|
request: z.ZodOptional<z.ZodString>;
|
|
@@ -1137,37 +1205,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1137
1205
|
contextInfo?: {
|
|
1138
1206
|
issuer: string;
|
|
1139
1207
|
} | undefined;
|
|
1140
|
-
}>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
1141
|
-
root: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1142
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1143
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1144
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1145
|
-
}, "strict", z.ZodTypeAny, {
|
|
1146
|
-
root: string | string[];
|
|
1147
|
-
commonjs: string | string[];
|
|
1148
|
-
commonjs2: string | string[];
|
|
1149
|
-
amd?: string | string[] | undefined;
|
|
1150
|
-
}, {
|
|
1151
|
-
root: string | string[];
|
|
1152
|
-
commonjs: string | string[];
|
|
1153
|
-
commonjs2: string | string[];
|
|
1154
|
-
amd?: string | string[] | undefined;
|
|
1155
|
-
}>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
1156
|
-
root: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1157
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1158
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1159
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1160
|
-
}, "strict", z.ZodTypeAny, {
|
|
1161
|
-
root: string | string[];
|
|
1162
|
-
commonjs: string | string[];
|
|
1163
|
-
commonjs2: string | string[];
|
|
1164
|
-
amd?: string | string[] | undefined;
|
|
1165
|
-
}, {
|
|
1166
|
-
root: string | string[];
|
|
1167
|
-
commonjs: string | string[];
|
|
1168
|
-
commonjs2: string | string[];
|
|
1169
|
-
amd?: string | string[] | undefined;
|
|
1170
|
-
}>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1208
|
+
}>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1171
1209
|
context: z.ZodOptional<z.ZodString>;
|
|
1172
1210
|
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1173
1211
|
request: z.ZodOptional<z.ZodString>;
|
|
@@ -1192,22 +1230,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1192
1230
|
contextInfo?: {
|
|
1193
1231
|
issuer: string;
|
|
1194
1232
|
} | undefined;
|
|
1195
|
-
}>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
1196
|
-
root: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1197
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1198
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1199
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1200
|
-
}, "strict", z.ZodTypeAny, {
|
|
1201
|
-
root: string | string[];
|
|
1202
|
-
commonjs: string | string[];
|
|
1203
|
-
commonjs2: string | string[];
|
|
1204
|
-
amd?: string | string[] | undefined;
|
|
1205
|
-
}, {
|
|
1206
|
-
root: string | string[];
|
|
1207
|
-
commonjs: string | string[];
|
|
1208
|
-
commonjs2: string | string[];
|
|
1209
|
-
amd?: string | string[] | undefined;
|
|
1210
|
-
}>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1233
|
+
}>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
1211
1234
|
context: z.ZodOptional<z.ZodString>;
|
|
1212
1235
|
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1213
1236
|
request: z.ZodOptional<z.ZodString>;
|
|
@@ -1232,23 +1255,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1232
1255
|
contextInfo?: {
|
|
1233
1256
|
issuer: string;
|
|
1234
1257
|
} | undefined;
|
|
1235
|
-
}>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>,
|
|
1236
|
-
|
|
1237
|
-
commonjs: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1238
|
-
commonjs2: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1239
|
-
amd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1240
|
-
}, "strict", z.ZodTypeAny, {
|
|
1241
|
-
root: string | string[];
|
|
1242
|
-
commonjs: string | string[];
|
|
1243
|
-
commonjs2: string | string[];
|
|
1244
|
-
amd?: string | string[] | undefined;
|
|
1245
|
-
}, {
|
|
1246
|
-
root: string | string[];
|
|
1247
|
-
commonjs: string | string[];
|
|
1248
|
-
commonjs2: string | string[];
|
|
1249
|
-
amd?: string | string[] | undefined;
|
|
1250
|
-
}>]>>>]>]>>;
|
|
1251
|
-
externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs"]>>;
|
|
1258
|
+
}>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
|
|
1259
|
+
externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>;
|
|
1252
1260
|
externalsPresets: z.ZodOptional<z.ZodObject<{
|
|
1253
1261
|
node: z.ZodOptional<z.ZodBoolean>;
|
|
1254
1262
|
web: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1988,12 +1996,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1988
1996
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
1989
1997
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
1990
1998
|
}, "strict", z.ZodTypeAny, {
|
|
1991
|
-
url?: boolean | "relative" | undefined;
|
|
1992
1999
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1993
2000
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1994
2001
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1995
2002
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
1996
2003
|
importMeta?: boolean | undefined;
|
|
2004
|
+
url?: boolean | "relative" | undefined;
|
|
1997
2005
|
exprContextCritical?: boolean | undefined;
|
|
1998
2006
|
wrappedContextCritical?: boolean | undefined;
|
|
1999
2007
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2008,12 +2016,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2008
2016
|
requireResolve?: boolean | undefined;
|
|
2009
2017
|
importDynamic?: boolean | undefined;
|
|
2010
2018
|
}, {
|
|
2011
|
-
url?: boolean | "relative" | undefined;
|
|
2012
2019
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2013
2020
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2014
2021
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2015
2022
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2016
2023
|
importMeta?: boolean | undefined;
|
|
2024
|
+
url?: boolean | "relative" | undefined;
|
|
2017
2025
|
exprContextCritical?: boolean | undefined;
|
|
2018
2026
|
wrappedContextCritical?: boolean | undefined;
|
|
2019
2027
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2049,12 +2057,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2049
2057
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
2050
2058
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
2051
2059
|
}, "strict", z.ZodTypeAny, {
|
|
2052
|
-
url?: boolean | "relative" | undefined;
|
|
2053
2060
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2054
2061
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2055
2062
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2056
2063
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2057
2064
|
importMeta?: boolean | undefined;
|
|
2065
|
+
url?: boolean | "relative" | undefined;
|
|
2058
2066
|
exprContextCritical?: boolean | undefined;
|
|
2059
2067
|
wrappedContextCritical?: boolean | undefined;
|
|
2060
2068
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2069,12 +2077,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2069
2077
|
requireResolve?: boolean | undefined;
|
|
2070
2078
|
importDynamic?: boolean | undefined;
|
|
2071
2079
|
}, {
|
|
2072
|
-
url?: boolean | "relative" | undefined;
|
|
2073
2080
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2074
2081
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2075
2082
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2076
2083
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2077
2084
|
importMeta?: boolean | undefined;
|
|
2085
|
+
url?: boolean | "relative" | undefined;
|
|
2078
2086
|
exprContextCritical?: boolean | undefined;
|
|
2079
2087
|
wrappedContextCritical?: boolean | undefined;
|
|
2080
2088
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2110,12 +2118,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2110
2118
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
2111
2119
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
2112
2120
|
}, "strict", z.ZodTypeAny, {
|
|
2113
|
-
url?: boolean | "relative" | undefined;
|
|
2114
2121
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2115
2122
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2116
2123
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2117
2124
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2118
2125
|
importMeta?: boolean | undefined;
|
|
2126
|
+
url?: boolean | "relative" | undefined;
|
|
2119
2127
|
exprContextCritical?: boolean | undefined;
|
|
2120
2128
|
wrappedContextCritical?: boolean | undefined;
|
|
2121
2129
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2130,12 +2138,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2130
2138
|
requireResolve?: boolean | undefined;
|
|
2131
2139
|
importDynamic?: boolean | undefined;
|
|
2132
2140
|
}, {
|
|
2133
|
-
url?: boolean | "relative" | undefined;
|
|
2134
2141
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2135
2142
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2136
2143
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2137
2144
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2138
2145
|
importMeta?: boolean | undefined;
|
|
2146
|
+
url?: boolean | "relative" | undefined;
|
|
2139
2147
|
exprContextCritical?: boolean | undefined;
|
|
2140
2148
|
wrappedContextCritical?: boolean | undefined;
|
|
2141
2149
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2171,12 +2179,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2171
2179
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
2172
2180
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
2173
2181
|
}, "strict", z.ZodTypeAny, {
|
|
2174
|
-
url?: boolean | "relative" | undefined;
|
|
2175
2182
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2176
2183
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2177
2184
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2178
2185
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2179
2186
|
importMeta?: boolean | undefined;
|
|
2187
|
+
url?: boolean | "relative" | undefined;
|
|
2180
2188
|
exprContextCritical?: boolean | undefined;
|
|
2181
2189
|
wrappedContextCritical?: boolean | undefined;
|
|
2182
2190
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2191,12 +2199,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2191
2199
|
requireResolve?: boolean | undefined;
|
|
2192
2200
|
importDynamic?: boolean | undefined;
|
|
2193
2201
|
}, {
|
|
2194
|
-
url?: boolean | "relative" | undefined;
|
|
2195
2202
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2196
2203
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2197
2204
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2198
2205
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2199
2206
|
importMeta?: boolean | undefined;
|
|
2207
|
+
url?: boolean | "relative" | undefined;
|
|
2200
2208
|
exprContextCritical?: boolean | undefined;
|
|
2201
2209
|
wrappedContextCritical?: boolean | undefined;
|
|
2202
2210
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2213,12 +2221,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2213
2221
|
}>>;
|
|
2214
2222
|
}, "strict", z.ZodTypeAny, {
|
|
2215
2223
|
javascript?: {
|
|
2216
|
-
url?: boolean | "relative" | undefined;
|
|
2217
2224
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2218
2225
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2219
2226
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2220
2227
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2221
2228
|
importMeta?: boolean | undefined;
|
|
2229
|
+
url?: boolean | "relative" | undefined;
|
|
2222
2230
|
exprContextCritical?: boolean | undefined;
|
|
2223
2231
|
wrappedContextCritical?: boolean | undefined;
|
|
2224
2232
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2248,12 +2256,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2248
2256
|
} | undefined;
|
|
2249
2257
|
} | undefined;
|
|
2250
2258
|
"javascript/auto"?: {
|
|
2251
|
-
url?: boolean | "relative" | undefined;
|
|
2252
2259
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2253
2260
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2254
2261
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2255
2262
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2256
2263
|
importMeta?: boolean | undefined;
|
|
2264
|
+
url?: boolean | "relative" | undefined;
|
|
2257
2265
|
exprContextCritical?: boolean | undefined;
|
|
2258
2266
|
wrappedContextCritical?: boolean | undefined;
|
|
2259
2267
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2269,12 +2277,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2269
2277
|
importDynamic?: boolean | undefined;
|
|
2270
2278
|
} | undefined;
|
|
2271
2279
|
"javascript/dynamic"?: {
|
|
2272
|
-
url?: boolean | "relative" | undefined;
|
|
2273
2280
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2274
2281
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2275
2282
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2276
2283
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2277
2284
|
importMeta?: boolean | undefined;
|
|
2285
|
+
url?: boolean | "relative" | undefined;
|
|
2278
2286
|
exprContextCritical?: boolean | undefined;
|
|
2279
2287
|
wrappedContextCritical?: boolean | undefined;
|
|
2280
2288
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2290,12 +2298,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2290
2298
|
importDynamic?: boolean | undefined;
|
|
2291
2299
|
} | undefined;
|
|
2292
2300
|
"javascript/esm"?: {
|
|
2293
|
-
url?: boolean | "relative" | undefined;
|
|
2294
2301
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2295
2302
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2296
2303
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2297
2304
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2298
2305
|
importMeta?: boolean | undefined;
|
|
2306
|
+
url?: boolean | "relative" | undefined;
|
|
2299
2307
|
exprContextCritical?: boolean | undefined;
|
|
2300
2308
|
wrappedContextCritical?: boolean | undefined;
|
|
2301
2309
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2312,12 +2320,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2312
2320
|
} | undefined;
|
|
2313
2321
|
}, {
|
|
2314
2322
|
javascript?: {
|
|
2315
|
-
url?: boolean | "relative" | undefined;
|
|
2316
2323
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2317
2324
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2318
2325
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2319
2326
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2320
2327
|
importMeta?: boolean | undefined;
|
|
2328
|
+
url?: boolean | "relative" | undefined;
|
|
2321
2329
|
exprContextCritical?: boolean | undefined;
|
|
2322
2330
|
wrappedContextCritical?: boolean | undefined;
|
|
2323
2331
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2347,12 +2355,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2347
2355
|
} | undefined;
|
|
2348
2356
|
} | undefined;
|
|
2349
2357
|
"javascript/auto"?: {
|
|
2350
|
-
url?: boolean | "relative" | undefined;
|
|
2351
2358
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2352
2359
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2353
2360
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2354
2361
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2355
2362
|
importMeta?: boolean | undefined;
|
|
2363
|
+
url?: boolean | "relative" | undefined;
|
|
2356
2364
|
exprContextCritical?: boolean | undefined;
|
|
2357
2365
|
wrappedContextCritical?: boolean | undefined;
|
|
2358
2366
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2368,12 +2376,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2368
2376
|
importDynamic?: boolean | undefined;
|
|
2369
2377
|
} | undefined;
|
|
2370
2378
|
"javascript/dynamic"?: {
|
|
2371
|
-
url?: boolean | "relative" | undefined;
|
|
2372
2379
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2373
2380
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2374
2381
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2375
2382
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2376
2383
|
importMeta?: boolean | undefined;
|
|
2384
|
+
url?: boolean | "relative" | undefined;
|
|
2377
2385
|
exprContextCritical?: boolean | undefined;
|
|
2378
2386
|
wrappedContextCritical?: boolean | undefined;
|
|
2379
2387
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2389,12 +2397,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2389
2397
|
importDynamic?: boolean | undefined;
|
|
2390
2398
|
} | undefined;
|
|
2391
2399
|
"javascript/esm"?: {
|
|
2392
|
-
url?: boolean | "relative" | undefined;
|
|
2393
2400
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2394
2401
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2395
2402
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2396
2403
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2397
2404
|
importMeta?: boolean | undefined;
|
|
2405
|
+
url?: boolean | "relative" | undefined;
|
|
2398
2406
|
exprContextCritical?: boolean | undefined;
|
|
2399
2407
|
wrappedContextCritical?: boolean | undefined;
|
|
2400
2408
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2687,12 +2695,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2687
2695
|
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
|
2688
2696
|
parser?: {
|
|
2689
2697
|
javascript?: {
|
|
2690
|
-
url?: boolean | "relative" | undefined;
|
|
2691
2698
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2692
2699
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2693
2700
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2694
2701
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2695
2702
|
importMeta?: boolean | undefined;
|
|
2703
|
+
url?: boolean | "relative" | undefined;
|
|
2696
2704
|
exprContextCritical?: boolean | undefined;
|
|
2697
2705
|
wrappedContextCritical?: boolean | undefined;
|
|
2698
2706
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2722,12 +2730,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2722
2730
|
} | undefined;
|
|
2723
2731
|
} | undefined;
|
|
2724
2732
|
"javascript/auto"?: {
|
|
2725
|
-
url?: boolean | "relative" | undefined;
|
|
2726
2733
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2727
2734
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2728
2735
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2729
2736
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2730
2737
|
importMeta?: boolean | undefined;
|
|
2738
|
+
url?: boolean | "relative" | undefined;
|
|
2731
2739
|
exprContextCritical?: boolean | undefined;
|
|
2732
2740
|
wrappedContextCritical?: boolean | undefined;
|
|
2733
2741
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2743,12 +2751,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2743
2751
|
importDynamic?: boolean | undefined;
|
|
2744
2752
|
} | undefined;
|
|
2745
2753
|
"javascript/dynamic"?: {
|
|
2746
|
-
url?: boolean | "relative" | undefined;
|
|
2747
2754
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2748
2755
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2749
2756
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2750
2757
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2751
2758
|
importMeta?: boolean | undefined;
|
|
2759
|
+
url?: boolean | "relative" | undefined;
|
|
2752
2760
|
exprContextCritical?: boolean | undefined;
|
|
2753
2761
|
wrappedContextCritical?: boolean | undefined;
|
|
2754
2762
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2764,12 +2772,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2764
2772
|
importDynamic?: boolean | undefined;
|
|
2765
2773
|
} | undefined;
|
|
2766
2774
|
"javascript/esm"?: {
|
|
2767
|
-
url?: boolean | "relative" | undefined;
|
|
2768
2775
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2769
2776
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2770
2777
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2771
2778
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2772
2779
|
importMeta?: boolean | undefined;
|
|
2780
|
+
url?: boolean | "relative" | undefined;
|
|
2773
2781
|
exprContextCritical?: boolean | undefined;
|
|
2774
2782
|
wrappedContextCritical?: boolean | undefined;
|
|
2775
2783
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2835,12 +2843,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2835
2843
|
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
|
2836
2844
|
parser?: {
|
|
2837
2845
|
javascript?: {
|
|
2838
|
-
url?: boolean | "relative" | undefined;
|
|
2839
2846
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2840
2847
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2841
2848
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2842
2849
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2843
2850
|
importMeta?: boolean | undefined;
|
|
2851
|
+
url?: boolean | "relative" | undefined;
|
|
2844
2852
|
exprContextCritical?: boolean | undefined;
|
|
2845
2853
|
wrappedContextCritical?: boolean | undefined;
|
|
2846
2854
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2870,12 +2878,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2870
2878
|
} | undefined;
|
|
2871
2879
|
} | undefined;
|
|
2872
2880
|
"javascript/auto"?: {
|
|
2873
|
-
url?: boolean | "relative" | undefined;
|
|
2874
2881
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2875
2882
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2876
2883
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2877
2884
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2878
2885
|
importMeta?: boolean | undefined;
|
|
2886
|
+
url?: boolean | "relative" | undefined;
|
|
2879
2887
|
exprContextCritical?: boolean | undefined;
|
|
2880
2888
|
wrappedContextCritical?: boolean | undefined;
|
|
2881
2889
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2891,12 +2899,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2891
2899
|
importDynamic?: boolean | undefined;
|
|
2892
2900
|
} | undefined;
|
|
2893
2901
|
"javascript/dynamic"?: {
|
|
2894
|
-
url?: boolean | "relative" | undefined;
|
|
2895
2902
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2896
2903
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2897
2904
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2898
2905
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2899
2906
|
importMeta?: boolean | undefined;
|
|
2907
|
+
url?: boolean | "relative" | undefined;
|
|
2900
2908
|
exprContextCritical?: boolean | undefined;
|
|
2901
2909
|
wrappedContextCritical?: boolean | undefined;
|
|
2902
2910
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -2912,12 +2920,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2912
2920
|
importDynamic?: boolean | undefined;
|
|
2913
2921
|
} | undefined;
|
|
2914
2922
|
"javascript/esm"?: {
|
|
2915
|
-
url?: boolean | "relative" | undefined;
|
|
2916
2923
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2917
2924
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2918
2925
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2919
2926
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
2920
2927
|
importMeta?: boolean | undefined;
|
|
2928
|
+
url?: boolean | "relative" | undefined;
|
|
2921
2929
|
exprContextCritical?: boolean | undefined;
|
|
2922
2930
|
wrappedContextCritical?: boolean | undefined;
|
|
2923
2931
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3005,12 +3013,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3005
3013
|
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
|
3006
3014
|
parser?: {
|
|
3007
3015
|
javascript?: {
|
|
3008
|
-
url?: boolean | "relative" | undefined;
|
|
3009
3016
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3010
3017
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3011
3018
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3012
3019
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3013
3020
|
importMeta?: boolean | undefined;
|
|
3021
|
+
url?: boolean | "relative" | undefined;
|
|
3014
3022
|
exprContextCritical?: boolean | undefined;
|
|
3015
3023
|
wrappedContextCritical?: boolean | undefined;
|
|
3016
3024
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3040,12 +3048,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3040
3048
|
} | undefined;
|
|
3041
3049
|
} | undefined;
|
|
3042
3050
|
"javascript/auto"?: {
|
|
3043
|
-
url?: boolean | "relative" | undefined;
|
|
3044
3051
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3045
3052
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3046
3053
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3047
3054
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3048
3055
|
importMeta?: boolean | undefined;
|
|
3056
|
+
url?: boolean | "relative" | undefined;
|
|
3049
3057
|
exprContextCritical?: boolean | undefined;
|
|
3050
3058
|
wrappedContextCritical?: boolean | undefined;
|
|
3051
3059
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3061,12 +3069,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3061
3069
|
importDynamic?: boolean | undefined;
|
|
3062
3070
|
} | undefined;
|
|
3063
3071
|
"javascript/dynamic"?: {
|
|
3064
|
-
url?: boolean | "relative" | undefined;
|
|
3065
3072
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3066
3073
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3067
3074
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3068
3075
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3069
3076
|
importMeta?: boolean | undefined;
|
|
3077
|
+
url?: boolean | "relative" | undefined;
|
|
3070
3078
|
exprContextCritical?: boolean | undefined;
|
|
3071
3079
|
wrappedContextCritical?: boolean | undefined;
|
|
3072
3080
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3082,12 +3090,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3082
3090
|
importDynamic?: boolean | undefined;
|
|
3083
3091
|
} | undefined;
|
|
3084
3092
|
"javascript/esm"?: {
|
|
3085
|
-
url?: boolean | "relative" | undefined;
|
|
3086
3093
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3087
3094
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3088
3095
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3089
3096
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3090
3097
|
importMeta?: boolean | undefined;
|
|
3098
|
+
url?: boolean | "relative" | undefined;
|
|
3091
3099
|
exprContextCritical?: boolean | undefined;
|
|
3092
3100
|
wrappedContextCritical?: boolean | undefined;
|
|
3093
3101
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3208,18 +3216,35 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3208
3216
|
mode?: "none" | "development" | "production" | undefined;
|
|
3209
3217
|
experiments?: {
|
|
3210
3218
|
css?: boolean | undefined;
|
|
3219
|
+
cache?: boolean | {
|
|
3220
|
+
type: "memory";
|
|
3221
|
+
} | {
|
|
3222
|
+
type: "persistent";
|
|
3223
|
+
snapshot: {
|
|
3224
|
+
immutablePaths: (string | RegExp)[];
|
|
3225
|
+
unmanagedPaths: (string | RegExp)[];
|
|
3226
|
+
managedPaths: (string | RegExp)[];
|
|
3227
|
+
};
|
|
3228
|
+
storage: {
|
|
3229
|
+
type: "filesystem";
|
|
3230
|
+
directory: string;
|
|
3231
|
+
};
|
|
3232
|
+
} | undefined;
|
|
3211
3233
|
topLevelAwait?: boolean | undefined;
|
|
3212
3234
|
layers?: boolean | undefined;
|
|
3213
3235
|
incremental?: boolean | {
|
|
3214
3236
|
make?: boolean | undefined;
|
|
3215
3237
|
providedExports?: boolean | undefined;
|
|
3216
|
-
emitAssets?: boolean | undefined;
|
|
3217
3238
|
inferAsyncModules?: boolean | undefined;
|
|
3218
3239
|
dependenciesDiagnostics?: boolean | undefined;
|
|
3240
|
+
buildChunkGraph?: boolean | undefined;
|
|
3219
3241
|
modulesHashes?: boolean | undefined;
|
|
3220
3242
|
modulesCodegen?: boolean | undefined;
|
|
3221
3243
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
3222
|
-
|
|
3244
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
3245
|
+
chunksHashes?: boolean | undefined;
|
|
3246
|
+
chunksRender?: boolean | undefined;
|
|
3247
|
+
emitAssets?: boolean | undefined;
|
|
3223
3248
|
} | undefined;
|
|
3224
3249
|
rspackFuture?: {
|
|
3225
3250
|
bundlerInfo?: {
|
|
@@ -3498,66 +3523,36 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3498
3523
|
} | undefined;
|
|
3499
3524
|
loader?: Record<string, any> | undefined;
|
|
3500
3525
|
resolveLoader?: t.ResolveOptions | undefined;
|
|
3501
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | {
|
|
3502
|
-
root: string | string[];
|
|
3503
|
-
commonjs: string | string[];
|
|
3504
|
-
commonjs2: string | string[];
|
|
3505
|
-
amd?: string | string[] | undefined;
|
|
3506
|
-
}> | ((args_0: {
|
|
3526
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
3507
3527
|
request?: string | undefined;
|
|
3508
3528
|
context?: string | undefined;
|
|
3509
3529
|
dependencyType?: string | undefined;
|
|
3510
3530
|
contextInfo?: {
|
|
3511
3531
|
issuer: string;
|
|
3512
3532
|
} | undefined;
|
|
3513
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | {
|
|
3514
|
-
root: string | string[];
|
|
3515
|
-
commonjs: string | string[];
|
|
3516
|
-
commonjs2: string | string[];
|
|
3517
|
-
amd?: string | string[] | undefined;
|
|
3518
|
-
} | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
3533
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
3519
3534
|
request?: string | undefined;
|
|
3520
3535
|
context?: string | undefined;
|
|
3521
3536
|
dependencyType?: string | undefined;
|
|
3522
3537
|
contextInfo?: {
|
|
3523
3538
|
issuer: string;
|
|
3524
3539
|
} | undefined;
|
|
3525
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | {
|
|
3526
|
-
root: string | string[];
|
|
3527
|
-
commonjs: string | string[];
|
|
3528
|
-
commonjs2: string | string[];
|
|
3529
|
-
amd?: string | string[] | undefined;
|
|
3530
|
-
}>) | (string | RegExp | Record<string, string | boolean | string[] | {
|
|
3531
|
-
root: string | string[];
|
|
3532
|
-
commonjs: string | string[];
|
|
3533
|
-
commonjs2: string | string[];
|
|
3534
|
-
amd?: string | string[] | undefined;
|
|
3535
|
-
}> | ((args_0: {
|
|
3540
|
+
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
3536
3541
|
request?: string | undefined;
|
|
3537
3542
|
context?: string | undefined;
|
|
3538
3543
|
dependencyType?: string | undefined;
|
|
3539
3544
|
contextInfo?: {
|
|
3540
3545
|
issuer: string;
|
|
3541
3546
|
} | undefined;
|
|
3542
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | {
|
|
3543
|
-
root: string | string[];
|
|
3544
|
-
commonjs: string | string[];
|
|
3545
|
-
commonjs2: string | string[];
|
|
3546
|
-
amd?: string | string[] | undefined;
|
|
3547
|
-
} | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
3547
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
3548
3548
|
request?: string | undefined;
|
|
3549
3549
|
context?: string | undefined;
|
|
3550
3550
|
dependencyType?: string | undefined;
|
|
3551
3551
|
contextInfo?: {
|
|
3552
3552
|
issuer: string;
|
|
3553
3553
|
} | undefined;
|
|
3554
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] |
|
|
3555
|
-
|
|
3556
|
-
commonjs: string | string[];
|
|
3557
|
-
commonjs2: string | string[];
|
|
3558
|
-
amd?: string | string[] | undefined;
|
|
3559
|
-
}>))[] | undefined;
|
|
3560
|
-
externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined;
|
|
3554
|
+
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
3555
|
+
externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
|
|
3561
3556
|
externalsPresets?: {
|
|
3562
3557
|
node?: boolean | undefined;
|
|
3563
3558
|
web?: boolean | undefined;
|
|
@@ -3640,12 +3635,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3640
3635
|
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
|
3641
3636
|
parser?: {
|
|
3642
3637
|
javascript?: {
|
|
3643
|
-
url?: boolean | "relative" | undefined;
|
|
3644
3638
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3645
3639
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3646
3640
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3647
3641
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3648
3642
|
importMeta?: boolean | undefined;
|
|
3643
|
+
url?: boolean | "relative" | undefined;
|
|
3649
3644
|
exprContextCritical?: boolean | undefined;
|
|
3650
3645
|
wrappedContextCritical?: boolean | undefined;
|
|
3651
3646
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3675,12 +3670,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3675
3670
|
} | undefined;
|
|
3676
3671
|
} | undefined;
|
|
3677
3672
|
"javascript/auto"?: {
|
|
3678
|
-
url?: boolean | "relative" | undefined;
|
|
3679
3673
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3680
3674
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3681
3675
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3682
3676
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3683
3677
|
importMeta?: boolean | undefined;
|
|
3678
|
+
url?: boolean | "relative" | undefined;
|
|
3684
3679
|
exprContextCritical?: boolean | undefined;
|
|
3685
3680
|
wrappedContextCritical?: boolean | undefined;
|
|
3686
3681
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3696,12 +3691,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3696
3691
|
importDynamic?: boolean | undefined;
|
|
3697
3692
|
} | undefined;
|
|
3698
3693
|
"javascript/dynamic"?: {
|
|
3699
|
-
url?: boolean | "relative" | undefined;
|
|
3700
3694
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3701
3695
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3702
3696
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3703
3697
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3704
3698
|
importMeta?: boolean | undefined;
|
|
3699
|
+
url?: boolean | "relative" | undefined;
|
|
3705
3700
|
exprContextCritical?: boolean | undefined;
|
|
3706
3701
|
wrappedContextCritical?: boolean | undefined;
|
|
3707
3702
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3717,12 +3712,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3717
3712
|
importDynamic?: boolean | undefined;
|
|
3718
3713
|
} | undefined;
|
|
3719
3714
|
"javascript/esm"?: {
|
|
3720
|
-
url?: boolean | "relative" | undefined;
|
|
3721
3715
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3722
3716
|
dynamicImportPreload?: number | boolean | undefined;
|
|
3723
3717
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3724
3718
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
|
3725
3719
|
importMeta?: boolean | undefined;
|
|
3720
|
+
url?: boolean | "relative" | undefined;
|
|
3726
3721
|
exprContextCritical?: boolean | undefined;
|
|
3727
3722
|
wrappedContextCritical?: boolean | undefined;
|
|
3728
3723
|
wrappedContextRegExp?: RegExp | undefined;
|
|
@@ -3843,18 +3838,35 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3843
3838
|
mode?: "none" | "development" | "production" | undefined;
|
|
3844
3839
|
experiments?: {
|
|
3845
3840
|
css?: boolean | undefined;
|
|
3841
|
+
cache?: boolean | {
|
|
3842
|
+
type: "memory";
|
|
3843
|
+
} | {
|
|
3844
|
+
type: "persistent";
|
|
3845
|
+
snapshot: {
|
|
3846
|
+
immutablePaths: (string | RegExp)[];
|
|
3847
|
+
unmanagedPaths: (string | RegExp)[];
|
|
3848
|
+
managedPaths: (string | RegExp)[];
|
|
3849
|
+
};
|
|
3850
|
+
storage: {
|
|
3851
|
+
type: "filesystem";
|
|
3852
|
+
directory: string;
|
|
3853
|
+
};
|
|
3854
|
+
} | undefined;
|
|
3846
3855
|
topLevelAwait?: boolean | undefined;
|
|
3847
3856
|
layers?: boolean | undefined;
|
|
3848
3857
|
incremental?: boolean | {
|
|
3849
3858
|
make?: boolean | undefined;
|
|
3850
3859
|
providedExports?: boolean | undefined;
|
|
3851
|
-
emitAssets?: boolean | undefined;
|
|
3852
3860
|
inferAsyncModules?: boolean | undefined;
|
|
3853
3861
|
dependenciesDiagnostics?: boolean | undefined;
|
|
3862
|
+
buildChunkGraph?: boolean | undefined;
|
|
3854
3863
|
modulesHashes?: boolean | undefined;
|
|
3855
3864
|
modulesCodegen?: boolean | undefined;
|
|
3856
3865
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
3857
|
-
|
|
3866
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
|
3867
|
+
chunksHashes?: boolean | undefined;
|
|
3868
|
+
chunksRender?: boolean | undefined;
|
|
3869
|
+
emitAssets?: boolean | undefined;
|
|
3858
3870
|
} | undefined;
|
|
3859
3871
|
rspackFuture?: {
|
|
3860
3872
|
bundlerInfo?: {
|
|
@@ -4133,66 +4145,36 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4133
4145
|
} | undefined;
|
|
4134
4146
|
loader?: Record<string, any> | undefined;
|
|
4135
4147
|
resolveLoader?: t.ResolveOptions | undefined;
|
|
4136
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | {
|
|
4137
|
-
root: string | string[];
|
|
4138
|
-
commonjs: string | string[];
|
|
4139
|
-
commonjs2: string | string[];
|
|
4140
|
-
amd?: string | string[] | undefined;
|
|
4141
|
-
}> | ((args_0: {
|
|
4148
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
4142
4149
|
request?: string | undefined;
|
|
4143
4150
|
context?: string | undefined;
|
|
4144
4151
|
dependencyType?: string | undefined;
|
|
4145
4152
|
contextInfo?: {
|
|
4146
4153
|
issuer: string;
|
|
4147
4154
|
} | undefined;
|
|
4148
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | {
|
|
4149
|
-
root: string | string[];
|
|
4150
|
-
commonjs: string | string[];
|
|
4151
|
-
commonjs2: string | string[];
|
|
4152
|
-
amd?: string | string[] | undefined;
|
|
4153
|
-
} | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
4155
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
4154
4156
|
request?: string | undefined;
|
|
4155
4157
|
context?: string | undefined;
|
|
4156
4158
|
dependencyType?: string | undefined;
|
|
4157
4159
|
contextInfo?: {
|
|
4158
4160
|
issuer: string;
|
|
4159
4161
|
} | undefined;
|
|
4160
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | {
|
|
4161
|
-
root: string | string[];
|
|
4162
|
-
commonjs: string | string[];
|
|
4163
|
-
commonjs2: string | string[];
|
|
4164
|
-
amd?: string | string[] | undefined;
|
|
4165
|
-
}>) | (string | RegExp | Record<string, string | boolean | string[] | {
|
|
4166
|
-
root: string | string[];
|
|
4167
|
-
commonjs: string | string[];
|
|
4168
|
-
commonjs2: string | string[];
|
|
4169
|
-
amd?: string | string[] | undefined;
|
|
4170
|
-
}> | ((args_0: {
|
|
4162
|
+
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
4171
4163
|
request?: string | undefined;
|
|
4172
4164
|
context?: string | undefined;
|
|
4173
4165
|
dependencyType?: string | undefined;
|
|
4174
4166
|
contextInfo?: {
|
|
4175
4167
|
issuer: string;
|
|
4176
4168
|
} | undefined;
|
|
4177
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | {
|
|
4178
|
-
root: string | string[];
|
|
4179
|
-
commonjs: string | string[];
|
|
4180
|
-
commonjs2: string | string[];
|
|
4181
|
-
amd?: string | string[] | undefined;
|
|
4182
|
-
} | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
4169
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
|
|
4183
4170
|
request?: string | undefined;
|
|
4184
4171
|
context?: string | undefined;
|
|
4185
4172
|
dependencyType?: string | undefined;
|
|
4186
4173
|
contextInfo?: {
|
|
4187
4174
|
issuer: string;
|
|
4188
4175
|
} | undefined;
|
|
4189
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] |
|
|
4190
|
-
|
|
4191
|
-
commonjs: string | string[];
|
|
4192
|
-
commonjs2: string | string[];
|
|
4193
|
-
amd?: string | string[] | undefined;
|
|
4194
|
-
}>))[] | undefined;
|
|
4195
|
-
externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | undefined;
|
|
4176
|
+
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
4177
|
+
externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
|
|
4196
4178
|
externalsPresets?: {
|
|
4197
4179
|
node?: boolean | undefined;
|
|
4198
4180
|
web?: boolean | undefined;
|