@rspack/core 0.5.8 → 0.5.9
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 +2 -0
- package/dist/Chunk.js +4 -0
- package/dist/Compilation.d.ts +25 -26
- package/dist/Compilation.js +16 -16
- package/dist/Compiler.d.ts +12 -5
- package/dist/Compiler.js +83 -138
- package/dist/Module.d.ts +3 -0
- package/dist/Module.js +12 -0
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +11 -10
- package/dist/builtin-plugin/EnableLibraryPlugin.js +39 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/config/normalization.js +1 -1
- package/dist/config/zod.d.ts +359 -51
- package/dist/config/zod.js +8 -5
- package/dist/container/ContainerPlugin.d.ts +2 -2
- package/dist/exports.d.ts +74 -29
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.js +1 -1
- package/package.json +5 -5
- package/dist/util/normalization.d.ts +0 -5
- package/dist/util/normalization.js +0 -9
package/dist/config/zod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { RawFuncUseCtx } from "@rspack/binding";
|
|
2
|
+
import { RawFuncUseCtx, PathData, JsAssetInfo } from "@rspack/binding";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { Compilation, Compiler } from "..";
|
|
5
5
|
import type * as oldBuiltins from "../builtin-plugin";
|
|
@@ -254,7 +254,7 @@ declare const library: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodSt
|
|
|
254
254
|
export type Library = z.infer<typeof library>;
|
|
255
255
|
declare const filenameTemplate: z.ZodString;
|
|
256
256
|
export type FilenameTemplate = z.infer<typeof filenameTemplate>;
|
|
257
|
-
declare const filename: z.ZodString
|
|
257
|
+
declare const filename: 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>]>;
|
|
258
258
|
export type Filename = z.infer<typeof filename>;
|
|
259
259
|
declare const entryFilename: z.ZodString;
|
|
260
260
|
export type EntryFilename = z.infer<typeof entryFilename>;
|
|
@@ -654,7 +654,7 @@ declare const entryStatic: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
654
654
|
} | undefined;
|
|
655
655
|
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>;
|
|
656
656
|
export type EntryStatic = z.infer<typeof entryStatic>;
|
|
657
|
-
declare const entry: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
657
|
+
declare const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
658
658
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
659
659
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
660
660
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
@@ -782,7 +782,135 @@ declare const entry: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion
|
|
|
782
782
|
} | undefined;
|
|
783
783
|
umdNamedDefine?: boolean | undefined;
|
|
784
784
|
} | undefined;
|
|
785
|
-
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]
|
|
785
|
+
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
786
|
+
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
787
|
+
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
788
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
789
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
790
|
+
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>;
|
|
791
|
+
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
792
|
+
wasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>;
|
|
793
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
794
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
amdContainer: z.ZodOptional<z.ZodString>;
|
|
796
|
+
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
797
|
+
amd: z.ZodOptional<z.ZodString>;
|
|
798
|
+
commonjs: z.ZodOptional<z.ZodString>;
|
|
799
|
+
commonjs2: z.ZodOptional<z.ZodString>;
|
|
800
|
+
root: z.ZodOptional<z.ZodString>;
|
|
801
|
+
}, "strict", z.ZodTypeAny, {
|
|
802
|
+
amd?: string | undefined;
|
|
803
|
+
commonjs?: string | undefined;
|
|
804
|
+
commonjs2?: string | undefined;
|
|
805
|
+
root?: string | undefined;
|
|
806
|
+
}, {
|
|
807
|
+
amd?: string | undefined;
|
|
808
|
+
commonjs?: string | undefined;
|
|
809
|
+
commonjs2?: string | undefined;
|
|
810
|
+
root?: string | undefined;
|
|
811
|
+
}>]>>;
|
|
812
|
+
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
813
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
814
|
+
amd: z.ZodOptional<z.ZodString>;
|
|
815
|
+
commonjs: z.ZodOptional<z.ZodString>;
|
|
816
|
+
root: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
817
|
+
}, "strict", z.ZodTypeAny, {
|
|
818
|
+
amd?: string | undefined;
|
|
819
|
+
commonjs?: string | undefined;
|
|
820
|
+
root?: string | string[] | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
amd?: string | undefined;
|
|
823
|
+
commonjs?: string | undefined;
|
|
824
|
+
root?: string | string[] | undefined;
|
|
825
|
+
}>]>>;
|
|
826
|
+
type: z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>;
|
|
827
|
+
umdNamedDefine: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
+
}, "strict", z.ZodTypeAny, {
|
|
829
|
+
type: string;
|
|
830
|
+
amdContainer?: string | undefined;
|
|
831
|
+
auxiliaryComment?: string | {
|
|
832
|
+
amd?: string | undefined;
|
|
833
|
+
commonjs?: string | undefined;
|
|
834
|
+
commonjs2?: string | undefined;
|
|
835
|
+
root?: string | undefined;
|
|
836
|
+
} | undefined;
|
|
837
|
+
export?: string | string[] | undefined;
|
|
838
|
+
name?: string | string[] | {
|
|
839
|
+
amd?: string | undefined;
|
|
840
|
+
commonjs?: string | undefined;
|
|
841
|
+
root?: string | string[] | undefined;
|
|
842
|
+
} | undefined;
|
|
843
|
+
umdNamedDefine?: boolean | undefined;
|
|
844
|
+
}, {
|
|
845
|
+
type: string;
|
|
846
|
+
amdContainer?: string | undefined;
|
|
847
|
+
auxiliaryComment?: string | {
|
|
848
|
+
amd?: string | undefined;
|
|
849
|
+
commonjs?: string | undefined;
|
|
850
|
+
commonjs2?: string | undefined;
|
|
851
|
+
root?: string | undefined;
|
|
852
|
+
} | undefined;
|
|
853
|
+
export?: string | string[] | undefined;
|
|
854
|
+
name?: string | string[] | {
|
|
855
|
+
amd?: string | undefined;
|
|
856
|
+
commonjs?: string | undefined;
|
|
857
|
+
root?: string | string[] | undefined;
|
|
858
|
+
} | undefined;
|
|
859
|
+
umdNamedDefine?: boolean | undefined;
|
|
860
|
+
}>>;
|
|
861
|
+
}, "strict", z.ZodTypeAny, {
|
|
862
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
863
|
+
runtime?: string | false | undefined;
|
|
864
|
+
publicPath?: string | undefined;
|
|
865
|
+
baseUri?: string | undefined;
|
|
866
|
+
chunkLoading?: string | false | undefined;
|
|
867
|
+
asyncChunks?: boolean | undefined;
|
|
868
|
+
wasmLoading?: string | false | undefined;
|
|
869
|
+
filename?: string | undefined;
|
|
870
|
+
library?: {
|
|
871
|
+
type: string;
|
|
872
|
+
amdContainer?: string | undefined;
|
|
873
|
+
auxiliaryComment?: string | {
|
|
874
|
+
amd?: string | undefined;
|
|
875
|
+
commonjs?: string | undefined;
|
|
876
|
+
commonjs2?: string | undefined;
|
|
877
|
+
root?: string | undefined;
|
|
878
|
+
} | undefined;
|
|
879
|
+
export?: string | string[] | undefined;
|
|
880
|
+
name?: string | string[] | {
|
|
881
|
+
amd?: string | undefined;
|
|
882
|
+
commonjs?: string | undefined;
|
|
883
|
+
root?: string | string[] | undefined;
|
|
884
|
+
} | undefined;
|
|
885
|
+
umdNamedDefine?: boolean | undefined;
|
|
886
|
+
} | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
889
|
+
runtime?: string | false | undefined;
|
|
890
|
+
publicPath?: string | undefined;
|
|
891
|
+
baseUri?: string | undefined;
|
|
892
|
+
chunkLoading?: string | false | undefined;
|
|
893
|
+
asyncChunks?: boolean | undefined;
|
|
894
|
+
wasmLoading?: string | false | undefined;
|
|
895
|
+
filename?: string | undefined;
|
|
896
|
+
library?: {
|
|
897
|
+
type: string;
|
|
898
|
+
amdContainer?: string | undefined;
|
|
899
|
+
auxiliaryComment?: string | {
|
|
900
|
+
amd?: string | undefined;
|
|
901
|
+
commonjs?: string | undefined;
|
|
902
|
+
commonjs2?: string | undefined;
|
|
903
|
+
root?: string | undefined;
|
|
904
|
+
} | undefined;
|
|
905
|
+
export?: string | string[] | undefined;
|
|
906
|
+
name?: string | string[] | {
|
|
907
|
+
amd?: string | undefined;
|
|
908
|
+
commonjs?: string | undefined;
|
|
909
|
+
root?: string | string[] | undefined;
|
|
910
|
+
} | undefined;
|
|
911
|
+
umdNamedDefine?: boolean | undefined;
|
|
912
|
+
} | undefined;
|
|
913
|
+
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>]>;
|
|
786
914
|
export type Entry = z.infer<typeof entry>;
|
|
787
915
|
declare const path: z.ZodString;
|
|
788
916
|
export type Path = z.infer<typeof path>;
|
|
@@ -790,13 +918,13 @@ declare const assetModuleFilename: z.ZodString;
|
|
|
790
918
|
export type AssetModuleFilename = z.infer<typeof assetModuleFilename>;
|
|
791
919
|
declare const webassemblyModuleFilename: z.ZodString;
|
|
792
920
|
export type WebassemblyModuleFilename = z.infer<typeof webassemblyModuleFilename>;
|
|
793
|
-
declare const chunkFilename: z.ZodString
|
|
921
|
+
declare const chunkFilename: 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>]>;
|
|
794
922
|
export type ChunkFilename = z.infer<typeof chunkFilename>;
|
|
795
923
|
declare const crossOriginLoading: z.ZodUnion<[z.ZodLiteral<false>, z.ZodEnum<["anonymous", "use-credentials"]>]>;
|
|
796
924
|
export type CrossOriginLoading = z.infer<typeof crossOriginLoading>;
|
|
797
|
-
declare const cssFilename: z.ZodString
|
|
925
|
+
declare const cssFilename: 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>]>;
|
|
798
926
|
export type CssFilename = z.infer<typeof cssFilename>;
|
|
799
|
-
declare const cssChunkFilename: z.ZodString
|
|
927
|
+
declare const cssChunkFilename: 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>]>;
|
|
800
928
|
export type CssChunkFilename = z.infer<typeof cssChunkFilename>;
|
|
801
929
|
declare const hotUpdateChunkFilename: z.ZodString;
|
|
802
930
|
export type HotUpdateChunkFilename = z.infer<typeof hotUpdateChunkFilename>;
|
|
@@ -860,11 +988,11 @@ declare const output: z.ZodObject<{
|
|
|
860
988
|
path: z.ZodOptional<z.ZodString>;
|
|
861
989
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
862
990
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
863
|
-
filename: z.ZodOptional<z.ZodString
|
|
864
|
-
chunkFilename: z.ZodOptional<z.ZodString
|
|
991
|
+
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>]>>;
|
|
992
|
+
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>]>>;
|
|
865
993
|
crossOriginLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodEnum<["anonymous", "use-credentials"]>]>>;
|
|
866
|
-
cssFilename: z.ZodOptional<z.ZodString
|
|
867
|
-
cssChunkFilename: z.ZodOptional<z.ZodString
|
|
994
|
+
cssFilename: 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>]>>;
|
|
995
|
+
cssChunkFilename: 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>]>>;
|
|
868
996
|
hotUpdateMainFilename: z.ZodOptional<z.ZodString>;
|
|
869
997
|
hotUpdateChunkFilename: z.ZodOptional<z.ZodString>;
|
|
870
998
|
hotUpdateGlobal: z.ZodOptional<z.ZodString>;
|
|
@@ -1007,11 +1135,11 @@ declare const output: z.ZodObject<{
|
|
|
1007
1135
|
path?: string | undefined;
|
|
1008
1136
|
clean?: boolean | undefined;
|
|
1009
1137
|
publicPath?: string | undefined;
|
|
1010
|
-
filename?: string | undefined;
|
|
1011
|
-
chunkFilename?: string | undefined;
|
|
1138
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1139
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1012
1140
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
1013
|
-
cssFilename?: string | undefined;
|
|
1014
|
-
cssChunkFilename?: string | undefined;
|
|
1141
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1142
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1015
1143
|
hotUpdateMainFilename?: string | undefined;
|
|
1016
1144
|
hotUpdateChunkFilename?: string | undefined;
|
|
1017
1145
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -1082,11 +1210,11 @@ declare const output: z.ZodObject<{
|
|
|
1082
1210
|
path?: string | undefined;
|
|
1083
1211
|
clean?: boolean | undefined;
|
|
1084
1212
|
publicPath?: string | undefined;
|
|
1085
|
-
filename?: string | undefined;
|
|
1086
|
-
chunkFilename?: string | undefined;
|
|
1213
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1214
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1087
1215
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
1088
|
-
cssFilename?: string | undefined;
|
|
1089
|
-
cssChunkFilename?: string | undefined;
|
|
1216
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1217
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
1090
1218
|
hotUpdateMainFilename?: string | undefined;
|
|
1091
1219
|
hotUpdateChunkFilename?: string | undefined;
|
|
1092
1220
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -3201,7 +3329,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3201
3329
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
3202
3330
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
3203
3331
|
minimize?: boolean | undefined;
|
|
3204
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
3332
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
3205
3333
|
mergeDuplicateChunks?: boolean | undefined;
|
|
3206
3334
|
splitChunks?: false | {
|
|
3207
3335
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -3258,7 +3386,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3258
3386
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
3259
3387
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
3260
3388
|
minimize?: boolean | undefined;
|
|
3261
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
3389
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
3262
3390
|
mergeDuplicateChunks?: boolean | undefined;
|
|
3263
3391
|
splitChunks?: false | {
|
|
3264
3392
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -3447,7 +3575,7 @@ export type Builtins = z.infer<typeof builtins>;
|
|
|
3447
3575
|
export declare const rspackOptions: z.ZodObject<{
|
|
3448
3576
|
name: z.ZodOptional<z.ZodString>;
|
|
3449
3577
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3450
|
-
entry: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
3578
|
+
entry: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
3451
3579
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
3452
3580
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
3453
3581
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
@@ -3575,16 +3703,144 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3575
3703
|
} | undefined;
|
|
3576
3704
|
umdNamedDefine?: boolean | undefined;
|
|
3577
3705
|
} | undefined;
|
|
3578
|
-
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]
|
|
3706
|
+
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
3707
|
+
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
3708
|
+
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
3709
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
3710
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
3711
|
+
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>;
|
|
3712
|
+
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
3713
|
+
wasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>;
|
|
3714
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
3715
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
3716
|
+
amdContainer: z.ZodOptional<z.ZodString>;
|
|
3717
|
+
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3718
|
+
amd: z.ZodOptional<z.ZodString>;
|
|
3719
|
+
commonjs: z.ZodOptional<z.ZodString>;
|
|
3720
|
+
commonjs2: z.ZodOptional<z.ZodString>;
|
|
3721
|
+
root: z.ZodOptional<z.ZodString>;
|
|
3722
|
+
}, "strict", z.ZodTypeAny, {
|
|
3723
|
+
amd?: string | undefined;
|
|
3724
|
+
commonjs?: string | undefined;
|
|
3725
|
+
commonjs2?: string | undefined;
|
|
3726
|
+
root?: string | undefined;
|
|
3727
|
+
}, {
|
|
3728
|
+
amd?: string | undefined;
|
|
3729
|
+
commonjs?: string | undefined;
|
|
3730
|
+
commonjs2?: string | undefined;
|
|
3731
|
+
root?: string | undefined;
|
|
3732
|
+
}>]>>;
|
|
3733
|
+
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3734
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
3735
|
+
amd: z.ZodOptional<z.ZodString>;
|
|
3736
|
+
commonjs: z.ZodOptional<z.ZodString>;
|
|
3737
|
+
root: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3738
|
+
}, "strict", z.ZodTypeAny, {
|
|
3739
|
+
amd?: string | undefined;
|
|
3740
|
+
commonjs?: string | undefined;
|
|
3741
|
+
root?: string | string[] | undefined;
|
|
3742
|
+
}, {
|
|
3743
|
+
amd?: string | undefined;
|
|
3744
|
+
commonjs?: string | undefined;
|
|
3745
|
+
root?: string | string[] | undefined;
|
|
3746
|
+
}>]>>;
|
|
3747
|
+
type: z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>;
|
|
3748
|
+
umdNamedDefine: z.ZodOptional<z.ZodBoolean>;
|
|
3749
|
+
}, "strict", z.ZodTypeAny, {
|
|
3750
|
+
type: string;
|
|
3751
|
+
amdContainer?: string | undefined;
|
|
3752
|
+
auxiliaryComment?: string | {
|
|
3753
|
+
amd?: string | undefined;
|
|
3754
|
+
commonjs?: string | undefined;
|
|
3755
|
+
commonjs2?: string | undefined;
|
|
3756
|
+
root?: string | undefined;
|
|
3757
|
+
} | undefined;
|
|
3758
|
+
export?: string | string[] | undefined;
|
|
3759
|
+
name?: string | string[] | {
|
|
3760
|
+
amd?: string | undefined;
|
|
3761
|
+
commonjs?: string | undefined;
|
|
3762
|
+
root?: string | string[] | undefined;
|
|
3763
|
+
} | undefined;
|
|
3764
|
+
umdNamedDefine?: boolean | undefined;
|
|
3765
|
+
}, {
|
|
3766
|
+
type: string;
|
|
3767
|
+
amdContainer?: string | undefined;
|
|
3768
|
+
auxiliaryComment?: string | {
|
|
3769
|
+
amd?: string | undefined;
|
|
3770
|
+
commonjs?: string | undefined;
|
|
3771
|
+
commonjs2?: string | undefined;
|
|
3772
|
+
root?: string | undefined;
|
|
3773
|
+
} | undefined;
|
|
3774
|
+
export?: string | string[] | undefined;
|
|
3775
|
+
name?: string | string[] | {
|
|
3776
|
+
amd?: string | undefined;
|
|
3777
|
+
commonjs?: string | undefined;
|
|
3778
|
+
root?: string | string[] | undefined;
|
|
3779
|
+
} | undefined;
|
|
3780
|
+
umdNamedDefine?: boolean | undefined;
|
|
3781
|
+
}>>;
|
|
3782
|
+
}, "strict", z.ZodTypeAny, {
|
|
3783
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
3784
|
+
runtime?: string | false | undefined;
|
|
3785
|
+
publicPath?: string | undefined;
|
|
3786
|
+
baseUri?: string | undefined;
|
|
3787
|
+
chunkLoading?: string | false | undefined;
|
|
3788
|
+
asyncChunks?: boolean | undefined;
|
|
3789
|
+
wasmLoading?: string | false | undefined;
|
|
3790
|
+
filename?: string | undefined;
|
|
3791
|
+
library?: {
|
|
3792
|
+
type: string;
|
|
3793
|
+
amdContainer?: string | undefined;
|
|
3794
|
+
auxiliaryComment?: string | {
|
|
3795
|
+
amd?: string | undefined;
|
|
3796
|
+
commonjs?: string | undefined;
|
|
3797
|
+
commonjs2?: string | undefined;
|
|
3798
|
+
root?: string | undefined;
|
|
3799
|
+
} | undefined;
|
|
3800
|
+
export?: string | string[] | undefined;
|
|
3801
|
+
name?: string | string[] | {
|
|
3802
|
+
amd?: string | undefined;
|
|
3803
|
+
commonjs?: string | undefined;
|
|
3804
|
+
root?: string | string[] | undefined;
|
|
3805
|
+
} | undefined;
|
|
3806
|
+
umdNamedDefine?: boolean | undefined;
|
|
3807
|
+
} | undefined;
|
|
3808
|
+
}, {
|
|
3809
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
3810
|
+
runtime?: string | false | undefined;
|
|
3811
|
+
publicPath?: string | undefined;
|
|
3812
|
+
baseUri?: string | undefined;
|
|
3813
|
+
chunkLoading?: string | false | undefined;
|
|
3814
|
+
asyncChunks?: boolean | undefined;
|
|
3815
|
+
wasmLoading?: string | false | undefined;
|
|
3816
|
+
filename?: string | undefined;
|
|
3817
|
+
library?: {
|
|
3818
|
+
type: string;
|
|
3819
|
+
amdContainer?: string | undefined;
|
|
3820
|
+
auxiliaryComment?: string | {
|
|
3821
|
+
amd?: string | undefined;
|
|
3822
|
+
commonjs?: string | undefined;
|
|
3823
|
+
commonjs2?: string | undefined;
|
|
3824
|
+
root?: string | undefined;
|
|
3825
|
+
} | undefined;
|
|
3826
|
+
export?: string | string[] | undefined;
|
|
3827
|
+
name?: string | string[] | {
|
|
3828
|
+
amd?: string | undefined;
|
|
3829
|
+
commonjs?: string | undefined;
|
|
3830
|
+
root?: string | string[] | undefined;
|
|
3831
|
+
} | undefined;
|
|
3832
|
+
umdNamedDefine?: boolean | undefined;
|
|
3833
|
+
} | undefined;
|
|
3834
|
+
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>]>>;
|
|
3579
3835
|
output: z.ZodOptional<z.ZodObject<{
|
|
3580
3836
|
path: z.ZodOptional<z.ZodString>;
|
|
3581
3837
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
3582
3838
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
3583
|
-
filename: z.ZodOptional<z.ZodString
|
|
3584
|
-
chunkFilename: z.ZodOptional<z.ZodString
|
|
3839
|
+
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>]>>;
|
|
3840
|
+
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>]>>;
|
|
3585
3841
|
crossOriginLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodEnum<["anonymous", "use-credentials"]>]>>;
|
|
3586
|
-
cssFilename: z.ZodOptional<z.ZodString
|
|
3587
|
-
cssChunkFilename: z.ZodOptional<z.ZodString
|
|
3842
|
+
cssFilename: 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>]>>;
|
|
3843
|
+
cssChunkFilename: 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>]>>;
|
|
3588
3844
|
hotUpdateMainFilename: z.ZodOptional<z.ZodString>;
|
|
3589
3845
|
hotUpdateChunkFilename: z.ZodOptional<z.ZodString>;
|
|
3590
3846
|
hotUpdateGlobal: z.ZodOptional<z.ZodString>;
|
|
@@ -3727,11 +3983,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3727
3983
|
path?: string | undefined;
|
|
3728
3984
|
clean?: boolean | undefined;
|
|
3729
3985
|
publicPath?: string | undefined;
|
|
3730
|
-
filename?: string | undefined;
|
|
3731
|
-
chunkFilename?: string | undefined;
|
|
3986
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3987
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3732
3988
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
3733
|
-
cssFilename?: string | undefined;
|
|
3734
|
-
cssChunkFilename?: string | undefined;
|
|
3989
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3990
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3735
3991
|
hotUpdateMainFilename?: string | undefined;
|
|
3736
3992
|
hotUpdateChunkFilename?: string | undefined;
|
|
3737
3993
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -3802,11 +4058,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3802
4058
|
path?: string | undefined;
|
|
3803
4059
|
clean?: boolean | undefined;
|
|
3804
4060
|
publicPath?: string | undefined;
|
|
3805
|
-
filename?: string | undefined;
|
|
3806
|
-
chunkFilename?: string | undefined;
|
|
4061
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
4062
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3807
4063
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
3808
|
-
cssFilename?: string | undefined;
|
|
3809
|
-
cssChunkFilename?: string | undefined;
|
|
4064
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
4065
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
3810
4066
|
hotUpdateMainFilename?: string | undefined;
|
|
3811
4067
|
hotUpdateChunkFilename?: string | undefined;
|
|
3812
4068
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -4410,7 +4666,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4410
4666
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
4411
4667
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
4412
4668
|
minimize?: boolean | undefined;
|
|
4413
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
4669
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
4414
4670
|
mergeDuplicateChunks?: boolean | undefined;
|
|
4415
4671
|
splitChunks?: false | {
|
|
4416
4672
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -4467,7 +4723,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4467
4723
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
4468
4724
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
4469
4725
|
minimize?: boolean | undefined;
|
|
4470
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
4726
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
4471
4727
|
mergeDuplicateChunks?: boolean | undefined;
|
|
4472
4728
|
splitChunks?: false | {
|
|
4473
4729
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -4849,16 +5105,42 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4849
5105
|
} | undefined;
|
|
4850
5106
|
umdNamedDefine?: boolean | undefined;
|
|
4851
5107
|
} | undefined;
|
|
4852
|
-
}> |
|
|
5108
|
+
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
5109
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
5110
|
+
runtime?: string | false | undefined;
|
|
5111
|
+
publicPath?: string | undefined;
|
|
5112
|
+
baseUri?: string | undefined;
|
|
5113
|
+
chunkLoading?: string | false | undefined;
|
|
5114
|
+
asyncChunks?: boolean | undefined;
|
|
5115
|
+
wasmLoading?: string | false | undefined;
|
|
5116
|
+
filename?: string | undefined;
|
|
5117
|
+
library?: {
|
|
5118
|
+
type: string;
|
|
5119
|
+
amdContainer?: string | undefined;
|
|
5120
|
+
auxiliaryComment?: string | {
|
|
5121
|
+
amd?: string | undefined;
|
|
5122
|
+
commonjs?: string | undefined;
|
|
5123
|
+
commonjs2?: string | undefined;
|
|
5124
|
+
root?: string | undefined;
|
|
5125
|
+
} | undefined;
|
|
5126
|
+
export?: string | string[] | undefined;
|
|
5127
|
+
name?: string | string[] | {
|
|
5128
|
+
amd?: string | undefined;
|
|
5129
|
+
commonjs?: string | undefined;
|
|
5130
|
+
root?: string | string[] | undefined;
|
|
5131
|
+
} | undefined;
|
|
5132
|
+
umdNamedDefine?: boolean | undefined;
|
|
5133
|
+
} | undefined;
|
|
5134
|
+
}>) | undefined;
|
|
4853
5135
|
output?: {
|
|
4854
5136
|
path?: string | undefined;
|
|
4855
5137
|
clean?: boolean | undefined;
|
|
4856
5138
|
publicPath?: string | undefined;
|
|
4857
|
-
filename?: string | undefined;
|
|
4858
|
-
chunkFilename?: string | undefined;
|
|
5139
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5140
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
4859
5141
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
4860
|
-
cssFilename?: string | undefined;
|
|
4861
|
-
cssChunkFilename?: string | undefined;
|
|
5142
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5143
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
4862
5144
|
hotUpdateMainFilename?: string | undefined;
|
|
4863
5145
|
hotUpdateChunkFilename?: string | undefined;
|
|
4864
5146
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -4926,7 +5208,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4926
5208
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
4927
5209
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
4928
5210
|
} | undefined;
|
|
4929
|
-
target?: false | "node" | "async-node" | "
|
|
5211
|
+
target?: false | "node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
4930
5212
|
mode?: "production" | "development" | "none" | undefined;
|
|
4931
5213
|
experiments?: {
|
|
4932
5214
|
lazyCompilation?: boolean | undefined;
|
|
@@ -5047,7 +5329,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5047
5329
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
5048
5330
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
5049
5331
|
minimize?: boolean | undefined;
|
|
5050
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
5332
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
5051
5333
|
mergeDuplicateChunks?: boolean | undefined;
|
|
5052
5334
|
splitChunks?: false | {
|
|
5053
5335
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -5181,16 +5463,42 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5181
5463
|
} | undefined;
|
|
5182
5464
|
umdNamedDefine?: boolean | undefined;
|
|
5183
5465
|
} | undefined;
|
|
5184
|
-
}> |
|
|
5466
|
+
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
5467
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
5468
|
+
runtime?: string | false | undefined;
|
|
5469
|
+
publicPath?: string | undefined;
|
|
5470
|
+
baseUri?: string | undefined;
|
|
5471
|
+
chunkLoading?: string | false | undefined;
|
|
5472
|
+
asyncChunks?: boolean | undefined;
|
|
5473
|
+
wasmLoading?: string | false | undefined;
|
|
5474
|
+
filename?: string | undefined;
|
|
5475
|
+
library?: {
|
|
5476
|
+
type: string;
|
|
5477
|
+
amdContainer?: string | undefined;
|
|
5478
|
+
auxiliaryComment?: string | {
|
|
5479
|
+
amd?: string | undefined;
|
|
5480
|
+
commonjs?: string | undefined;
|
|
5481
|
+
commonjs2?: string | undefined;
|
|
5482
|
+
root?: string | undefined;
|
|
5483
|
+
} | undefined;
|
|
5484
|
+
export?: string | string[] | undefined;
|
|
5485
|
+
name?: string | string[] | {
|
|
5486
|
+
amd?: string | undefined;
|
|
5487
|
+
commonjs?: string | undefined;
|
|
5488
|
+
root?: string | string[] | undefined;
|
|
5489
|
+
} | undefined;
|
|
5490
|
+
umdNamedDefine?: boolean | undefined;
|
|
5491
|
+
} | undefined;
|
|
5492
|
+
}>) | undefined;
|
|
5185
5493
|
output?: {
|
|
5186
5494
|
path?: string | undefined;
|
|
5187
5495
|
clean?: boolean | undefined;
|
|
5188
5496
|
publicPath?: string | undefined;
|
|
5189
|
-
filename?: string | undefined;
|
|
5190
|
-
chunkFilename?: string | undefined;
|
|
5497
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5498
|
+
chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5191
5499
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
5192
|
-
cssFilename?: string | undefined;
|
|
5193
|
-
cssChunkFilename?: string | undefined;
|
|
5500
|
+
cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5501
|
+
cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
5194
5502
|
hotUpdateMainFilename?: string | undefined;
|
|
5195
5503
|
hotUpdateChunkFilename?: string | undefined;
|
|
5196
5504
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -5258,7 +5566,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5258
5566
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
5259
5567
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
5260
5568
|
} | undefined;
|
|
5261
|
-
target?: false | "node" | "async-node" | "
|
|
5569
|
+
target?: false | "node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
5262
5570
|
mode?: "production" | "development" | "none" | undefined;
|
|
5263
5571
|
experiments?: {
|
|
5264
5572
|
lazyCompilation?: boolean | undefined;
|
|
@@ -5379,7 +5687,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5379
5687
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
5380
5688
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
5381
5689
|
minimize?: boolean | undefined;
|
|
5382
|
-
minimizer?: (false | "" | 0 | "..." |
|
|
5690
|
+
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
5383
5691
|
mergeDuplicateChunks?: boolean | undefined;
|
|
5384
5692
|
splitChunks?: false | {
|
|
5385
5693
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
package/dist/config/zod.js
CHANGED
|
@@ -91,7 +91,10 @@ const libraryOptions = zod_1.z.strictObject({
|
|
|
91
91
|
});
|
|
92
92
|
const library = libraryName.or(libraryOptions).optional();
|
|
93
93
|
const filenameTemplate = zod_1.z.string();
|
|
94
|
-
const filename = filenameTemplate
|
|
94
|
+
const filename = filenameTemplate.or(zod_1.z
|
|
95
|
+
.function()
|
|
96
|
+
.args(zod_1.z.custom(), zod_1.z.custom().optional())
|
|
97
|
+
.returns(zod_1.z.string()));
|
|
95
98
|
const entryFilename = filenameTemplate;
|
|
96
99
|
const entryRuntime = zod_1.z.literal(false).or(zod_1.z.string());
|
|
97
100
|
const entryItem = zod_1.z.string().or(zod_1.z.array(zod_1.z.string()));
|
|
@@ -109,18 +112,18 @@ const entryDescription = zod_1.z.strictObject({
|
|
|
109
112
|
const entryUnnamed = entryItem;
|
|
110
113
|
const entryObject = zod_1.z.record(entryItem.or(entryDescription));
|
|
111
114
|
const entryStatic = entryObject.or(entryUnnamed);
|
|
112
|
-
const entry = entryStatic;
|
|
115
|
+
const entry = entryStatic.or(zod_1.z.function().returns(entryStatic));
|
|
113
116
|
//#endregion
|
|
114
117
|
//#region Output
|
|
115
118
|
const path = zod_1.z.string();
|
|
116
119
|
const assetModuleFilename = zod_1.z.string();
|
|
117
120
|
const webassemblyModuleFilename = zod_1.z.string();
|
|
118
|
-
const chunkFilename =
|
|
121
|
+
const chunkFilename = filename;
|
|
119
122
|
const crossOriginLoading = zod_1.z
|
|
120
123
|
.literal(false)
|
|
121
124
|
.or(zod_1.z.enum(["anonymous", "use-credentials"]));
|
|
122
|
-
const cssFilename =
|
|
123
|
-
const cssChunkFilename =
|
|
125
|
+
const cssFilename = filename;
|
|
126
|
+
const cssChunkFilename = filename;
|
|
124
127
|
const hotUpdateChunkFilename = filenameTemplate;
|
|
125
128
|
const hotUpdateMainFilename = filenameTemplate;
|
|
126
129
|
const hotUpdateGlobal = zod_1.z.string();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
|
3
|
-
import { EntryRuntime,
|
|
3
|
+
import { EntryRuntime, FilenameTemplate, LibraryOptions } from "../config";
|
|
4
4
|
import { Compiler } from "../Compiler";
|
|
5
5
|
export type ContainerPluginOptions = {
|
|
6
6
|
exposes: Exposes;
|
|
7
|
-
filename?:
|
|
7
|
+
filename?: FilenameTemplate;
|
|
8
8
|
library?: LibraryOptions;
|
|
9
9
|
name: string;
|
|
10
10
|
runtime?: EntryRuntime;
|