@rspack/core 1.1.4 → 1.1.6
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/Compilation.d.ts +2 -0
- package/dist/Compiler.d.ts +2 -2
- package/dist/FileSystem.d.ts +16 -4
- package/dist/Module.d.ts +1 -0
- package/dist/MultiCompiler.d.ts +3 -3
- package/dist/Stats.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +8 -10
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +10 -11
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +2 -0
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +8 -10
- package/dist/config/normalization.d.ts +1 -1
- package/dist/config/types.d.ts +33 -1
- package/dist/config/zod.d.ts +54 -172
- package/dist/cssExtractLoader.js +1 -0
- package/dist/index.js +381 -197
- package/dist/util/MergeCaller.d.ts +1 -3
- package/dist/util/fs.d.ts +36 -1
- package/dist/util/source.d.ts +3 -3
- package/package.json +2 -2
package/dist/config/zod.d.ts
CHANGED
|
@@ -415,7 +415,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
415
415
|
output: z.ZodOptional<z.ZodObject<{
|
|
416
416
|
path: z.ZodOptional<z.ZodString>;
|
|
417
417
|
pathinfo: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"verbose">]>>;
|
|
418
|
-
clean: z.ZodOptional<z.ZodBoolean
|
|
418
|
+
clean: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
419
|
+
keep: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, "strict", z.ZodTypeAny, {
|
|
421
|
+
keep?: string | undefined;
|
|
422
|
+
}, {
|
|
423
|
+
keep?: string | undefined;
|
|
424
|
+
}>]>>;
|
|
419
425
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
|
420
426
|
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
|
421
427
|
chunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
|
@@ -543,10 +549,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
543
549
|
enabledChunkLoadingTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>, "many">>;
|
|
544
550
|
trustedTypes: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<true>, z.ZodString]>, z.ZodObject<{
|
|
545
551
|
policyName: z.ZodOptional<z.ZodString>;
|
|
552
|
+
onPolicyCreationFailure: z.ZodOptional<z.ZodEnum<["continue", "stop"]>>;
|
|
546
553
|
}, "strict", z.ZodTypeAny, {
|
|
547
554
|
policyName?: string | undefined;
|
|
555
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
548
556
|
}, {
|
|
549
557
|
policyName?: string | undefined;
|
|
558
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
550
559
|
}>]>>;
|
|
551
560
|
sourceMapFilename: z.ZodOptional<z.ZodString>;
|
|
552
561
|
hashDigest: z.ZodOptional<z.ZodString>;
|
|
@@ -656,6 +665,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
656
665
|
umdNamedDefine?: boolean | undefined;
|
|
657
666
|
} | undefined;
|
|
658
667
|
wasmLoading?: string | false | undefined;
|
|
668
|
+
cssHeadDataCompression?: boolean | undefined;
|
|
659
669
|
auxiliaryComment?: string | {
|
|
660
670
|
root?: string | undefined;
|
|
661
671
|
commonjs?: string | undefined;
|
|
@@ -666,7 +676,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
666
676
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
667
677
|
uniqueName?: string | undefined;
|
|
668
678
|
pathinfo?: boolean | "verbose" | undefined;
|
|
669
|
-
clean?: boolean |
|
|
679
|
+
clean?: boolean | {
|
|
680
|
+
keep?: string | undefined;
|
|
681
|
+
} | undefined;
|
|
670
682
|
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
671
683
|
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
672
684
|
hotUpdateMainFilename?: string | undefined;
|
|
@@ -686,6 +698,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
686
698
|
enabledChunkLoadingTypes?: string[] | undefined;
|
|
687
699
|
trustedTypes?: string | true | {
|
|
688
700
|
policyName?: string | undefined;
|
|
701
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
689
702
|
} | undefined;
|
|
690
703
|
sourceMapFilename?: string | undefined;
|
|
691
704
|
hashDigest?: string | undefined;
|
|
@@ -701,7 +714,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
701
714
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
702
715
|
charset?: boolean | undefined;
|
|
703
716
|
chunkLoadTimeout?: number | undefined;
|
|
704
|
-
cssHeadDataCompression?: boolean | undefined;
|
|
705
717
|
compareBeforeEmit?: boolean | undefined;
|
|
706
718
|
libraryExport?: string | string[] | undefined;
|
|
707
719
|
libraryTarget?: string | undefined;
|
|
@@ -752,6 +764,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
752
764
|
umdNamedDefine?: boolean | undefined;
|
|
753
765
|
} | undefined;
|
|
754
766
|
wasmLoading?: string | false | undefined;
|
|
767
|
+
cssHeadDataCompression?: boolean | undefined;
|
|
755
768
|
auxiliaryComment?: string | {
|
|
756
769
|
root?: string | undefined;
|
|
757
770
|
commonjs?: string | undefined;
|
|
@@ -762,7 +775,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
762
775
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
763
776
|
uniqueName?: string | undefined;
|
|
764
777
|
pathinfo?: boolean | "verbose" | undefined;
|
|
765
|
-
clean?: boolean |
|
|
778
|
+
clean?: boolean | {
|
|
779
|
+
keep?: string | undefined;
|
|
780
|
+
} | undefined;
|
|
766
781
|
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
767
782
|
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
768
783
|
hotUpdateMainFilename?: string | undefined;
|
|
@@ -782,6 +797,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
782
797
|
enabledChunkLoadingTypes?: string[] | undefined;
|
|
783
798
|
trustedTypes?: string | true | {
|
|
784
799
|
policyName?: string | undefined;
|
|
800
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
785
801
|
} | undefined;
|
|
786
802
|
sourceMapFilename?: string | undefined;
|
|
787
803
|
hashDigest?: string | undefined;
|
|
@@ -797,7 +813,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
797
813
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
798
814
|
charset?: boolean | undefined;
|
|
799
815
|
chunkLoadTimeout?: number | undefined;
|
|
800
|
-
cssHeadDataCompression?: boolean | undefined;
|
|
801
816
|
compareBeforeEmit?: boolean | undefined;
|
|
802
817
|
libraryExport?: string | string[] | undefined;
|
|
803
818
|
libraryTarget?: string | undefined;
|
|
@@ -970,6 +985,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
970
985
|
providedExports: z.ZodOptional<z.ZodBoolean>;
|
|
971
986
|
dependenciesDiagnostics: z.ZodOptional<z.ZodBoolean>;
|
|
972
987
|
buildChunkGraph: z.ZodOptional<z.ZodBoolean>;
|
|
988
|
+
moduleIds: z.ZodOptional<z.ZodBoolean>;
|
|
989
|
+
chunkIds: z.ZodOptional<z.ZodBoolean>;
|
|
973
990
|
modulesHashes: z.ZodOptional<z.ZodBoolean>;
|
|
974
991
|
modulesCodegen: z.ZodOptional<z.ZodBoolean>;
|
|
975
992
|
modulesRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -983,6 +1000,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
983
1000
|
inferAsyncModules?: boolean | undefined;
|
|
984
1001
|
dependenciesDiagnostics?: boolean | undefined;
|
|
985
1002
|
buildChunkGraph?: boolean | undefined;
|
|
1003
|
+
moduleIds?: boolean | undefined;
|
|
1004
|
+
chunkIds?: boolean | undefined;
|
|
986
1005
|
modulesHashes?: boolean | undefined;
|
|
987
1006
|
modulesCodegen?: boolean | undefined;
|
|
988
1007
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -996,6 +1015,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
996
1015
|
inferAsyncModules?: boolean | undefined;
|
|
997
1016
|
dependenciesDiagnostics?: boolean | undefined;
|
|
998
1017
|
buildChunkGraph?: boolean | undefined;
|
|
1018
|
+
moduleIds?: boolean | undefined;
|
|
1019
|
+
chunkIds?: boolean | undefined;
|
|
999
1020
|
modulesHashes?: boolean | undefined;
|
|
1000
1021
|
modulesCodegen?: boolean | undefined;
|
|
1001
1022
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1056,6 +1077,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1056
1077
|
inferAsyncModules?: boolean | undefined;
|
|
1057
1078
|
dependenciesDiagnostics?: boolean | undefined;
|
|
1058
1079
|
buildChunkGraph?: boolean | undefined;
|
|
1080
|
+
moduleIds?: boolean | undefined;
|
|
1081
|
+
chunkIds?: boolean | undefined;
|
|
1059
1082
|
modulesHashes?: boolean | undefined;
|
|
1060
1083
|
modulesCodegen?: boolean | undefined;
|
|
1061
1084
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1117,6 +1140,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1117
1140
|
inferAsyncModules?: boolean | undefined;
|
|
1118
1141
|
dependenciesDiagnostics?: boolean | undefined;
|
|
1119
1142
|
buildChunkGraph?: boolean | undefined;
|
|
1143
|
+
moduleIds?: boolean | undefined;
|
|
1144
|
+
chunkIds?: boolean | undefined;
|
|
1120
1145
|
modulesHashes?: boolean | undefined;
|
|
1121
1146
|
modulesCodegen?: boolean | undefined;
|
|
1122
1147
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -1155,107 +1180,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1155
1180
|
} | undefined;
|
|
1156
1181
|
} | undefined;
|
|
1157
1182
|
}>>;
|
|
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.
|
|
1159
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1160
|
-
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1161
|
-
request: z.ZodOptional<z.ZodString>;
|
|
1162
|
-
contextInfo: z.ZodOptional<z.ZodObject<{
|
|
1163
|
-
issuer: z.ZodString;
|
|
1164
|
-
}, "strict", z.ZodTypeAny, {
|
|
1165
|
-
issuer: string;
|
|
1166
|
-
}, {
|
|
1167
|
-
issuer: string;
|
|
1168
|
-
}>>;
|
|
1169
|
-
}, "strict", z.ZodTypeAny, {
|
|
1170
|
-
request?: string | undefined;
|
|
1171
|
-
context?: string | undefined;
|
|
1172
|
-
dependencyType?: string | undefined;
|
|
1173
|
-
contextInfo?: {
|
|
1174
|
-
issuer: string;
|
|
1175
|
-
} | undefined;
|
|
1176
|
-
}, {
|
|
1177
|
-
request?: string | undefined;
|
|
1178
|
-
context?: string | undefined;
|
|
1179
|
-
dependencyType?: string | undefined;
|
|
1180
|
-
contextInfo?: {
|
|
1181
|
-
issuer: string;
|
|
1182
|
-
} | undefined;
|
|
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<{
|
|
1184
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1185
|
-
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1186
|
-
request: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
contextInfo: z.ZodOptional<z.ZodObject<{
|
|
1188
|
-
issuer: z.ZodString;
|
|
1189
|
-
}, "strict", z.ZodTypeAny, {
|
|
1190
|
-
issuer: string;
|
|
1191
|
-
}, {
|
|
1192
|
-
issuer: string;
|
|
1193
|
-
}>>;
|
|
1194
|
-
}, "strict", z.ZodTypeAny, {
|
|
1195
|
-
request?: string | undefined;
|
|
1196
|
-
context?: string | undefined;
|
|
1197
|
-
dependencyType?: string | undefined;
|
|
1198
|
-
contextInfo?: {
|
|
1199
|
-
issuer: string;
|
|
1200
|
-
} | undefined;
|
|
1201
|
-
}, {
|
|
1202
|
-
request?: string | undefined;
|
|
1203
|
-
context?: string | undefined;
|
|
1204
|
-
dependencyType?: string | undefined;
|
|
1205
|
-
contextInfo?: {
|
|
1206
|
-
issuer: string;
|
|
1207
|
-
} | undefined;
|
|
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<{
|
|
1209
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1210
|
-
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
request: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
contextInfo: z.ZodOptional<z.ZodObject<{
|
|
1213
|
-
issuer: z.ZodString;
|
|
1214
|
-
}, "strict", z.ZodTypeAny, {
|
|
1215
|
-
issuer: string;
|
|
1216
|
-
}, {
|
|
1217
|
-
issuer: string;
|
|
1218
|
-
}>>;
|
|
1219
|
-
}, "strict", z.ZodTypeAny, {
|
|
1220
|
-
request?: string | undefined;
|
|
1221
|
-
context?: string | undefined;
|
|
1222
|
-
dependencyType?: string | undefined;
|
|
1223
|
-
contextInfo?: {
|
|
1224
|
-
issuer: string;
|
|
1225
|
-
} | undefined;
|
|
1226
|
-
}, {
|
|
1227
|
-
request?: string | undefined;
|
|
1228
|
-
context?: string | undefined;
|
|
1229
|
-
dependencyType?: string | undefined;
|
|
1230
|
-
contextInfo?: {
|
|
1231
|
-
issuer: string;
|
|
1232
|
-
} | undefined;
|
|
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<{
|
|
1234
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1235
|
-
dependencyType: z.ZodOptional<z.ZodString>;
|
|
1236
|
-
request: z.ZodOptional<z.ZodString>;
|
|
1237
|
-
contextInfo: z.ZodOptional<z.ZodObject<{
|
|
1238
|
-
issuer: z.ZodString;
|
|
1239
|
-
}, "strict", z.ZodTypeAny, {
|
|
1240
|
-
issuer: string;
|
|
1241
|
-
}, {
|
|
1242
|
-
issuer: string;
|
|
1243
|
-
}>>;
|
|
1244
|
-
}, "strict", z.ZodTypeAny, {
|
|
1245
|
-
request?: string | undefined;
|
|
1246
|
-
context?: string | undefined;
|
|
1247
|
-
dependencyType?: string | undefined;
|
|
1248
|
-
contextInfo?: {
|
|
1249
|
-
issuer: string;
|
|
1250
|
-
} | undefined;
|
|
1251
|
-
}, {
|
|
1252
|
-
request?: string | undefined;
|
|
1253
|
-
context?: string | undefined;
|
|
1254
|
-
dependencyType?: string | undefined;
|
|
1255
|
-
contextInfo?: {
|
|
1256
|
-
issuer: string;
|
|
1257
|
-
} | undefined;
|
|
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>]>>>]>]>>;
|
|
1183
|
+
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.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, "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.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
|
|
1259
1184
|
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"]>>;
|
|
1260
1185
|
externalsPresets: z.ZodOptional<z.ZodObject<{
|
|
1261
1186
|
node: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1843,9 +1768,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1843
1768
|
} | undefined;
|
|
1844
1769
|
usedExports?: boolean | "global" | undefined;
|
|
1845
1770
|
providedExports?: boolean | undefined;
|
|
1846
|
-
removeAvailableModules?: boolean | undefined;
|
|
1847
1771
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1848
1772
|
chunkIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1773
|
+
removeAvailableModules?: boolean | undefined;
|
|
1849
1774
|
minimize?: boolean | undefined;
|
|
1850
1775
|
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1851
1776
|
mergeDuplicateChunks?: boolean | undefined;
|
|
@@ -1909,9 +1834,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1909
1834
|
} | undefined;
|
|
1910
1835
|
usedExports?: boolean | "global" | undefined;
|
|
1911
1836
|
providedExports?: boolean | undefined;
|
|
1912
|
-
removeAvailableModules?: boolean | undefined;
|
|
1913
1837
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1914
1838
|
chunkIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1839
|
+
removeAvailableModules?: boolean | undefined;
|
|
1915
1840
|
minimize?: boolean | undefined;
|
|
1916
1841
|
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1917
1842
|
mergeDuplicateChunks?: boolean | undefined;
|
|
@@ -2944,6 +2869,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2944
2869
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
2945
2870
|
}>>;
|
|
2946
2871
|
profile: z.ZodOptional<z.ZodBoolean>;
|
|
2872
|
+
amd: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2947
2873
|
bail: z.ZodOptional<z.ZodBoolean>;
|
|
2948
2874
|
performance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2949
2875
|
assetFilter: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>>;
|
|
@@ -3210,6 +3136,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3210
3136
|
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3211
3137
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3212
3138
|
} | undefined;
|
|
3139
|
+
amd?: false | Record<string, any> | undefined;
|
|
3213
3140
|
profile?: boolean | undefined;
|
|
3214
3141
|
cache?: boolean | undefined;
|
|
3215
3142
|
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;
|
|
@@ -3238,6 +3165,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3238
3165
|
inferAsyncModules?: boolean | undefined;
|
|
3239
3166
|
dependenciesDiagnostics?: boolean | undefined;
|
|
3240
3167
|
buildChunkGraph?: boolean | undefined;
|
|
3168
|
+
moduleIds?: boolean | undefined;
|
|
3169
|
+
chunkIds?: boolean | undefined;
|
|
3241
3170
|
modulesHashes?: boolean | undefined;
|
|
3242
3171
|
modulesCodegen?: boolean | undefined;
|
|
3243
3172
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -3324,6 +3253,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3324
3253
|
umdNamedDefine?: boolean | undefined;
|
|
3325
3254
|
} | undefined;
|
|
3326
3255
|
wasmLoading?: string | false | undefined;
|
|
3256
|
+
cssHeadDataCompression?: boolean | undefined;
|
|
3327
3257
|
auxiliaryComment?: string | {
|
|
3328
3258
|
root?: string | undefined;
|
|
3329
3259
|
commonjs?: string | undefined;
|
|
@@ -3334,7 +3264,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3334
3264
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
3335
3265
|
uniqueName?: string | undefined;
|
|
3336
3266
|
pathinfo?: boolean | "verbose" | undefined;
|
|
3337
|
-
clean?: boolean |
|
|
3267
|
+
clean?: boolean | {
|
|
3268
|
+
keep?: string | undefined;
|
|
3269
|
+
} | undefined;
|
|
3338
3270
|
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3339
3271
|
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3340
3272
|
hotUpdateMainFilename?: string | undefined;
|
|
@@ -3354,6 +3286,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3354
3286
|
enabledChunkLoadingTypes?: string[] | undefined;
|
|
3355
3287
|
trustedTypes?: string | true | {
|
|
3356
3288
|
policyName?: string | undefined;
|
|
3289
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
3357
3290
|
} | undefined;
|
|
3358
3291
|
sourceMapFilename?: string | undefined;
|
|
3359
3292
|
hashDigest?: string | undefined;
|
|
@@ -3369,7 +3302,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3369
3302
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
3370
3303
|
charset?: boolean | undefined;
|
|
3371
3304
|
chunkLoadTimeout?: number | undefined;
|
|
3372
|
-
cssHeadDataCompression?: boolean | undefined;
|
|
3373
3305
|
compareBeforeEmit?: boolean | undefined;
|
|
3374
3306
|
libraryExport?: string | string[] | undefined;
|
|
3375
3307
|
libraryTarget?: string | undefined;
|
|
@@ -3422,9 +3354,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3422
3354
|
} | undefined;
|
|
3423
3355
|
usedExports?: boolean | "global" | undefined;
|
|
3424
3356
|
providedExports?: boolean | undefined;
|
|
3425
|
-
removeAvailableModules?: boolean | undefined;
|
|
3426
3357
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3427
3358
|
chunkIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3359
|
+
removeAvailableModules?: boolean | undefined;
|
|
3428
3360
|
minimize?: boolean | undefined;
|
|
3429
3361
|
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
3430
3362
|
mergeDuplicateChunks?: boolean | undefined;
|
|
@@ -3523,35 +3455,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3523
3455
|
} | undefined;
|
|
3524
3456
|
loader?: Record<string, any> | undefined;
|
|
3525
3457
|
resolveLoader?: t.ResolveOptions | undefined;
|
|
3526
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0:
|
|
3527
|
-
request?: string | undefined;
|
|
3528
|
-
context?: string | undefined;
|
|
3529
|
-
dependencyType?: string | undefined;
|
|
3530
|
-
contextInfo?: {
|
|
3531
|
-
issuer: string;
|
|
3532
|
-
} | undefined;
|
|
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: {
|
|
3534
|
-
request?: string | undefined;
|
|
3535
|
-
context?: string | undefined;
|
|
3536
|
-
dependencyType?: string | undefined;
|
|
3537
|
-
contextInfo?: {
|
|
3538
|
-
issuer: string;
|
|
3539
|
-
} | undefined;
|
|
3540
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
3541
|
-
request?: string | undefined;
|
|
3542
|
-
context?: string | undefined;
|
|
3543
|
-
dependencyType?: string | undefined;
|
|
3544
|
-
contextInfo?: {
|
|
3545
|
-
issuer: string;
|
|
3546
|
-
} | undefined;
|
|
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
|
-
request?: string | undefined;
|
|
3549
|
-
context?: string | undefined;
|
|
3550
|
-
dependencyType?: string | undefined;
|
|
3551
|
-
contextInfo?: {
|
|
3552
|
-
issuer: string;
|
|
3553
|
-
} | undefined;
|
|
3554
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
3458
|
+
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" | "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: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<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" | "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: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
3555
3459
|
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;
|
|
3556
3460
|
externalsPresets?: {
|
|
3557
3461
|
node?: boolean | undefined;
|
|
@@ -3832,6 +3736,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3832
3736
|
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3833
3737
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
|
3834
3738
|
} | undefined;
|
|
3739
|
+
amd?: false | Record<string, any> | undefined;
|
|
3835
3740
|
profile?: boolean | undefined;
|
|
3836
3741
|
cache?: boolean | undefined;
|
|
3837
3742
|
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;
|
|
@@ -3860,6 +3765,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3860
3765
|
inferAsyncModules?: boolean | undefined;
|
|
3861
3766
|
dependenciesDiagnostics?: boolean | undefined;
|
|
3862
3767
|
buildChunkGraph?: boolean | undefined;
|
|
3768
|
+
moduleIds?: boolean | undefined;
|
|
3769
|
+
chunkIds?: boolean | undefined;
|
|
3863
3770
|
modulesHashes?: boolean | undefined;
|
|
3864
3771
|
modulesCodegen?: boolean | undefined;
|
|
3865
3772
|
modulesRuntimeRequirements?: boolean | undefined;
|
|
@@ -3946,6 +3853,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3946
3853
|
umdNamedDefine?: boolean | undefined;
|
|
3947
3854
|
} | undefined;
|
|
3948
3855
|
wasmLoading?: string | false | undefined;
|
|
3856
|
+
cssHeadDataCompression?: boolean | undefined;
|
|
3949
3857
|
auxiliaryComment?: string | {
|
|
3950
3858
|
root?: string | undefined;
|
|
3951
3859
|
commonjs?: string | undefined;
|
|
@@ -3956,7 +3864,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3956
3864
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
3957
3865
|
uniqueName?: string | undefined;
|
|
3958
3866
|
pathinfo?: boolean | "verbose" | undefined;
|
|
3959
|
-
clean?: boolean |
|
|
3867
|
+
clean?: boolean | {
|
|
3868
|
+
keep?: string | undefined;
|
|
3869
|
+
} | undefined;
|
|
3960
3870
|
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3961
3871
|
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3962
3872
|
hotUpdateMainFilename?: string | undefined;
|
|
@@ -3976,6 +3886,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3976
3886
|
enabledChunkLoadingTypes?: string[] | undefined;
|
|
3977
3887
|
trustedTypes?: string | true | {
|
|
3978
3888
|
policyName?: string | undefined;
|
|
3889
|
+
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
|
3979
3890
|
} | undefined;
|
|
3980
3891
|
sourceMapFilename?: string | undefined;
|
|
3981
3892
|
hashDigest?: string | undefined;
|
|
@@ -3991,7 +3902,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3991
3902
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
3992
3903
|
charset?: boolean | undefined;
|
|
3993
3904
|
chunkLoadTimeout?: number | undefined;
|
|
3994
|
-
cssHeadDataCompression?: boolean | undefined;
|
|
3995
3905
|
compareBeforeEmit?: boolean | undefined;
|
|
3996
3906
|
libraryExport?: string | string[] | undefined;
|
|
3997
3907
|
libraryTarget?: string | undefined;
|
|
@@ -4044,9 +3954,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4044
3954
|
} | undefined;
|
|
4045
3955
|
usedExports?: boolean | "global" | undefined;
|
|
4046
3956
|
providedExports?: boolean | undefined;
|
|
4047
|
-
removeAvailableModules?: boolean | undefined;
|
|
4048
3957
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
4049
3958
|
chunkIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3959
|
+
removeAvailableModules?: boolean | undefined;
|
|
4050
3960
|
minimize?: boolean | undefined;
|
|
4051
3961
|
minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
4052
3962
|
mergeDuplicateChunks?: boolean | undefined;
|
|
@@ -4145,35 +4055,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4145
4055
|
} | undefined;
|
|
4146
4056
|
loader?: Record<string, any> | undefined;
|
|
4147
4057
|
resolveLoader?: t.ResolveOptions | undefined;
|
|
4148
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0:
|
|
4149
|
-
request?: string | undefined;
|
|
4150
|
-
context?: string | undefined;
|
|
4151
|
-
dependencyType?: string | undefined;
|
|
4152
|
-
contextInfo?: {
|
|
4153
|
-
issuer: string;
|
|
4154
|
-
} | undefined;
|
|
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: {
|
|
4156
|
-
request?: string | undefined;
|
|
4157
|
-
context?: string | undefined;
|
|
4158
|
-
dependencyType?: string | undefined;
|
|
4159
|
-
contextInfo?: {
|
|
4160
|
-
issuer: string;
|
|
4161
|
-
} | undefined;
|
|
4162
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
|
|
4163
|
-
request?: string | undefined;
|
|
4164
|
-
context?: string | undefined;
|
|
4165
|
-
dependencyType?: string | undefined;
|
|
4166
|
-
contextInfo?: {
|
|
4167
|
-
issuer: string;
|
|
4168
|
-
} | undefined;
|
|
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: {
|
|
4170
|
-
request?: string | undefined;
|
|
4171
|
-
context?: string | undefined;
|
|
4172
|
-
dependencyType?: string | undefined;
|
|
4173
|
-
contextInfo?: {
|
|
4174
|
-
issuer: string;
|
|
4175
|
-
} | undefined;
|
|
4176
|
-
}, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
4058
|
+
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" | "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: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<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" | "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: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
4177
4059
|
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;
|
|
4178
4060
|
externalsPresets?: {
|
|
4179
4061
|
node?: boolean | undefined;
|
package/dist/cssExtractLoader.js
CHANGED
|
@@ -141,6 +141,7 @@ var pitch = function(request, _, data) {
|
|
|
141
141
|
const callback = this.async();
|
|
142
142
|
const filepath = this.resourcePath;
|
|
143
143
|
const parseMeta = this.__internal__parseMeta;
|
|
144
|
+
this.addDependency(filepath);
|
|
144
145
|
let { publicPath } = this._compilation.outputOptions;
|
|
145
146
|
if (typeof options.publicPath === "string") {
|
|
146
147
|
publicPath = options.publicPath;
|