@rspack/core 1.3.0-beta.0 → 1.3.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/ChunkGraph.d.ts +1 -1
- package/dist/Watching.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +59 -0
- package/dist/builtin-plugin/index.d.ts +2 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
- package/dist/config/types.d.ts +8 -5
- package/dist/config/zod.d.ts +18 -155
- package/dist/cssExtractLoader.js +1 -1
- package/dist/exports.d.ts +4 -1
- package/dist/index.js +281 -393
- package/dist/stats/statsFactoryUtils.d.ts +8 -8
- package/dist/util/MergeCaller.d.ts +1 -0
- package/hot/lazy-compilation-node.js +5 -1
- package/hot/lazy-compilation-web.js +6 -10
- package/package.json +6 -6
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +0 -52
- package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +0 -13
package/dist/ChunkGraph.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare class ChunkGraph {
|
|
15
15
|
getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
|
16
16
|
getModuleChunks(module: Module): Chunk[];
|
17
17
|
getModuleChunksIterable(module: Module): Iterable<Chunk>;
|
18
|
-
getModuleId(module: Module): string | null;
|
18
|
+
getModuleId(module: Module): string | number | null;
|
19
19
|
getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
|
20
20
|
getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup | null;
|
21
21
|
}
|
package/dist/Watching.d.ts
CHANGED
@@ -24,7 +24,7 @@ export declare class Watching {
|
|
24
24
|
watch(files: Iterable<string>, dirs: Iterable<string>, missing: Iterable<string>): void;
|
25
25
|
close(callback?: () => void): void;
|
26
26
|
invalidate(callback?: Callback<Error, void>): void;
|
27
|
-
|
27
|
+
invalidateWithChangedFiles(files: Set<string>): void;
|
28
28
|
/**
|
29
29
|
* The reason why this is _done instead of #done, is that in Webpack,
|
30
30
|
* it will rewrite this function to another function
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { BuiltinPluginName, type JsCompilation } from "@rspack/binding";
|
2
|
+
import type { Module } from "../Module";
|
3
|
+
export type CircularDependencyRspackPluginOptions = {
|
4
|
+
/**
|
5
|
+
* When `true`, the plugin will emit `ERROR` diagnostics rather than the
|
6
|
+
* default `WARN` level.
|
7
|
+
*/
|
8
|
+
failOnError?: boolean;
|
9
|
+
/**
|
10
|
+
* When `true`, asynchronous imports like `import("some-module")` will not
|
11
|
+
* be considered connections that can create cycles.
|
12
|
+
*/
|
13
|
+
allowAsyncCycles?: boolean;
|
14
|
+
/**
|
15
|
+
* Cycles containing any module name that matches this regex will _not_ be
|
16
|
+
* counted as a cycle.
|
17
|
+
*/
|
18
|
+
exclude?: RegExp;
|
19
|
+
/**
|
20
|
+
* List of dependency connections that should not count for creating cycles.
|
21
|
+
* Connections are represented as `[from, to]`, where each entry is matched
|
22
|
+
* against the _identifier_ for that module in the connection. The
|
23
|
+
* identifier contains the full, unique path for the module, including all
|
24
|
+
* of the loaders that were applied to it and any request parameters.
|
25
|
+
*
|
26
|
+
* When an entry is a String, it is tested as a _substring_ of the
|
27
|
+
* identifier. For example, the entry "components/Button" would match the
|
28
|
+
* module "app/design/components/Button.tsx". When the entry is a RegExp,
|
29
|
+
* it is tested against the entire identifier.
|
30
|
+
*/
|
31
|
+
ignoredConnections?: Array<[string | RegExp, string | RegExp]>;
|
32
|
+
/**
|
33
|
+
* Called once for every detected cycle. Providing this handler overrides the
|
34
|
+
* default behavior of adding diagnostics to the compilation.
|
35
|
+
*/
|
36
|
+
onDetected?(entrypoint: Module, modules: string[], compilation: JsCompilation): void;
|
37
|
+
/**
|
38
|
+
* Called once for every detected cycle that was ignored because of a rule,
|
39
|
+
* either from `exclude` or `ignoredConnections`.
|
40
|
+
*/
|
41
|
+
onIgnored?(entrypoint: Module, modules: string[], compilation: JsCompilation): void;
|
42
|
+
/**
|
43
|
+
* Called before cycle detection begins.
|
44
|
+
*/
|
45
|
+
onStart?(compilation: JsCompilation): void;
|
46
|
+
/**
|
47
|
+
* Called after cycle detection finishes.
|
48
|
+
*/
|
49
|
+
onEnd?(compilation: JsCompilation): void;
|
50
|
+
};
|
51
|
+
export declare const CircularDependencyRspackPlugin: {
|
52
|
+
new (options: CircularDependencyRspackPluginOptions): {
|
53
|
+
name: BuiltinPluginName;
|
54
|
+
_args: [options: CircularDependencyRspackPluginOptions];
|
55
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
56
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
57
|
+
apply(compiler: import("..").Compiler): void;
|
58
|
+
};
|
59
|
+
};
|
@@ -5,6 +5,7 @@ export * from "./AssetModulesPlugin";
|
|
5
5
|
export * from "./AsyncWebAssemblyModulesPlugin";
|
6
6
|
export * from "./BannerPlugin";
|
7
7
|
export * from "./BundlerInfoRspackPlugin";
|
8
|
+
export * from "./CircularDependencyRspackPlugin";
|
8
9
|
export * from "./ChunkPrefetchPreloadPlugin";
|
9
10
|
export * from "./CommonJsChunkFormatPlugin";
|
10
11
|
export * from "./CopyRspackPlugin";
|
@@ -35,7 +36,7 @@ export * from "./InferAsyncModulesPlugin";
|
|
35
36
|
export * from "./JavascriptModulesPlugin";
|
36
37
|
export * from "./JsLoaderRspackPlugin";
|
37
38
|
export * from "./JsonModulesPlugin";
|
38
|
-
export * from "./lazy-compilation/
|
39
|
+
export * from "./lazy-compilation/middleware";
|
39
40
|
export * from "./LimitChunkCountPlugin";
|
40
41
|
export * from "./MangleExportsPlugin";
|
41
42
|
export * from "./MergeDuplicateChunksPlugin";
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { Middleware } from "webpack-dev-server";
|
2
|
+
import type { Compiler, LazyCompilationOptions } from "../..";
|
3
|
+
export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
|
4
|
+
export declare const lazyCompilationMiddleware: (compiler: Compiler, userOptions?: LazyCompilationOptions | boolean) => Middleware;
|
package/dist/config/types.d.ts
CHANGED
@@ -5,7 +5,6 @@ import type { Compilation, PathData } from "../Compilation";
|
|
5
5
|
import type { Compiler } from "../Compiler";
|
6
6
|
import type { Module } from "../Module";
|
7
7
|
import type ModuleGraph from "../ModuleGraph";
|
8
|
-
import type { LazyCompilationDefaultBackendOptions } from "../builtin-plugin/lazy-compilation/backend";
|
9
8
|
import type { Chunk } from "../exports";
|
10
9
|
import type { ResolveCallback } from "./adapterRuleUse";
|
11
10
|
export type FilenameTemplate = string;
|
@@ -1810,10 +1809,6 @@ export type RspackFutureOptions = {
|
|
1810
1809
|
* Options for lazy compilation.
|
1811
1810
|
*/
|
1812
1811
|
export type LazyCompilationOptions = {
|
1813
|
-
/**
|
1814
|
-
* Backend configuration for lazy compilation.
|
1815
|
-
*/
|
1816
|
-
backend?: LazyCompilationDefaultBackendOptions;
|
1817
1812
|
/**
|
1818
1813
|
* Enable lazy compilation for imports.
|
1819
1814
|
*/
|
@@ -1826,6 +1821,14 @@ export type LazyCompilationOptions = {
|
|
1826
1821
|
* Test function or regex to determine which modules to include.
|
1827
1822
|
*/
|
1828
1823
|
test?: RegExp | ((module: Module) => boolean);
|
1824
|
+
/**
|
1825
|
+
* The runtime code path for client
|
1826
|
+
*/
|
1827
|
+
client?: string;
|
1828
|
+
/**
|
1829
|
+
* The server url
|
1830
|
+
*/
|
1831
|
+
serverUrl?: string;
|
1829
1832
|
};
|
1830
1833
|
/**
|
1831
1834
|
* Options for incremental builds.
|
package/dist/config/zod.d.ts
CHANGED
@@ -624,7 +624,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
624
624
|
compareBeforeEmit: z.ZodOptional<z.ZodBoolean>;
|
625
625
|
}, "strict", z.ZodTypeAny, {
|
626
626
|
module?: boolean | undefined;
|
627
|
-
path?: string | undefined;
|
628
627
|
chunkLoading?: string | false | undefined;
|
629
628
|
asyncChunks?: boolean | undefined;
|
630
629
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -659,6 +658,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
659
658
|
root?: string | undefined;
|
660
659
|
} | undefined;
|
661
660
|
umdNamedDefine?: boolean | undefined;
|
661
|
+
path?: string | undefined;
|
662
662
|
environment?: {
|
663
663
|
module?: boolean | undefined;
|
664
664
|
arrowFunction?: boolean | undefined;
|
@@ -723,7 +723,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
723
723
|
compareBeforeEmit?: boolean | undefined;
|
724
724
|
}, {
|
725
725
|
module?: boolean | undefined;
|
726
|
-
path?: string | undefined;
|
727
726
|
chunkLoading?: string | false | undefined;
|
728
727
|
asyncChunks?: boolean | undefined;
|
729
728
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -758,6 +757,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
758
757
|
root?: string | undefined;
|
759
758
|
} | undefined;
|
760
759
|
umdNamedDefine?: boolean | undefined;
|
760
|
+
path?: string | undefined;
|
761
761
|
environment?: {
|
762
762
|
module?: boolean | undefined;
|
763
763
|
arrowFunction?: boolean | undefined;
|
@@ -885,108 +885,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
885
885
|
} | undefined;
|
886
886
|
}>]>]>;
|
887
887
|
lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
|
888
|
-
backend: z.ZodOptional<z.ZodObject<{
|
889
|
-
client: z.ZodOptional<z.ZodString>;
|
890
|
-
listen: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
891
|
-
port: z.ZodOptional<z.ZodNumber>;
|
892
|
-
host: z.ZodOptional<z.ZodString>;
|
893
|
-
backlog: z.ZodOptional<z.ZodNumber>;
|
894
|
-
path: z.ZodOptional<z.ZodString>;
|
895
|
-
exclusive: z.ZodOptional<z.ZodBoolean>;
|
896
|
-
readableAll: z.ZodOptional<z.ZodBoolean>;
|
897
|
-
writableAll: z.ZodOptional<z.ZodBoolean>;
|
898
|
-
ipv6Only: z.ZodOptional<z.ZodBoolean>;
|
899
|
-
}, "strip", z.ZodTypeAny, {
|
900
|
-
port?: number | undefined;
|
901
|
-
host?: string | undefined;
|
902
|
-
backlog?: number | undefined;
|
903
|
-
path?: string | undefined;
|
904
|
-
exclusive?: boolean | undefined;
|
905
|
-
readableAll?: boolean | undefined;
|
906
|
-
writableAll?: boolean | undefined;
|
907
|
-
ipv6Only?: boolean | undefined;
|
908
|
-
}, {
|
909
|
-
port?: number | undefined;
|
910
|
-
host?: string | undefined;
|
911
|
-
backlog?: number | undefined;
|
912
|
-
path?: string | undefined;
|
913
|
-
exclusive?: boolean | undefined;
|
914
|
-
readableAll?: boolean | undefined;
|
915
|
-
writableAll?: boolean | undefined;
|
916
|
-
ipv6Only?: boolean | undefined;
|
917
|
-
}>]>, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
918
|
-
protocol: z.ZodOptional<z.ZodEnum<["http", "https"]>>;
|
919
|
-
server: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodAny>]>>;
|
920
|
-
}, "strip", z.ZodTypeAny, {
|
921
|
-
client?: string | undefined;
|
922
|
-
listen?: number | {
|
923
|
-
port?: number | undefined;
|
924
|
-
host?: string | undefined;
|
925
|
-
backlog?: number | undefined;
|
926
|
-
path?: string | undefined;
|
927
|
-
exclusive?: boolean | undefined;
|
928
|
-
readableAll?: boolean | undefined;
|
929
|
-
writableAll?: boolean | undefined;
|
930
|
-
ipv6Only?: boolean | undefined;
|
931
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
932
|
-
protocol?: "http" | "https" | undefined;
|
933
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
934
|
-
}, {
|
935
|
-
client?: string | undefined;
|
936
|
-
listen?: number | {
|
937
|
-
port?: number | undefined;
|
938
|
-
host?: string | undefined;
|
939
|
-
backlog?: number | undefined;
|
940
|
-
path?: string | undefined;
|
941
|
-
exclusive?: boolean | undefined;
|
942
|
-
readableAll?: boolean | undefined;
|
943
|
-
writableAll?: boolean | undefined;
|
944
|
-
ipv6Only?: boolean | undefined;
|
945
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
946
|
-
protocol?: "http" | "https" | undefined;
|
947
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
948
|
-
}>>;
|
949
888
|
imports: z.ZodOptional<z.ZodBoolean>;
|
950
889
|
entries: z.ZodOptional<z.ZodBoolean>;
|
951
890
|
test: z.ZodOptional<z.ZodUnion<[z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
891
|
+
client: z.ZodOptional<z.ZodString>;
|
892
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
952
893
|
}, "strip", z.ZodTypeAny, {
|
953
894
|
entries?: boolean | undefined;
|
954
|
-
backend?: {
|
955
|
-
client?: string | undefined;
|
956
|
-
listen?: number | {
|
957
|
-
port?: number | undefined;
|
958
|
-
host?: string | undefined;
|
959
|
-
backlog?: number | undefined;
|
960
|
-
path?: string | undefined;
|
961
|
-
exclusive?: boolean | undefined;
|
962
|
-
readableAll?: boolean | undefined;
|
963
|
-
writableAll?: boolean | undefined;
|
964
|
-
ipv6Only?: boolean | undefined;
|
965
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
966
|
-
protocol?: "http" | "https" | undefined;
|
967
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
968
|
-
} | undefined;
|
969
895
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
970
896
|
imports?: boolean | undefined;
|
897
|
+
client?: string | undefined;
|
898
|
+
serverUrl?: string | undefined;
|
971
899
|
}, {
|
972
900
|
entries?: boolean | undefined;
|
973
|
-
backend?: {
|
974
|
-
client?: string | undefined;
|
975
|
-
listen?: number | {
|
976
|
-
port?: number | undefined;
|
977
|
-
host?: string | undefined;
|
978
|
-
backlog?: number | undefined;
|
979
|
-
path?: string | undefined;
|
980
|
-
exclusive?: boolean | undefined;
|
981
|
-
readableAll?: boolean | undefined;
|
982
|
-
writableAll?: boolean | undefined;
|
983
|
-
ipv6Only?: boolean | undefined;
|
984
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
985
|
-
protocol?: "http" | "https" | undefined;
|
986
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
987
|
-
} | undefined;
|
988
901
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
989
902
|
imports?: boolean | undefined;
|
903
|
+
client?: string | undefined;
|
904
|
+
serverUrl?: string | undefined;
|
990
905
|
}>]>;
|
991
906
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
992
907
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
@@ -1091,23 +1006,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1091
1006
|
} | undefined;
|
1092
1007
|
lazyCompilation?: boolean | {
|
1093
1008
|
entries?: boolean | undefined;
|
1094
|
-
backend?: {
|
1095
|
-
client?: string | undefined;
|
1096
|
-
listen?: number | {
|
1097
|
-
port?: number | undefined;
|
1098
|
-
host?: string | undefined;
|
1099
|
-
backlog?: number | undefined;
|
1100
|
-
path?: string | undefined;
|
1101
|
-
exclusive?: boolean | undefined;
|
1102
|
-
readableAll?: boolean | undefined;
|
1103
|
-
writableAll?: boolean | undefined;
|
1104
|
-
ipv6Only?: boolean | undefined;
|
1105
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
1106
|
-
protocol?: "http" | "https" | undefined;
|
1107
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
1108
|
-
} | undefined;
|
1109
1009
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1110
1010
|
imports?: boolean | undefined;
|
1011
|
+
client?: string | undefined;
|
1012
|
+
serverUrl?: string | undefined;
|
1111
1013
|
} | undefined;
|
1112
1014
|
asyncWebAssembly?: boolean | undefined;
|
1113
1015
|
outputModule?: boolean | undefined;
|
@@ -1159,23 +1061,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1159
1061
|
} | undefined;
|
1160
1062
|
lazyCompilation?: boolean | {
|
1161
1063
|
entries?: boolean | undefined;
|
1162
|
-
backend?: {
|
1163
|
-
client?: string | undefined;
|
1164
|
-
listen?: number | {
|
1165
|
-
port?: number | undefined;
|
1166
|
-
host?: string | undefined;
|
1167
|
-
backlog?: number | undefined;
|
1168
|
-
path?: string | undefined;
|
1169
|
-
exclusive?: boolean | undefined;
|
1170
|
-
readableAll?: boolean | undefined;
|
1171
|
-
writableAll?: boolean | undefined;
|
1172
|
-
ipv6Only?: boolean | undefined;
|
1173
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
1174
|
-
protocol?: "http" | "https" | undefined;
|
1175
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
1176
|
-
} | undefined;
|
1177
1064
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1178
1065
|
imports?: boolean | undefined;
|
1066
|
+
client?: string | undefined;
|
1067
|
+
serverUrl?: string | undefined;
|
1179
1068
|
} | undefined;
|
1180
1069
|
asyncWebAssembly?: boolean | undefined;
|
1181
1070
|
outputModule?: boolean | undefined;
|
@@ -3167,23 +3056,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3167
3056
|
} | undefined;
|
3168
3057
|
lazyCompilation?: boolean | {
|
3169
3058
|
entries?: boolean | undefined;
|
3170
|
-
backend?: {
|
3171
|
-
client?: string | undefined;
|
3172
|
-
listen?: number | {
|
3173
|
-
port?: number | undefined;
|
3174
|
-
host?: string | undefined;
|
3175
|
-
backlog?: number | undefined;
|
3176
|
-
path?: string | undefined;
|
3177
|
-
exclusive?: boolean | undefined;
|
3178
|
-
readableAll?: boolean | undefined;
|
3179
|
-
writableAll?: boolean | undefined;
|
3180
|
-
ipv6Only?: boolean | undefined;
|
3181
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
3182
|
-
protocol?: "http" | "https" | undefined;
|
3183
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
3184
|
-
} | undefined;
|
3185
3059
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3186
3060
|
imports?: boolean | undefined;
|
3061
|
+
client?: string | undefined;
|
3062
|
+
serverUrl?: string | undefined;
|
3187
3063
|
} | undefined;
|
3188
3064
|
asyncWebAssembly?: boolean | undefined;
|
3189
3065
|
outputModule?: boolean | undefined;
|
@@ -3396,7 +3272,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3396
3272
|
extends?: string | string[] | undefined;
|
3397
3273
|
output?: {
|
3398
3274
|
module?: boolean | undefined;
|
3399
|
-
path?: string | undefined;
|
3400
3275
|
chunkLoading?: string | false | undefined;
|
3401
3276
|
asyncChunks?: boolean | undefined;
|
3402
3277
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3431,6 +3306,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3431
3306
|
root?: string | undefined;
|
3432
3307
|
} | undefined;
|
3433
3308
|
umdNamedDefine?: boolean | undefined;
|
3309
|
+
path?: string | undefined;
|
3434
3310
|
environment?: {
|
3435
3311
|
module?: boolean | undefined;
|
3436
3312
|
arrowFunction?: boolean | undefined;
|
@@ -3782,23 +3658,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3782
3658
|
} | undefined;
|
3783
3659
|
lazyCompilation?: boolean | {
|
3784
3660
|
entries?: boolean | undefined;
|
3785
|
-
backend?: {
|
3786
|
-
client?: string | undefined;
|
3787
|
-
listen?: number | {
|
3788
|
-
port?: number | undefined;
|
3789
|
-
host?: string | undefined;
|
3790
|
-
backlog?: number | undefined;
|
3791
|
-
path?: string | undefined;
|
3792
|
-
exclusive?: boolean | undefined;
|
3793
|
-
readableAll?: boolean | undefined;
|
3794
|
-
writableAll?: boolean | undefined;
|
3795
|
-
ipv6Only?: boolean | undefined;
|
3796
|
-
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
3797
|
-
protocol?: "http" | "https" | undefined;
|
3798
|
-
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
3799
|
-
} | undefined;
|
3800
3661
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3801
3662
|
imports?: boolean | undefined;
|
3663
|
+
client?: string | undefined;
|
3664
|
+
serverUrl?: string | undefined;
|
3802
3665
|
} | undefined;
|
3803
3666
|
asyncWebAssembly?: boolean | undefined;
|
3804
3667
|
outputModule?: boolean | undefined;
|
@@ -4011,7 +3874,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4011
3874
|
extends?: string | string[] | undefined;
|
4012
3875
|
output?: {
|
4013
3876
|
module?: boolean | undefined;
|
4014
|
-
path?: string | undefined;
|
4015
3877
|
chunkLoading?: string | false | undefined;
|
4016
3878
|
asyncChunks?: boolean | undefined;
|
4017
3879
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -4046,6 +3908,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4046
3908
|
root?: string | undefined;
|
4047
3909
|
} | undefined;
|
4048
3910
|
umdNamedDefine?: boolean | undefined;
|
3911
|
+
path?: string | undefined;
|
4049
3912
|
environment?: {
|
4050
3913
|
module?: boolean | undefined;
|
4051
3914
|
arrowFunction?: boolean | undefined;
|
package/dist/cssExtractLoader.js
CHANGED
package/dist/exports.d.ts
CHANGED
@@ -69,7 +69,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
69
69
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
70
70
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
71
71
|
export { NormalModuleReplacementPlugin } from "./lib/NormalModuleReplacementPlugin";
|
72
|
-
import { FetchCompileAsyncWasmPlugin, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
72
|
+
import { FetchCompileAsyncWasmPlugin, SubresourceIntegrityPlugin, lazyCompilationMiddleware } from "./builtin-plugin";
|
73
73
|
interface Web {
|
74
74
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
75
75
|
}
|
@@ -149,6 +149,7 @@ export type { RsdoctorPluginData, RsdoctorPluginHooks } from "./builtin-plugin";
|
|
149
149
|
export type { HtmlRspackPluginOptions } from "./builtin-plugin";
|
150
150
|
export type { SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
151
151
|
export type { LightningCssMinimizerRspackPluginOptions } from "./builtin-plugin";
|
152
|
+
export type { CircularDependencyRspackPluginOptions } from "./builtin-plugin";
|
152
153
|
export type { CopyRspackPluginOptions } from "./builtin-plugin";
|
153
154
|
export type { SourceMapDevToolPluginOptions } from "./builtin-plugin";
|
154
155
|
export type { EvalDevToolModulePluginOptions } from "./builtin-plugin";
|
@@ -156,6 +157,7 @@ export type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } fro
|
|
156
157
|
export { HtmlRspackPlugin } from "./builtin-plugin";
|
157
158
|
export { SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
158
159
|
export { LightningCssMinimizerRspackPlugin } from "./builtin-plugin";
|
160
|
+
export { CircularDependencyRspackPlugin } from "./builtin-plugin";
|
159
161
|
export { CopyRspackPlugin } from "./builtin-plugin";
|
160
162
|
export { SourceMapDevToolPlugin } from "./builtin-plugin";
|
161
163
|
export { EvalSourceMapDevToolPlugin } from "./builtin-plugin";
|
@@ -173,5 +175,6 @@ interface Experiments {
|
|
173
175
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
174
176
|
RsdoctorPlugin: typeof RsdoctorPlugin;
|
175
177
|
SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
|
178
|
+
lazyCompilationMiddleware: typeof lazyCompilationMiddleware;
|
176
179
|
}
|
177
180
|
export declare const experiments: Experiments;
|