@rspack/core 0.2.12 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChunkGroup.d.ts.map +1 -0
- package/dist/ChunkGroup.js.map +1 -0
- package/dist/{compilation.d.ts → Compilation.d.ts} +6 -5
- package/dist/Compilation.d.ts.map +1 -0
- package/dist/{compilation.js → Compilation.js} +12 -9
- package/dist/Compilation.js.map +1 -0
- package/dist/{compiler.d.ts → Compiler.d.ts} +4 -4
- package/dist/{compiler.d.ts.map → Compiler.d.ts.map} +1 -1
- package/dist/{compiler.js → Compiler.js} +44 -44
- package/dist/{compiler.js.map → Compiler.js.map} +1 -1
- package/dist/{multiCompiler.d.ts → MultiCompiler.d.ts} +3 -3
- package/dist/{multiCompiler.d.ts.map → MultiCompiler.d.ts.map} +1 -1
- package/dist/{multiCompiler.js → MultiCompiler.js} +6 -6
- package/dist/{multiCompiler.js.map → MultiCompiler.js.map} +1 -1
- package/dist/{multiStats.d.ts → MultiStats.d.ts} +1 -1
- package/dist/{multiStats.d.ts.map → MultiStats.d.ts.map} +1 -1
- package/dist/{multiStats.js.map → MultiStats.js.map} +1 -1
- package/dist/{multiWatching.d.ts → MultiWatching.d.ts} +4 -4
- package/dist/{multiWatching.d.ts.map → MultiWatching.d.ts.map} +1 -1
- package/dist/{multiWatching.js → MultiWatching.js} +2 -2
- package/dist/{multiWatching.js.map → MultiWatching.js.map} +1 -1
- package/dist/NormalModule.d.ts.map +1 -0
- package/dist/{normalModule.js.map → NormalModule.js.map} +1 -1
- package/dist/{normalModuleFactory.d.ts.map → NormalModuleFactory.d.ts.map} +1 -1
- package/dist/{normalModuleFactory.js.map → NormalModuleFactory.js.map} +1 -1
- package/dist/RuntimeGlobals.d.ts +321 -0
- package/dist/RuntimeGlobals.d.ts.map +1 -0
- package/dist/RuntimeGlobals.js +324 -0
- package/dist/RuntimeGlobals.js.map +1 -0
- package/dist/{stats.d.ts.map → Stats.d.ts.map} +1 -1
- package/dist/{stats.js.map → Stats.js.map} +1 -1
- package/dist/{watching.d.ts.map → Watching.d.ts.map} +1 -1
- package/dist/{watching.js.map → Watching.js.map} +1 -1
- package/dist/config/adapter.d.ts +2 -2
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +7 -5
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/{adapter-rule-use.d.ts → adapterRuleUse.d.ts} +10 -3
- package/dist/config/adapterRuleUse.d.ts.map +1 -0
- package/dist/config/{adapter-rule-use.js → adapterRuleUse.js} +16 -25
- package/dist/config/adapterRuleUse.js.map +1 -0
- package/dist/config/builtins.d.ts +2 -2
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +0 -1
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/defaults.js +1 -0
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/types.d.ts +2 -2
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/zod/builtins.js +1 -1
- package/dist/config/zod/builtins.js.map +1 -1
- package/dist/config/zod/index.d.ts +41 -36
- package/dist/config/zod/index.d.ts.map +1 -1
- package/dist/config/zod/optimization/index.d.ts +3 -0
- package/dist/config/zod/optimization/index.d.ts.map +1 -1
- package/dist/config/zod/optimization/index.js +1 -0
- package/dist/config/zod/optimization/index.js.map +1 -1
- package/dist/config/zod/output.d.ts +14 -14
- package/dist/config/zod/plugins.d.ts +1 -1
- package/dist/config/zod/plugins.js +2 -2
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/lib/BannerPlugin.js +1 -1
- package/dist/lib/LoaderOptionsPlugin.js +1 -1
- package/dist/loader-runner/index.d.ts +1 -1
- package/dist/loader-runner/index.d.ts.map +1 -1
- package/dist/loader-runner/index.js +18 -27
- package/dist/loader-runner/index.js.map +1 -1
- package/dist/loader-runner/loadLoader.d.ts.map +1 -1
- package/dist/loader-runner/loadLoader.js +38 -1
- package/dist/loader-runner/loadLoader.js.map +1 -1
- package/dist/rspack.d.ts +5 -5
- package/dist/rspack.d.ts.map +1 -1
- package/dist/rspack.js +9 -11
- package/dist/rspack.js.map +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js +2 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js.map +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -1
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/index.d.ts +2 -1
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +14 -1
- package/dist/util/index.js.map +1 -1
- package/dist/web/ResolveSwcPlugin.d.ts +1 -1
- package/package.json +12 -7
- package/dist/chunk_group.d.ts.map +0 -1
- package/dist/chunk_group.js.map +0 -1
- package/dist/compilation.d.ts.map +0 -1
- package/dist/compilation.js.map +0 -1
- package/dist/config/adapter-rule-use.d.ts.map +0 -1
- package/dist/config/adapter-rule-use.js.map +0 -1
- package/dist/normalModule.d.ts.map +0 -1
- /package/dist/{chunk_group.d.ts → ChunkGroup.d.ts} +0 -0
- /package/dist/{chunk_group.js → ChunkGroup.js} +0 -0
- /package/dist/{multiStats.js → MultiStats.js} +0 -0
- /package/dist/{normalModule.d.ts → NormalModule.d.ts} +0 -0
- /package/dist/{normalModule.js → NormalModule.js} +0 -0
- /package/dist/{normalModuleFactory.d.ts → NormalModuleFactory.d.ts} +0 -0
- /package/dist/{normalModuleFactory.js → NormalModuleFactory.js} +0 -0
- /package/dist/{stats.d.ts → Stats.d.ts} +0 -0
- /package/dist/{stats.js → Stats.js} +0 -0
- /package/dist/{watching.d.ts → Watching.d.ts} +0 -0
- /package/dist/{watching.js → Watching.js} +0 -0
|
@@ -263,6 +263,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
263
263
|
}>>;
|
|
264
264
|
optimization: z.ZodOptional<z.ZodObject<{
|
|
265
265
|
moduleIds: z.ZodOptional<z.ZodEnum<["named", "deterministic"]>>;
|
|
266
|
+
chunkIds: z.ZodOptional<z.ZodEnum<["named", "deterministic"]>>;
|
|
266
267
|
minimize: z.ZodOptional<z.ZodBoolean>;
|
|
267
268
|
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodObject<{
|
|
268
269
|
apply: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
@@ -421,6 +422,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
421
422
|
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["flag"]>, z.ZodBoolean]>>;
|
|
422
423
|
}, "strict", z.ZodTypeAny, {
|
|
423
424
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
425
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
424
426
|
minimize?: boolean | undefined;
|
|
425
427
|
minimizer?: ("..." | {
|
|
426
428
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -467,6 +469,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
467
469
|
sideEffects?: boolean | "flag" | undefined;
|
|
468
470
|
}, {
|
|
469
471
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
472
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
470
473
|
minimize?: boolean | undefined;
|
|
471
474
|
minimizer?: ("..." | {
|
|
472
475
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -573,14 +576,14 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
573
576
|
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
574
577
|
} & any> | undefined;
|
|
575
578
|
}>>;
|
|
576
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../
|
|
579
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../Compiler").Compiler, z.ZodTypeDef, import("../../Compiler").Compiler>], z.ZodUnknown>, z.ZodVoid>, z.ZodObject<{
|
|
577
580
|
name: z.ZodOptional<z.ZodString>;
|
|
578
|
-
apply: z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../
|
|
581
|
+
apply: z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../Compiler").Compiler, z.ZodTypeDef, import("../../Compiler").Compiler>], z.ZodUnknown>, z.ZodVoid>;
|
|
579
582
|
}, "strip", z.ZodTypeAny, {
|
|
580
|
-
apply: (args_0: import("../../
|
|
583
|
+
apply: (args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void;
|
|
581
584
|
name?: string | undefined;
|
|
582
585
|
}, {
|
|
583
|
-
apply: (args_0: import("../../
|
|
586
|
+
apply: (args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void;
|
|
584
587
|
name?: string | undefined;
|
|
585
588
|
}>]>, "many">>;
|
|
586
589
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -700,7 +703,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
700
703
|
commonjs?: string | undefined;
|
|
701
704
|
root?: string | string[] | undefined;
|
|
702
705
|
} | undefined;
|
|
703
|
-
type?: "
|
|
706
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
704
707
|
umdNamedDefine?: boolean | undefined;
|
|
705
708
|
}, {
|
|
706
709
|
auxiliaryComment?: string | {
|
|
@@ -715,7 +718,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
715
718
|
commonjs?: string | undefined;
|
|
716
719
|
root?: string | string[] | undefined;
|
|
717
720
|
} | undefined;
|
|
718
|
-
type?: "
|
|
721
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
719
722
|
umdNamedDefine?: boolean | undefined;
|
|
720
723
|
}>]>>;
|
|
721
724
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -749,12 +752,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
749
752
|
uniqueName?: string | undefined;
|
|
750
753
|
path?: string | undefined;
|
|
751
754
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
752
|
-
enabledWasmLoadingTypes?: ("
|
|
753
|
-
wasmLoading?: false | "
|
|
754
|
-
enabledLibraryTypes?: "
|
|
755
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
756
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
757
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
755
758
|
globalObject?: string | undefined;
|
|
756
759
|
libraryExport?: string | string[] | undefined;
|
|
757
|
-
libraryTarget?: "
|
|
760
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
758
761
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
759
762
|
module?: any;
|
|
760
763
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -782,12 +785,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
782
785
|
commonjs?: string | undefined;
|
|
783
786
|
root?: string | string[] | undefined;
|
|
784
787
|
} | undefined;
|
|
785
|
-
type?: "
|
|
788
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
786
789
|
umdNamedDefine?: boolean | undefined;
|
|
787
790
|
} | undefined;
|
|
788
791
|
asyncChunks?: boolean | undefined;
|
|
789
792
|
workerChunkLoading?: string | false | undefined;
|
|
790
|
-
workerWasmLoading?: false | "
|
|
793
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
791
794
|
workerPublicPath?: string | undefined;
|
|
792
795
|
}, {
|
|
793
796
|
iife?: boolean | undefined;
|
|
@@ -816,12 +819,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
816
819
|
uniqueName?: string | undefined;
|
|
817
820
|
path?: string | undefined;
|
|
818
821
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
819
|
-
enabledWasmLoadingTypes?: ("
|
|
820
|
-
wasmLoading?: false | "
|
|
821
|
-
enabledLibraryTypes?: "
|
|
822
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
823
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
824
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
822
825
|
globalObject?: string | undefined;
|
|
823
826
|
libraryExport?: string | string[] | undefined;
|
|
824
|
-
libraryTarget?: "
|
|
827
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
825
828
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
826
829
|
module?: any;
|
|
827
830
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -849,12 +852,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
849
852
|
commonjs?: string | undefined;
|
|
850
853
|
root?: string | string[] | undefined;
|
|
851
854
|
} | undefined;
|
|
852
|
-
type?: "
|
|
855
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
853
856
|
umdNamedDefine?: boolean | undefined;
|
|
854
857
|
} | undefined;
|
|
855
858
|
asyncChunks?: boolean | undefined;
|
|
856
859
|
workerChunkLoading?: string | false | undefined;
|
|
857
|
-
workerWasmLoading?: false | "
|
|
860
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
858
861
|
workerPublicPath?: string | undefined;
|
|
859
862
|
}>>;
|
|
860
863
|
builtins: z.ZodOptional<z.ZodObject<{
|
|
@@ -1050,7 +1053,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1050
1053
|
css?: boolean | undefined;
|
|
1051
1054
|
} | undefined;
|
|
1052
1055
|
externals?: any;
|
|
1053
|
-
externalsType?: "
|
|
1056
|
+
externalsType?: "jsonp" | "import" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "script" | "node-commonjs" | undefined;
|
|
1054
1057
|
externalsPresets?: {
|
|
1055
1058
|
web?: boolean | undefined;
|
|
1056
1059
|
node?: boolean | undefined;
|
|
@@ -1121,6 +1124,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1121
1124
|
} | undefined;
|
|
1122
1125
|
optimization?: {
|
|
1123
1126
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
1127
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
1124
1128
|
minimize?: boolean | undefined;
|
|
1125
1129
|
minimizer?: ("..." | {
|
|
1126
1130
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -1197,8 +1201,8 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1197
1201
|
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
1198
1202
|
} & any> | undefined;
|
|
1199
1203
|
}) | undefined;
|
|
1200
|
-
plugins?: (((args_0: import("../../
|
|
1201
|
-
apply: (args_0: import("../../
|
|
1204
|
+
plugins?: (((args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void) | {
|
|
1205
|
+
apply: (args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void;
|
|
1202
1206
|
name?: string | undefined;
|
|
1203
1207
|
})[] | undefined;
|
|
1204
1208
|
name?: string | undefined;
|
|
@@ -1230,12 +1234,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1230
1234
|
uniqueName?: string | undefined;
|
|
1231
1235
|
path?: string | undefined;
|
|
1232
1236
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
1233
|
-
enabledWasmLoadingTypes?: ("
|
|
1234
|
-
wasmLoading?: false | "
|
|
1235
|
-
enabledLibraryTypes?: "
|
|
1237
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
1238
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
1239
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
1236
1240
|
globalObject?: string | undefined;
|
|
1237
1241
|
libraryExport?: string | string[] | undefined;
|
|
1238
|
-
libraryTarget?: "
|
|
1242
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
1239
1243
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
1240
1244
|
module?: any;
|
|
1241
1245
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -1263,12 +1267,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1263
1267
|
commonjs?: string | undefined;
|
|
1264
1268
|
root?: string | string[] | undefined;
|
|
1265
1269
|
} | undefined;
|
|
1266
|
-
type?: "
|
|
1270
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
1267
1271
|
umdNamedDefine?: boolean | undefined;
|
|
1268
1272
|
} | undefined;
|
|
1269
1273
|
asyncChunks?: boolean | undefined;
|
|
1270
1274
|
workerChunkLoading?: string | false | undefined;
|
|
1271
|
-
workerWasmLoading?: false | "
|
|
1275
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
1272
1276
|
workerPublicPath?: string | undefined;
|
|
1273
1277
|
} | undefined;
|
|
1274
1278
|
builtins?: {
|
|
@@ -1326,7 +1330,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1326
1330
|
css?: boolean | undefined;
|
|
1327
1331
|
} | undefined;
|
|
1328
1332
|
externals?: any;
|
|
1329
|
-
externalsType?: "
|
|
1333
|
+
externalsType?: "jsonp" | "import" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "script" | "node-commonjs" | undefined;
|
|
1330
1334
|
externalsPresets?: {
|
|
1331
1335
|
web?: boolean | undefined;
|
|
1332
1336
|
node?: boolean | undefined;
|
|
@@ -1397,6 +1401,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1397
1401
|
} | undefined;
|
|
1398
1402
|
optimization?: {
|
|
1399
1403
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
1404
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
1400
1405
|
minimize?: boolean | undefined;
|
|
1401
1406
|
minimizer?: ("..." | {
|
|
1402
1407
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -1473,8 +1478,8 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1473
1478
|
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
1474
1479
|
} & any> | undefined;
|
|
1475
1480
|
}) | undefined;
|
|
1476
|
-
plugins?: (((args_0: import("../../
|
|
1477
|
-
apply: (args_0: import("../../
|
|
1481
|
+
plugins?: (((args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void) | {
|
|
1482
|
+
apply: (args_0: import("../../Compiler").Compiler, ...args_1: unknown[]) => void;
|
|
1478
1483
|
name?: string | undefined;
|
|
1479
1484
|
})[] | undefined;
|
|
1480
1485
|
name?: string | undefined;
|
|
@@ -1506,12 +1511,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1506
1511
|
uniqueName?: string | undefined;
|
|
1507
1512
|
path?: string | undefined;
|
|
1508
1513
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
1509
|
-
enabledWasmLoadingTypes?: ("
|
|
1510
|
-
wasmLoading?: false | "
|
|
1511
|
-
enabledLibraryTypes?: "
|
|
1514
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
1515
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
1516
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
1512
1517
|
globalObject?: string | undefined;
|
|
1513
1518
|
libraryExport?: string | string[] | undefined;
|
|
1514
|
-
libraryTarget?: "
|
|
1519
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
1515
1520
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
1516
1521
|
module?: any;
|
|
1517
1522
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -1539,12 +1544,12 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
1539
1544
|
commonjs?: string | undefined;
|
|
1540
1545
|
root?: string | string[] | undefined;
|
|
1541
1546
|
} | undefined;
|
|
1542
|
-
type?: "
|
|
1547
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
1543
1548
|
umdNamedDefine?: boolean | undefined;
|
|
1544
1549
|
} | undefined;
|
|
1545
1550
|
asyncChunks?: boolean | undefined;
|
|
1546
1551
|
workerChunkLoading?: string | false | undefined;
|
|
1547
|
-
workerWasmLoading?: false | "
|
|
1552
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
1548
1553
|
workerPublicPath?: string | undefined;
|
|
1549
1554
|
} | undefined;
|
|
1550
1555
|
builtins?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,wBAAgB,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkC3B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare function optimization(): z.ZodObject<{
|
|
3
3
|
moduleIds: z.ZodOptional<z.ZodEnum<["named", "deterministic"]>>;
|
|
4
|
+
chunkIds: z.ZodOptional<z.ZodEnum<["named", "deterministic"]>>;
|
|
4
5
|
minimize: z.ZodOptional<z.ZodBoolean>;
|
|
5
6
|
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodObject<{
|
|
6
7
|
apply: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
@@ -159,6 +160,7 @@ export declare function optimization(): z.ZodObject<{
|
|
|
159
160
|
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["flag"]>, z.ZodBoolean]>>;
|
|
160
161
|
}, "strict", z.ZodTypeAny, {
|
|
161
162
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
163
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
162
164
|
minimize?: boolean | undefined;
|
|
163
165
|
minimizer?: ("..." | {
|
|
164
166
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -205,6 +207,7 @@ export declare function optimization(): z.ZodObject<{
|
|
|
205
207
|
sideEffects?: boolean | "flag" | undefined;
|
|
206
208
|
}, {
|
|
207
209
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
210
|
+
chunkIds?: "named" | "deterministic" | undefined;
|
|
208
211
|
minimize?: boolean | undefined;
|
|
209
212
|
minimizer?: ("..." | {
|
|
210
213
|
apply: (...args: unknown[]) => unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/zod/optimization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,wBAAgB,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/zod/optimization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwB3B;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,8BAA8B,GAAG,WAAW,CACvD,kBAAkB,CAAC,cAAc,CAAC,CAClC,CAAC"}
|
|
@@ -9,6 +9,7 @@ const rspackPluginInstance = zod_1.z.object({
|
|
|
9
9
|
function optimization() {
|
|
10
10
|
return zod_1.z.strictObject({
|
|
11
11
|
moduleIds: zod_1.z.enum(["named", "deterministic"]).optional(),
|
|
12
|
+
chunkIds: zod_1.z.enum(["named", "deterministic"]).optional(),
|
|
12
13
|
minimize: zod_1.z.boolean().optional(),
|
|
13
14
|
minimizer: zod_1.z.literal("...").or(rspackPluginInstance).array().optional(),
|
|
14
15
|
splitChunks: (0, split_chunks_1.splitChunks)().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/config/zod/optimization/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iDAA6C;AAE7C,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,K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AAQ,EAAE;QACzC,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACvC,WAAW,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KACxD,CAAC,CAAC;AACJ,CAAC;AAxBD,oCAwBC"}
|
|
@@ -116,7 +116,7 @@ export declare function output(): z.ZodObject<{
|
|
|
116
116
|
commonjs?: string | undefined;
|
|
117
117
|
root?: string | string[] | undefined;
|
|
118
118
|
} | undefined;
|
|
119
|
-
type?: "
|
|
119
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
120
120
|
umdNamedDefine?: boolean | undefined;
|
|
121
121
|
}, {
|
|
122
122
|
auxiliaryComment?: string | {
|
|
@@ -131,7 +131,7 @@ export declare function output(): z.ZodObject<{
|
|
|
131
131
|
commonjs?: string | undefined;
|
|
132
132
|
root?: string | string[] | undefined;
|
|
133
133
|
} | undefined;
|
|
134
|
-
type?: "
|
|
134
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
135
135
|
umdNamedDefine?: boolean | undefined;
|
|
136
136
|
}>]>>;
|
|
137
137
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,12 +165,12 @@ export declare function output(): z.ZodObject<{
|
|
|
165
165
|
uniqueName?: string | undefined;
|
|
166
166
|
path?: string | undefined;
|
|
167
167
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
168
|
-
enabledWasmLoadingTypes?: ("
|
|
169
|
-
wasmLoading?: false | "
|
|
170
|
-
enabledLibraryTypes?: "
|
|
168
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
169
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
170
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
171
171
|
globalObject?: string | undefined;
|
|
172
172
|
libraryExport?: string | string[] | undefined;
|
|
173
|
-
libraryTarget?: "
|
|
173
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
174
174
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
175
175
|
module?: any;
|
|
176
176
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -198,12 +198,12 @@ export declare function output(): z.ZodObject<{
|
|
|
198
198
|
commonjs?: string | undefined;
|
|
199
199
|
root?: string | string[] | undefined;
|
|
200
200
|
} | undefined;
|
|
201
|
-
type?: "
|
|
201
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
202
202
|
umdNamedDefine?: boolean | undefined;
|
|
203
203
|
} | undefined;
|
|
204
204
|
asyncChunks?: boolean | undefined;
|
|
205
205
|
workerChunkLoading?: string | false | undefined;
|
|
206
|
-
workerWasmLoading?: false | "
|
|
206
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
207
207
|
workerPublicPath?: string | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
iife?: boolean | undefined;
|
|
@@ -232,12 +232,12 @@ export declare function output(): z.ZodObject<{
|
|
|
232
232
|
uniqueName?: string | undefined;
|
|
233
233
|
path?: string | undefined;
|
|
234
234
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
235
|
-
enabledWasmLoadingTypes?: ("
|
|
236
|
-
wasmLoading?: false | "
|
|
237
|
-
enabledLibraryTypes?: "
|
|
235
|
+
enabledWasmLoadingTypes?: ("async-node" | "..." | "fetch-streaming" | "fetch")[] | undefined;
|
|
236
|
+
wasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
237
|
+
enabledLibraryTypes?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | ("jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system")[] | undefined;
|
|
238
238
|
globalObject?: string | undefined;
|
|
239
239
|
libraryExport?: string | string[] | undefined;
|
|
240
|
-
libraryTarget?: "
|
|
240
|
+
libraryTarget?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
241
241
|
hashFunction?: string | ((...args: unknown[]) => unknown) | undefined;
|
|
242
242
|
module?: any;
|
|
243
243
|
strictModuleErrorHandling?: boolean | undefined;
|
|
@@ -265,11 +265,11 @@ export declare function output(): z.ZodObject<{
|
|
|
265
265
|
commonjs?: string | undefined;
|
|
266
266
|
root?: string | string[] | undefined;
|
|
267
267
|
} | undefined;
|
|
268
|
-
type?: "
|
|
268
|
+
type?: "jsonp" | "..." | "var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | undefined;
|
|
269
269
|
umdNamedDefine?: boolean | undefined;
|
|
270
270
|
} | undefined;
|
|
271
271
|
asyncChunks?: boolean | undefined;
|
|
272
272
|
workerChunkLoading?: string | false | undefined;
|
|
273
|
-
workerWasmLoading?: false | "
|
|
273
|
+
workerWasmLoading?: false | "async-node" | "..." | "fetch-streaming" | "fetch" | undefined;
|
|
274
274
|
workerPublicPath?: string | undefined;
|
|
275
275
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { Compiler } from "../../
|
|
2
|
+
import { Compiler } from "../../Compiler";
|
|
3
3
|
export declare function plugins(): z.ZodArray<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[z.ZodType<Compiler, z.ZodTypeDef, Compiler>], z.ZodUnknown>, z.ZodVoid>, z.ZodObject<{
|
|
4
4
|
name: z.ZodOptional<z.ZodString>;
|
|
5
5
|
apply: z.ZodFunction<z.ZodTuple<[z.ZodType<Compiler, z.ZodTypeDef, Compiler>], z.ZodUnknown>, z.ZodVoid>;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.plugins = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const Compiler_1 = require("../../Compiler");
|
|
6
6
|
const rspackPluginFunction = zod_1.z
|
|
7
7
|
.function()
|
|
8
|
-
.args(zod_1.z.instanceof(
|
|
8
|
+
.args(zod_1.z.instanceof(Compiler_1.Compiler))
|
|
9
9
|
.returns(zod_1.z.void());
|
|
10
10
|
const rspackPluginInstance = zod_1.z.object({
|
|
11
11
|
name: zod_1.z.string().optional(),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./Compiler";
|
|
2
|
+
export * from "./MultiCompiler";
|
|
3
|
+
export * from "./Compilation";
|
|
4
4
|
export * from "./config";
|
|
5
5
|
export * from "./rspack";
|
|
6
|
-
export
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
6
|
+
export { RuntimeGlobals } from "./RuntimeGlobals";
|
|
7
|
+
export * from "./Stats";
|
|
8
|
+
export * from "./MultiStats";
|
|
9
|
+
export * from "./ChunkGroup";
|
|
10
|
+
export * from "./NormalModuleFactory";
|
|
10
11
|
export { cachedCleverMerge as cleverMerge } from "./util/cleverMerge";
|
|
11
12
|
export { BannerPlugin } from "./lib/BannerPlugin";
|
|
12
13
|
export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
13
14
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
15
|
+
export { registerGlobalTrace as experimental_registerGlobalTrace, cleanupGlobalTrace as experimental_cleanupGlobalTrace } from "@rspack/binding";
|
|
14
16
|
import { Configuration } from "./config";
|
|
15
17
|
export type OptimizationSplitChunksOptions = NonNullable<Configuration["optimization"]>["splitChunks"];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACN,mBAAmB,IAAI,gCAAgC,EACvD,kBAAkB,IAAI,+BAA+B,EACrD,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,MAAM,8BAA8B,GAAG,WAAW,CACvD,aAAa,CAAC,cAAc,CAAC,CAC7B,CAAC,aAAa,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,16 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.LoaderOptionsPlugin = exports.EnvironmentPlugin = exports.BannerPlugin = exports.cleverMerge = void 0;
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
17
|
+
exports.experimental_cleanupGlobalTrace = exports.experimental_registerGlobalTrace = exports.LoaderOptionsPlugin = exports.EnvironmentPlugin = exports.BannerPlugin = exports.cleverMerge = exports.RuntimeGlobals = void 0;
|
|
18
|
+
__exportStar(require("./Compiler"), exports);
|
|
19
|
+
__exportStar(require("./MultiCompiler"), exports);
|
|
20
|
+
__exportStar(require("./Compilation"), exports);
|
|
21
21
|
__exportStar(require("./config"), exports);
|
|
22
22
|
__exportStar(require("./rspack"), exports);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
23
|
+
var RuntimeGlobals_1 = require("./RuntimeGlobals");
|
|
24
|
+
Object.defineProperty(exports, "RuntimeGlobals", { enumerable: true, get: function () { return RuntimeGlobals_1.RuntimeGlobals; } });
|
|
25
|
+
__exportStar(require("./Stats"), exports);
|
|
26
|
+
__exportStar(require("./MultiStats"), exports);
|
|
27
|
+
__exportStar(require("./ChunkGroup"), exports);
|
|
28
|
+
__exportStar(require("./NormalModuleFactory"), exports);
|
|
27
29
|
var cleverMerge_1 = require("./util/cleverMerge");
|
|
28
30
|
Object.defineProperty(exports, "cleverMerge", { enumerable: true, get: function () { return cleverMerge_1.cachedCleverMerge; } });
|
|
29
31
|
var BannerPlugin_1 = require("./lib/BannerPlugin");
|
|
@@ -32,3 +34,6 @@ var EnvironmentPlugin_1 = require("./lib/EnvironmentPlugin");
|
|
|
32
34
|
Object.defineProperty(exports, "EnvironmentPlugin", { enumerable: true, get: function () { return EnvironmentPlugin_1.EnvironmentPlugin; } });
|
|
33
35
|
var LoaderOptionsPlugin_1 = require("./lib/LoaderOptionsPlugin");
|
|
34
36
|
Object.defineProperty(exports, "LoaderOptionsPlugin", { enumerable: true, get: function () { return LoaderOptionsPlugin_1.LoaderOptionsPlugin; } });
|
|
37
|
+
var binding_1 = require("@rspack/binding");
|
|
38
|
+
Object.defineProperty(exports, "experimental_registerGlobalTrace", { enumerable: true, get: function () { return binding_1.registerGlobalTrace; } });
|
|
39
|
+
Object.defineProperty(exports, "experimental_cleanupGlobalTrace", { enumerable: true, get: function () { return binding_1.cleanupGlobalTrace; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B;AAC7B,wDAAsC;AACtC,kDAAsE;AAA7D,0GAAA,iBAAiB,OAAe;AACzC,mDAAkD;AAAzC,4GAAA,YAAY,OAAA;AACrB,6DAA4D;AAAnD,sHAAA,iBAAiB,OAAA;AAC1B,iEAAgE;AAAvD,0HAAA,mBAAmB,OAAA;AAC5B,2CAGyB;AAFxB,2HAAA,mBAAmB,OAAoC;AACvD,0HAAA,kBAAkB,OAAmC"}
|
package/dist/lib/BannerPlugin.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.BannerPlugin = void 0;
|
|
8
8
|
const { ConcatSource } = require("webpack-sources");
|
|
9
|
-
const Compilation = require("../
|
|
9
|
+
const Compilation = require("../Compilation");
|
|
10
10
|
const ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
|
|
11
11
|
const Template = require("./Template");
|
|
12
12
|
const createSchemaValidation = require("./util/create-schema-validation");
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.LoaderOptionsPlugin = void 0;
|
|
8
8
|
const ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
|
|
9
|
-
const { NormalModule } = require("../
|
|
9
|
+
const { NormalModule } = require("../NormalModule");
|
|
10
10
|
const createSchemaValidation = require("./util/create-schema-validation");
|
|
11
11
|
/** @typedef {import("../declarations/plugins/LoaderOptionsPlugin").LoaderOptionsPluginOptions} LoaderOptionsPluginOptions */
|
|
12
12
|
/** @typedef {import("./Compiler")} Compiler */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/loader-runner/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { JsLoaderContext } from "@rspack/binding";
|
|
11
|
-
import { Compiler } from "../
|
|
11
|
+
import { Compiler } from "../Compiler";
|
|
12
12
|
export declare function parsePathQueryFragment(str: string): {
|
|
13
13
|
path: string;
|
|
14
14
|
query: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loader-runner/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAQvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loader-runner/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAQvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAwBvC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB,CAOA;AAgHD,wBAAsB,SAAS,CAC9B,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,QAAQ,oBA8alB"}
|