@rspack/core 1.4.0-beta.0 → 1.4.0-beta.1
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/MultiCompiler.d.ts +4 -1
- package/dist/MultiWatching.d.ts +1 -0
- package/dist/builtin-loader/swc/types.d.ts +74 -55
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
- package/dist/config/devServer.d.ts +1 -1
- package/dist/config/normalization.d.ts +1 -0
- package/dist/config/types.d.ts +7 -0
- package/dist/config/zod.d.ts +57 -6
- package/dist/exports.d.ts +3 -1
- package/dist/index.js +599 -525
- package/dist/swc.d.ts +2 -0
- package/package.json +4 -4
package/dist/MultiCompiler.d.ts
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import * as liteTapable from "@rspack/lite-tapable";
|
11
|
-
import type { Compiler, RspackOptions } from ".";
|
11
|
+
import type { CompilationParams, Compiler, RspackOptions } from ".";
|
12
12
|
import MultiStats from "./MultiStats";
|
13
13
|
import MultiWatching from "./MultiWatching";
|
14
14
|
import type { WatchOptions } from "./config";
|
@@ -27,6 +27,8 @@ export declare class MultiCompiler {
|
|
27
27
|
hooks: {
|
28
28
|
done: liteTapable.SyncHook<MultiStats>;
|
29
29
|
invalid: liteTapable.MultiHook<liteTapable.SyncHook<[string | null, number]>>;
|
30
|
+
beforeCompile: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[CompilationParams]>>;
|
31
|
+
shutdown: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[]>>;
|
30
32
|
run: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
31
33
|
watchClose: liteTapable.SyncHook<[]>;
|
32
34
|
watchRun: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
@@ -34,6 +36,7 @@ export declare class MultiCompiler {
|
|
34
36
|
};
|
35
37
|
_options: MultiCompilerOptions;
|
36
38
|
running: boolean;
|
39
|
+
watching?: MultiWatching;
|
37
40
|
constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
|
38
41
|
get options(): import(".").RspackOptionsNormalized[] & MultiCompilerOptions;
|
39
42
|
get outputPath(): string;
|
package/dist/MultiWatching.d.ts
CHANGED
@@ -19,6 +19,7 @@ declare class MultiWatching {
|
|
19
19
|
*/
|
20
20
|
constructor(watchings: Watching[], compiler: MultiCompiler);
|
21
21
|
invalidate(callback: Callback<Error, void>): void;
|
22
|
+
invalidateWithChangesAndRemovals(changedFiles?: Set<string>, removedFiles?: Set<string>, callback?: Callback<Error, void>): void;
|
22
23
|
close(callback: Callback<Error, void>): void;
|
23
24
|
suspend(): void;
|
24
25
|
resume(): void;
|
@@ -76,7 +76,7 @@ export interface TerserCompressOptions {
|
|
76
76
|
const_to_let?: boolean;
|
77
77
|
module?: boolean;
|
78
78
|
}
|
79
|
-
export declare const
|
79
|
+
export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
|
80
80
|
$schema: z.ZodOptional<z.ZodString>;
|
81
81
|
test: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
82
82
|
exclude: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -334,13 +334,13 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
334
334
|
envs: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
335
335
|
typeofs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
336
336
|
}, "strict", z.ZodTypeAny, {
|
337
|
-
typeofs?: Record<string, string> | undefined;
|
338
337
|
vars?: Record<string, string> | undefined;
|
339
338
|
envs?: string[] | Record<string, string> | undefined;
|
340
|
-
}, {
|
341
339
|
typeofs?: Record<string, string> | undefined;
|
340
|
+
}, {
|
342
341
|
vars?: Record<string, string> | undefined;
|
343
342
|
envs?: string[] | Record<string, string> | undefined;
|
343
|
+
typeofs?: Record<string, string> | undefined;
|
344
344
|
}>>;
|
345
345
|
jsonify: z.ZodOptional<z.ZodObject<{
|
346
346
|
minCost: z.ZodNumber;
|
@@ -351,9 +351,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
351
351
|
}>>;
|
352
352
|
}, "strict", z.ZodTypeAny, {
|
353
353
|
globals?: {
|
354
|
-
typeofs?: Record<string, string> | undefined;
|
355
354
|
vars?: Record<string, string> | undefined;
|
356
355
|
envs?: string[] | Record<string, string> | undefined;
|
356
|
+
typeofs?: Record<string, string> | undefined;
|
357
357
|
} | undefined;
|
358
358
|
simplify?: boolean | undefined;
|
359
359
|
jsonify?: {
|
@@ -361,9 +361,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
361
361
|
} | undefined;
|
362
362
|
}, {
|
363
363
|
globals?: {
|
364
|
-
typeofs?: Record<string, string> | undefined;
|
365
364
|
vars?: Record<string, string> | undefined;
|
366
365
|
envs?: string[] | Record<string, string> | undefined;
|
366
|
+
typeofs?: Record<string, string> | undefined;
|
367
367
|
} | undefined;
|
368
368
|
simplify?: boolean | undefined;
|
369
369
|
jsonify?: {
|
@@ -396,9 +396,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
396
396
|
} | undefined;
|
397
397
|
optimizer?: {
|
398
398
|
globals?: {
|
399
|
-
typeofs?: Record<string, string> | undefined;
|
400
399
|
vars?: Record<string, string> | undefined;
|
401
400
|
envs?: string[] | Record<string, string> | undefined;
|
401
|
+
typeofs?: Record<string, string> | undefined;
|
402
402
|
} | undefined;
|
403
403
|
simplify?: boolean | undefined;
|
404
404
|
jsonify?: {
|
@@ -431,9 +431,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
431
431
|
} | undefined;
|
432
432
|
optimizer?: {
|
433
433
|
globals?: {
|
434
|
-
typeofs?: Record<string, string> | undefined;
|
435
434
|
vars?: Record<string, string> | undefined;
|
436
435
|
envs?: string[] | Record<string, string> | undefined;
|
436
|
+
typeofs?: Record<string, string> | undefined;
|
437
437
|
} | undefined;
|
438
438
|
simplify?: boolean | undefined;
|
439
439
|
jsonify?: {
|
@@ -546,6 +546,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
546
546
|
module: z.ZodOptional<z.ZodBoolean>;
|
547
547
|
}, "strict", z.ZodTypeAny, {
|
548
548
|
module?: boolean | undefined;
|
549
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
550
|
+
typeofs?: boolean | undefined;
|
549
551
|
ecma?: string | number | undefined;
|
550
552
|
arguments?: boolean | undefined;
|
551
553
|
arrows?: boolean | undefined;
|
@@ -568,7 +570,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
568
570
|
hoist_vars?: boolean | undefined;
|
569
571
|
ie8?: boolean | undefined;
|
570
572
|
if_return?: boolean | undefined;
|
571
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
572
573
|
join_vars?: boolean | undefined;
|
573
574
|
keep_classnames?: boolean | undefined;
|
574
575
|
keep_fargs?: boolean | undefined;
|
@@ -587,7 +588,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
587
588
|
switches?: boolean | undefined;
|
588
589
|
top_retain?: any;
|
589
590
|
toplevel?: any;
|
590
|
-
typeofs?: boolean | undefined;
|
591
591
|
unsafe?: boolean | undefined;
|
592
592
|
unsafe_passes?: boolean | undefined;
|
593
593
|
unsafe_arrows?: boolean | undefined;
|
@@ -603,6 +603,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
603
603
|
const_to_let?: boolean | undefined;
|
604
604
|
}, {
|
605
605
|
module?: boolean | undefined;
|
606
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
607
|
+
typeofs?: boolean | undefined;
|
606
608
|
ecma?: string | number | undefined;
|
607
609
|
arguments?: boolean | undefined;
|
608
610
|
arrows?: boolean | undefined;
|
@@ -625,7 +627,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
625
627
|
hoist_vars?: boolean | undefined;
|
626
628
|
ie8?: boolean | undefined;
|
627
629
|
if_return?: boolean | undefined;
|
628
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
629
630
|
join_vars?: boolean | undefined;
|
630
631
|
keep_classnames?: boolean | undefined;
|
631
632
|
keep_fargs?: boolean | undefined;
|
@@ -644,7 +645,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
644
645
|
switches?: boolean | undefined;
|
645
646
|
top_retain?: any;
|
646
647
|
toplevel?: any;
|
647
|
-
typeofs?: boolean | undefined;
|
648
648
|
unsafe?: boolean | undefined;
|
649
649
|
unsafe_passes?: boolean | undefined;
|
650
650
|
unsafe_arrows?: boolean | undefined;
|
@@ -740,6 +740,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
740
740
|
safari10: z.ZodOptional<z.ZodBoolean>;
|
741
741
|
reserved: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
742
742
|
}, "strict", z.ZodTypeAny, {
|
743
|
+
keepClassNames?: boolean | undefined;
|
743
744
|
safari10?: boolean | undefined;
|
744
745
|
ie8?: boolean | undefined;
|
745
746
|
keep_classnames?: boolean | undefined;
|
@@ -747,12 +748,12 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
747
748
|
toplevel?: boolean | undefined;
|
748
749
|
props?: Record<string, any> | undefined;
|
749
750
|
topLevel?: boolean | undefined;
|
750
|
-
keepClassNames?: boolean | undefined;
|
751
751
|
keepFnNames?: boolean | undefined;
|
752
752
|
keepPrivateProps?: boolean | undefined;
|
753
753
|
keep_private_props?: boolean | undefined;
|
754
754
|
reserved?: string[] | undefined;
|
755
755
|
}, {
|
756
|
+
keepClassNames?: boolean | undefined;
|
756
757
|
safari10?: boolean | undefined;
|
757
758
|
ie8?: boolean | undefined;
|
758
759
|
keep_classnames?: boolean | undefined;
|
@@ -760,7 +761,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
760
761
|
toplevel?: boolean | undefined;
|
761
762
|
props?: Record<string, any> | undefined;
|
762
763
|
topLevel?: boolean | undefined;
|
763
|
-
keepClassNames?: boolean | undefined;
|
764
764
|
keepFnNames?: boolean | undefined;
|
765
765
|
keepPrivateProps?: boolean | undefined;
|
766
766
|
keep_private_props?: boolean | undefined;
|
@@ -786,6 +786,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
786
786
|
toplevel?: boolean | undefined;
|
787
787
|
compress?: boolean | {
|
788
788
|
module?: boolean | undefined;
|
789
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
790
|
+
typeofs?: boolean | undefined;
|
789
791
|
ecma?: string | number | undefined;
|
790
792
|
arguments?: boolean | undefined;
|
791
793
|
arrows?: boolean | undefined;
|
@@ -808,7 +810,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
808
810
|
hoist_vars?: boolean | undefined;
|
809
811
|
ie8?: boolean | undefined;
|
810
812
|
if_return?: boolean | undefined;
|
811
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
812
813
|
join_vars?: boolean | undefined;
|
813
814
|
keep_classnames?: boolean | undefined;
|
814
815
|
keep_fargs?: boolean | undefined;
|
@@ -827,7 +828,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
827
828
|
switches?: boolean | undefined;
|
828
829
|
top_retain?: any;
|
829
830
|
toplevel?: any;
|
830
|
-
typeofs?: boolean | undefined;
|
831
831
|
unsafe?: boolean | undefined;
|
832
832
|
unsafe_passes?: boolean | undefined;
|
833
833
|
unsafe_arrows?: boolean | undefined;
|
@@ -866,6 +866,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
866
866
|
wrapFuncArgs?: boolean | undefined;
|
867
867
|
} | undefined;
|
868
868
|
mangle?: boolean | {
|
869
|
+
keepClassNames?: boolean | undefined;
|
869
870
|
safari10?: boolean | undefined;
|
870
871
|
ie8?: boolean | undefined;
|
871
872
|
keep_classnames?: boolean | undefined;
|
@@ -873,7 +874,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
873
874
|
toplevel?: boolean | undefined;
|
874
875
|
props?: Record<string, any> | undefined;
|
875
876
|
topLevel?: boolean | undefined;
|
876
|
-
keepClassNames?: boolean | undefined;
|
877
877
|
keepFnNames?: boolean | undefined;
|
878
878
|
keepPrivateProps?: boolean | undefined;
|
879
879
|
keep_private_props?: boolean | undefined;
|
@@ -891,6 +891,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
891
891
|
toplevel?: boolean | undefined;
|
892
892
|
compress?: boolean | {
|
893
893
|
module?: boolean | undefined;
|
894
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
895
|
+
typeofs?: boolean | undefined;
|
894
896
|
ecma?: string | number | undefined;
|
895
897
|
arguments?: boolean | undefined;
|
896
898
|
arrows?: boolean | undefined;
|
@@ -913,7 +915,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
913
915
|
hoist_vars?: boolean | undefined;
|
914
916
|
ie8?: boolean | undefined;
|
915
917
|
if_return?: boolean | undefined;
|
916
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
917
918
|
join_vars?: boolean | undefined;
|
918
919
|
keep_classnames?: boolean | undefined;
|
919
920
|
keep_fargs?: boolean | undefined;
|
@@ -932,7 +933,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
932
933
|
switches?: boolean | undefined;
|
933
934
|
top_retain?: any;
|
934
935
|
toplevel?: any;
|
935
|
-
typeofs?: boolean | undefined;
|
936
936
|
unsafe?: boolean | undefined;
|
937
937
|
unsafe_passes?: boolean | undefined;
|
938
938
|
unsafe_arrows?: boolean | undefined;
|
@@ -971,6 +971,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
971
971
|
wrapFuncArgs?: boolean | undefined;
|
972
972
|
} | undefined;
|
973
973
|
mangle?: boolean | {
|
974
|
+
keepClassNames?: boolean | undefined;
|
974
975
|
safari10?: boolean | undefined;
|
975
976
|
ie8?: boolean | undefined;
|
976
977
|
keep_classnames?: boolean | undefined;
|
@@ -978,7 +979,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
978
979
|
toplevel?: boolean | undefined;
|
979
980
|
props?: Record<string, any> | undefined;
|
980
981
|
topLevel?: boolean | undefined;
|
981
|
-
keepClassNames?: boolean | undefined;
|
982
982
|
keepFnNames?: boolean | undefined;
|
983
983
|
keepPrivateProps?: boolean | undefined;
|
984
984
|
keep_private_props?: boolean | undefined;
|
@@ -987,6 +987,13 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
987
987
|
inlineSourcesContent?: boolean | undefined;
|
988
988
|
}>>;
|
989
989
|
preserveAllComments: z.ZodOptional<z.ZodBoolean>;
|
990
|
+
output: z.ZodOptional<z.ZodObject<{
|
991
|
+
charset: z.ZodOptional<z.ZodEnum<["utf8", "ascii"]>>;
|
992
|
+
}, "strict", z.ZodTypeAny, {
|
993
|
+
charset?: "ascii" | "utf8" | undefined;
|
994
|
+
}, {
|
995
|
+
charset?: "ascii" | "utf8" | undefined;
|
996
|
+
}>>;
|
990
997
|
}, "strict", z.ZodTypeAny, {
|
991
998
|
transform?: {
|
992
999
|
react?: {
|
@@ -1008,9 +1015,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1008
1015
|
} | undefined;
|
1009
1016
|
optimizer?: {
|
1010
1017
|
globals?: {
|
1011
|
-
typeofs?: Record<string, string> | undefined;
|
1012
1018
|
vars?: Record<string, string> | undefined;
|
1013
1019
|
envs?: string[] | Record<string, string> | undefined;
|
1020
|
+
typeofs?: Record<string, string> | undefined;
|
1014
1021
|
} | undefined;
|
1015
1022
|
simplify?: boolean | undefined;
|
1016
1023
|
jsonify?: {
|
@@ -1025,7 +1032,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1025
1032
|
verbatimModuleSyntax?: boolean | undefined;
|
1026
1033
|
} | undefined;
|
1027
1034
|
loose?: boolean | undefined;
|
1028
|
-
keepClassNames?: boolean | undefined;
|
1029
1035
|
assumptions?: {
|
1030
1036
|
arrayLikeIsIterable?: boolean | undefined;
|
1031
1037
|
constantReexports?: boolean | undefined;
|
@@ -1078,6 +1084,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1078
1084
|
} | undefined;
|
1079
1085
|
externalHelpers?: boolean | undefined;
|
1080
1086
|
target?: "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext" | undefined;
|
1087
|
+
keepClassNames?: boolean | undefined;
|
1081
1088
|
experimental?: {
|
1082
1089
|
optimizeHygiene?: boolean | undefined;
|
1083
1090
|
keepImportAttributes?: boolean | undefined;
|
@@ -1103,6 +1110,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1103
1110
|
toplevel?: boolean | undefined;
|
1104
1111
|
compress?: boolean | {
|
1105
1112
|
module?: boolean | undefined;
|
1113
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
1114
|
+
typeofs?: boolean | undefined;
|
1106
1115
|
ecma?: string | number | undefined;
|
1107
1116
|
arguments?: boolean | undefined;
|
1108
1117
|
arrows?: boolean | undefined;
|
@@ -1125,7 +1134,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1125
1134
|
hoist_vars?: boolean | undefined;
|
1126
1135
|
ie8?: boolean | undefined;
|
1127
1136
|
if_return?: boolean | undefined;
|
1128
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
1129
1137
|
join_vars?: boolean | undefined;
|
1130
1138
|
keep_classnames?: boolean | undefined;
|
1131
1139
|
keep_fargs?: boolean | undefined;
|
@@ -1144,7 +1152,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1144
1152
|
switches?: boolean | undefined;
|
1145
1153
|
top_retain?: any;
|
1146
1154
|
toplevel?: any;
|
1147
|
-
typeofs?: boolean | undefined;
|
1148
1155
|
unsafe?: boolean | undefined;
|
1149
1156
|
unsafe_passes?: boolean | undefined;
|
1150
1157
|
unsafe_arrows?: boolean | undefined;
|
@@ -1183,6 +1190,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1183
1190
|
wrapFuncArgs?: boolean | undefined;
|
1184
1191
|
} | undefined;
|
1185
1192
|
mangle?: boolean | {
|
1193
|
+
keepClassNames?: boolean | undefined;
|
1186
1194
|
safari10?: boolean | undefined;
|
1187
1195
|
ie8?: boolean | undefined;
|
1188
1196
|
keep_classnames?: boolean | undefined;
|
@@ -1190,7 +1198,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1190
1198
|
toplevel?: boolean | undefined;
|
1191
1199
|
props?: Record<string, any> | undefined;
|
1192
1200
|
topLevel?: boolean | undefined;
|
1193
|
-
keepClassNames?: boolean | undefined;
|
1194
1201
|
keepFnNames?: boolean | undefined;
|
1195
1202
|
keepPrivateProps?: boolean | undefined;
|
1196
1203
|
keep_private_props?: boolean | undefined;
|
@@ -1199,6 +1206,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1199
1206
|
inlineSourcesContent?: boolean | undefined;
|
1200
1207
|
} | undefined;
|
1201
1208
|
preserveAllComments?: boolean | undefined;
|
1209
|
+
output?: {
|
1210
|
+
charset?: "ascii" | "utf8" | undefined;
|
1211
|
+
} | undefined;
|
1202
1212
|
}, {
|
1203
1213
|
transform?: {
|
1204
1214
|
react?: {
|
@@ -1220,9 +1230,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1220
1230
|
} | undefined;
|
1221
1231
|
optimizer?: {
|
1222
1232
|
globals?: {
|
1223
|
-
typeofs?: Record<string, string> | undefined;
|
1224
1233
|
vars?: Record<string, string> | undefined;
|
1225
1234
|
envs?: string[] | Record<string, string> | undefined;
|
1235
|
+
typeofs?: Record<string, string> | undefined;
|
1226
1236
|
} | undefined;
|
1227
1237
|
simplify?: boolean | undefined;
|
1228
1238
|
jsonify?: {
|
@@ -1237,7 +1247,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1237
1247
|
verbatimModuleSyntax?: boolean | undefined;
|
1238
1248
|
} | undefined;
|
1239
1249
|
loose?: boolean | undefined;
|
1240
|
-
keepClassNames?: boolean | undefined;
|
1241
1250
|
assumptions?: {
|
1242
1251
|
arrayLikeIsIterable?: boolean | undefined;
|
1243
1252
|
constantReexports?: boolean | undefined;
|
@@ -1290,6 +1299,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1290
1299
|
} | undefined;
|
1291
1300
|
externalHelpers?: boolean | undefined;
|
1292
1301
|
target?: "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext" | undefined;
|
1302
|
+
keepClassNames?: boolean | undefined;
|
1293
1303
|
experimental?: {
|
1294
1304
|
optimizeHygiene?: boolean | undefined;
|
1295
1305
|
keepImportAttributes?: boolean | undefined;
|
@@ -1315,6 +1325,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1315
1325
|
toplevel?: boolean | undefined;
|
1316
1326
|
compress?: boolean | {
|
1317
1327
|
module?: boolean | undefined;
|
1328
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
1329
|
+
typeofs?: boolean | undefined;
|
1318
1330
|
ecma?: string | number | undefined;
|
1319
1331
|
arguments?: boolean | undefined;
|
1320
1332
|
arrows?: boolean | undefined;
|
@@ -1337,7 +1349,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1337
1349
|
hoist_vars?: boolean | undefined;
|
1338
1350
|
ie8?: boolean | undefined;
|
1339
1351
|
if_return?: boolean | undefined;
|
1340
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
1341
1352
|
join_vars?: boolean | undefined;
|
1342
1353
|
keep_classnames?: boolean | undefined;
|
1343
1354
|
keep_fargs?: boolean | undefined;
|
@@ -1356,7 +1367,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1356
1367
|
switches?: boolean | undefined;
|
1357
1368
|
top_retain?: any;
|
1358
1369
|
toplevel?: any;
|
1359
|
-
typeofs?: boolean | undefined;
|
1360
1370
|
unsafe?: boolean | undefined;
|
1361
1371
|
unsafe_passes?: boolean | undefined;
|
1362
1372
|
unsafe_arrows?: boolean | undefined;
|
@@ -1395,6 +1405,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1395
1405
|
wrapFuncArgs?: boolean | undefined;
|
1396
1406
|
} | undefined;
|
1397
1407
|
mangle?: boolean | {
|
1408
|
+
keepClassNames?: boolean | undefined;
|
1398
1409
|
safari10?: boolean | undefined;
|
1399
1410
|
ie8?: boolean | undefined;
|
1400
1411
|
keep_classnames?: boolean | undefined;
|
@@ -1402,7 +1413,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1402
1413
|
toplevel?: boolean | undefined;
|
1403
1414
|
props?: Record<string, any> | undefined;
|
1404
1415
|
topLevel?: boolean | undefined;
|
1405
|
-
keepClassNames?: boolean | undefined;
|
1406
1416
|
keepFnNames?: boolean | undefined;
|
1407
1417
|
keepPrivateProps?: boolean | undefined;
|
1408
1418
|
keep_private_props?: boolean | undefined;
|
@@ -1411,6 +1421,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1411
1421
|
inlineSourcesContent?: boolean | undefined;
|
1412
1422
|
} | undefined;
|
1413
1423
|
preserveAllComments?: boolean | undefined;
|
1424
|
+
output?: {
|
1425
|
+
charset?: "ascii" | "utf8" | undefined;
|
1426
|
+
} | undefined;
|
1414
1427
|
}>>;
|
1415
1428
|
module: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1416
1429
|
strict: z.ZodOptional<z.ZodBoolean>;
|
@@ -1694,7 +1707,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1694
1707
|
allowTopLevelThis?: boolean | undefined;
|
1695
1708
|
preserveImportMeta?: boolean | undefined;
|
1696
1709
|
} | {
|
1697
|
-
type: "
|
1710
|
+
type: "commonjs";
|
1698
1711
|
strict?: boolean | undefined;
|
1699
1712
|
strictMode?: boolean | undefined;
|
1700
1713
|
lazy?: boolean | string[] | undefined;
|
@@ -1706,8 +1719,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1706
1719
|
allowTopLevelThis?: boolean | undefined;
|
1707
1720
|
preserveImportMeta?: boolean | undefined;
|
1708
1721
|
} | {
|
1709
|
-
type: "
|
1722
|
+
type: "umd";
|
1710
1723
|
strict?: boolean | undefined;
|
1724
|
+
globals?: Record<string, string> | undefined;
|
1711
1725
|
strictMode?: boolean | undefined;
|
1712
1726
|
lazy?: boolean | string[] | undefined;
|
1713
1727
|
noInterop?: boolean | undefined;
|
@@ -1718,9 +1732,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1718
1732
|
allowTopLevelThis?: boolean | undefined;
|
1719
1733
|
preserveImportMeta?: boolean | undefined;
|
1720
1734
|
} | {
|
1721
|
-
type: "
|
1735
|
+
type: "amd";
|
1736
|
+
moduleId?: string | undefined;
|
1722
1737
|
strict?: boolean | undefined;
|
1723
|
-
globals?: Record<string, string> | undefined;
|
1724
1738
|
strictMode?: boolean | undefined;
|
1725
1739
|
lazy?: boolean | string[] | undefined;
|
1726
1740
|
noInterop?: boolean | undefined;
|
@@ -1731,8 +1745,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1731
1745
|
allowTopLevelThis?: boolean | undefined;
|
1732
1746
|
preserveImportMeta?: boolean | undefined;
|
1733
1747
|
} | {
|
1734
|
-
type: "
|
1735
|
-
moduleId?: string | undefined;
|
1748
|
+
type: "nodenext";
|
1736
1749
|
strict?: boolean | undefined;
|
1737
1750
|
strictMode?: boolean | undefined;
|
1738
1751
|
lazy?: boolean | string[] | undefined;
|
@@ -1763,10 +1776,10 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1763
1776
|
forceAllTransforms?: boolean | undefined;
|
1764
1777
|
} | undefined;
|
1765
1778
|
exclude?: string | string[] | undefined;
|
1766
|
-
inlineSourcesContent?: boolean | undefined;
|
1767
|
-
minify?: boolean | undefined;
|
1768
1779
|
$schema?: string | undefined;
|
1769
1780
|
test?: string | string[] | undefined;
|
1781
|
+
inlineSourcesContent?: boolean | undefined;
|
1782
|
+
minify?: boolean | undefined;
|
1770
1783
|
jsc?: {
|
1771
1784
|
transform?: {
|
1772
1785
|
react?: {
|
@@ -1788,9 +1801,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1788
1801
|
} | undefined;
|
1789
1802
|
optimizer?: {
|
1790
1803
|
globals?: {
|
1791
|
-
typeofs?: Record<string, string> | undefined;
|
1792
1804
|
vars?: Record<string, string> | undefined;
|
1793
1805
|
envs?: string[] | Record<string, string> | undefined;
|
1806
|
+
typeofs?: Record<string, string> | undefined;
|
1794
1807
|
} | undefined;
|
1795
1808
|
simplify?: boolean | undefined;
|
1796
1809
|
jsonify?: {
|
@@ -1805,7 +1818,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1805
1818
|
verbatimModuleSyntax?: boolean | undefined;
|
1806
1819
|
} | undefined;
|
1807
1820
|
loose?: boolean | undefined;
|
1808
|
-
keepClassNames?: boolean | undefined;
|
1809
1821
|
assumptions?: {
|
1810
1822
|
arrayLikeIsIterable?: boolean | undefined;
|
1811
1823
|
constantReexports?: boolean | undefined;
|
@@ -1858,6 +1870,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1858
1870
|
} | undefined;
|
1859
1871
|
externalHelpers?: boolean | undefined;
|
1860
1872
|
target?: "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext" | undefined;
|
1873
|
+
keepClassNames?: boolean | undefined;
|
1861
1874
|
experimental?: {
|
1862
1875
|
optimizeHygiene?: boolean | undefined;
|
1863
1876
|
keepImportAttributes?: boolean | undefined;
|
@@ -1883,6 +1896,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1883
1896
|
toplevel?: boolean | undefined;
|
1884
1897
|
compress?: boolean | {
|
1885
1898
|
module?: boolean | undefined;
|
1899
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
1900
|
+
typeofs?: boolean | undefined;
|
1886
1901
|
ecma?: string | number | undefined;
|
1887
1902
|
arguments?: boolean | undefined;
|
1888
1903
|
arrows?: boolean | undefined;
|
@@ -1905,7 +1920,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1905
1920
|
hoist_vars?: boolean | undefined;
|
1906
1921
|
ie8?: boolean | undefined;
|
1907
1922
|
if_return?: boolean | undefined;
|
1908
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
1909
1923
|
join_vars?: boolean | undefined;
|
1910
1924
|
keep_classnames?: boolean | undefined;
|
1911
1925
|
keep_fargs?: boolean | undefined;
|
@@ -1924,7 +1938,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1924
1938
|
switches?: boolean | undefined;
|
1925
1939
|
top_retain?: any;
|
1926
1940
|
toplevel?: any;
|
1927
|
-
typeofs?: boolean | undefined;
|
1928
1941
|
unsafe?: boolean | undefined;
|
1929
1942
|
unsafe_passes?: boolean | undefined;
|
1930
1943
|
unsafe_arrows?: boolean | undefined;
|
@@ -1963,6 +1976,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1963
1976
|
wrapFuncArgs?: boolean | undefined;
|
1964
1977
|
} | undefined;
|
1965
1978
|
mangle?: boolean | {
|
1979
|
+
keepClassNames?: boolean | undefined;
|
1966
1980
|
safari10?: boolean | undefined;
|
1967
1981
|
ie8?: boolean | undefined;
|
1968
1982
|
keep_classnames?: boolean | undefined;
|
@@ -1970,7 +1984,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1970
1984
|
toplevel?: boolean | undefined;
|
1971
1985
|
props?: Record<string, any> | undefined;
|
1972
1986
|
topLevel?: boolean | undefined;
|
1973
|
-
keepClassNames?: boolean | undefined;
|
1974
1987
|
keepFnNames?: boolean | undefined;
|
1975
1988
|
keepPrivateProps?: boolean | undefined;
|
1976
1989
|
keep_private_props?: boolean | undefined;
|
@@ -1979,6 +1992,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
1979
1992
|
inlineSourcesContent?: boolean | undefined;
|
1980
1993
|
} | undefined;
|
1981
1994
|
preserveAllComments?: boolean | undefined;
|
1995
|
+
output?: {
|
1996
|
+
charset?: "ascii" | "utf8" | undefined;
|
1997
|
+
} | undefined;
|
1982
1998
|
} | undefined;
|
1983
1999
|
sourceMaps?: boolean | "inline" | undefined;
|
1984
2000
|
isModule?: boolean | "unknown" | undefined;
|
@@ -2010,7 +2026,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2010
2026
|
allowTopLevelThis?: boolean | undefined;
|
2011
2027
|
preserveImportMeta?: boolean | undefined;
|
2012
2028
|
} | {
|
2013
|
-
type: "
|
2029
|
+
type: "commonjs";
|
2014
2030
|
strict?: boolean | undefined;
|
2015
2031
|
strictMode?: boolean | undefined;
|
2016
2032
|
lazy?: boolean | string[] | undefined;
|
@@ -2022,8 +2038,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2022
2038
|
allowTopLevelThis?: boolean | undefined;
|
2023
2039
|
preserveImportMeta?: boolean | undefined;
|
2024
2040
|
} | {
|
2025
|
-
type: "
|
2041
|
+
type: "umd";
|
2026
2042
|
strict?: boolean | undefined;
|
2043
|
+
globals?: Record<string, string> | undefined;
|
2027
2044
|
strictMode?: boolean | undefined;
|
2028
2045
|
lazy?: boolean | string[] | undefined;
|
2029
2046
|
noInterop?: boolean | undefined;
|
@@ -2034,9 +2051,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2034
2051
|
allowTopLevelThis?: boolean | undefined;
|
2035
2052
|
preserveImportMeta?: boolean | undefined;
|
2036
2053
|
} | {
|
2037
|
-
type: "
|
2054
|
+
type: "amd";
|
2055
|
+
moduleId?: string | undefined;
|
2038
2056
|
strict?: boolean | undefined;
|
2039
|
-
globals?: Record<string, string> | undefined;
|
2040
2057
|
strictMode?: boolean | undefined;
|
2041
2058
|
lazy?: boolean | string[] | undefined;
|
2042
2059
|
noInterop?: boolean | undefined;
|
@@ -2047,8 +2064,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2047
2064
|
allowTopLevelThis?: boolean | undefined;
|
2048
2065
|
preserveImportMeta?: boolean | undefined;
|
2049
2066
|
} | {
|
2050
|
-
type: "
|
2051
|
-
moduleId?: string | undefined;
|
2067
|
+
type: "nodenext";
|
2052
2068
|
strict?: boolean | undefined;
|
2053
2069
|
strictMode?: boolean | undefined;
|
2054
2070
|
lazy?: boolean | string[] | undefined;
|
@@ -2079,10 +2095,10 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2079
2095
|
forceAllTransforms?: boolean | undefined;
|
2080
2096
|
} | undefined;
|
2081
2097
|
exclude?: string | string[] | undefined;
|
2082
|
-
inlineSourcesContent?: boolean | undefined;
|
2083
|
-
minify?: boolean | undefined;
|
2084
2098
|
$schema?: string | undefined;
|
2085
2099
|
test?: string | string[] | undefined;
|
2100
|
+
inlineSourcesContent?: boolean | undefined;
|
2101
|
+
minify?: boolean | undefined;
|
2086
2102
|
jsc?: {
|
2087
2103
|
transform?: {
|
2088
2104
|
react?: {
|
@@ -2104,9 +2120,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2104
2120
|
} | undefined;
|
2105
2121
|
optimizer?: {
|
2106
2122
|
globals?: {
|
2107
|
-
typeofs?: Record<string, string> | undefined;
|
2108
2123
|
vars?: Record<string, string> | undefined;
|
2109
2124
|
envs?: string[] | Record<string, string> | undefined;
|
2125
|
+
typeofs?: Record<string, string> | undefined;
|
2110
2126
|
} | undefined;
|
2111
2127
|
simplify?: boolean | undefined;
|
2112
2128
|
jsonify?: {
|
@@ -2121,7 +2137,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2121
2137
|
verbatimModuleSyntax?: boolean | undefined;
|
2122
2138
|
} | undefined;
|
2123
2139
|
loose?: boolean | undefined;
|
2124
|
-
keepClassNames?: boolean | undefined;
|
2125
2140
|
assumptions?: {
|
2126
2141
|
arrayLikeIsIterable?: boolean | undefined;
|
2127
2142
|
constantReexports?: boolean | undefined;
|
@@ -2174,6 +2189,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2174
2189
|
} | undefined;
|
2175
2190
|
externalHelpers?: boolean | undefined;
|
2176
2191
|
target?: "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext" | undefined;
|
2192
|
+
keepClassNames?: boolean | undefined;
|
2177
2193
|
experimental?: {
|
2178
2194
|
optimizeHygiene?: boolean | undefined;
|
2179
2195
|
keepImportAttributes?: boolean | undefined;
|
@@ -2199,6 +2215,8 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2199
2215
|
toplevel?: boolean | undefined;
|
2200
2216
|
compress?: boolean | {
|
2201
2217
|
module?: boolean | undefined;
|
2218
|
+
inline?: 0 | 2 | 1 | 3 | undefined;
|
2219
|
+
typeofs?: boolean | undefined;
|
2202
2220
|
ecma?: string | number | undefined;
|
2203
2221
|
arguments?: boolean | undefined;
|
2204
2222
|
arrows?: boolean | undefined;
|
@@ -2221,7 +2239,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2221
2239
|
hoist_vars?: boolean | undefined;
|
2222
2240
|
ie8?: boolean | undefined;
|
2223
2241
|
if_return?: boolean | undefined;
|
2224
|
-
inline?: 0 | 2 | 1 | 3 | undefined;
|
2225
2242
|
join_vars?: boolean | undefined;
|
2226
2243
|
keep_classnames?: boolean | undefined;
|
2227
2244
|
keep_fargs?: boolean | undefined;
|
@@ -2240,7 +2257,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2240
2257
|
switches?: boolean | undefined;
|
2241
2258
|
top_retain?: any;
|
2242
2259
|
toplevel?: any;
|
2243
|
-
typeofs?: boolean | undefined;
|
2244
2260
|
unsafe?: boolean | undefined;
|
2245
2261
|
unsafe_passes?: boolean | undefined;
|
2246
2262
|
unsafe_arrows?: boolean | undefined;
|
@@ -2279,6 +2295,7 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2279
2295
|
wrapFuncArgs?: boolean | undefined;
|
2280
2296
|
} | undefined;
|
2281
2297
|
mangle?: boolean | {
|
2298
|
+
keepClassNames?: boolean | undefined;
|
2282
2299
|
safari10?: boolean | undefined;
|
2283
2300
|
ie8?: boolean | undefined;
|
2284
2301
|
keep_classnames?: boolean | undefined;
|
@@ -2286,7 +2303,6 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2286
2303
|
toplevel?: boolean | undefined;
|
2287
2304
|
props?: Record<string, any> | undefined;
|
2288
2305
|
topLevel?: boolean | undefined;
|
2289
|
-
keepClassNames?: boolean | undefined;
|
2290
2306
|
keepFnNames?: boolean | undefined;
|
2291
2307
|
keepPrivateProps?: boolean | undefined;
|
2292
2308
|
keep_private_props?: boolean | undefined;
|
@@ -2295,6 +2311,9 @@ export declare const ZodSwcLoaderOptions: z.ZodObject<{
|
|
2295
2311
|
inlineSourcesContent?: boolean | undefined;
|
2296
2312
|
} | undefined;
|
2297
2313
|
preserveAllComments?: boolean | undefined;
|
2314
|
+
output?: {
|
2315
|
+
charset?: "ascii" | "utf8" | undefined;
|
2316
|
+
} | undefined;
|
2298
2317
|
} | undefined;
|
2299
2318
|
sourceMaps?: boolean | "inline" | undefined;
|
2300
2319
|
isModule?: boolean | "unknown" | undefined;
|