@rspack/core 1.2.2 → 1.2.4
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/compiled/@swc/types/index.d.ts +349 -258
- package/compiled/enhanced-resolve/index.d.ts +1 -1
- package/compiled/enhanced-resolve/package.json +1 -1
- package/compiled/graceful-fs/index.js +9 -9
- package/compiled/zod/index.d.ts +302 -265
- package/compiled/zod/index.js +238 -84
- package/compiled/zod/package.json +1 -1
- package/dist/Chunk.d.ts +2 -0
- package/dist/ChunkGraph.d.ts +6 -1
- package/dist/ChunkGroup.d.ts +1 -0
- package/dist/Compilation.d.ts +1 -7
- package/dist/Dependency.d.ts +1 -0
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/Module.d.ts +6 -1
- package/dist/ModuleGraph.d.ts +5 -1
- package/dist/ModuleGraphConnection.d.ts +2 -0
- package/dist/NormalModuleFactory.d.ts +4 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +19 -3
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +45 -0
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +40 -0
- package/dist/builtin-plugin/html-plugin/options.d.ts +26 -20
- package/dist/builtin-plugin/index.d.ts +2 -0
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +11 -2
- package/dist/config/defaults.d.ts +1 -0
- package/dist/config/types.d.ts +13 -3
- package/dist/config/zod.d.ts +92 -32
- package/dist/exports.d.ts +7 -2
- package/dist/index.js +6539 -6019
- package/dist/lib/DllReferencePlugin.d.ts +1 -1
- package/dist/util/AsyncTask.d.ts +7 -0
- package/dist/util/runtime.d.ts +2 -0
- package/package.json +7 -7
package/dist/config/zod.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { JsAssetInfo } from "@rspack/binding";
|
|
2
2
|
import { z } from "../../compiled/zod";
|
|
3
3
|
import { Chunk } from "../Chunk";
|
|
4
|
+
import { ChunkGraph } from "../ChunkGraph";
|
|
4
5
|
import type { Compilation, PathData } from "../Compilation";
|
|
5
6
|
import { Module } from "../Module";
|
|
7
|
+
import ModuleGraph from "../ModuleGraph";
|
|
6
8
|
import type * as t from "./types";
|
|
7
9
|
import { ZodRspackCrossChecker } from "./utils";
|
|
8
10
|
export declare const externalsType: z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>;
|
|
@@ -884,7 +886,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
884
886
|
lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
|
|
885
887
|
backend: z.ZodOptional<z.ZodObject<{
|
|
886
888
|
client: z.ZodOptional<z.ZodString>;
|
|
887
|
-
listen: z.ZodUnion<[z.
|
|
889
|
+
listen: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
888
890
|
port: z.ZodOptional<z.ZodNumber>;
|
|
889
891
|
host: z.ZodOptional<z.ZodString>;
|
|
890
892
|
backlog: z.ZodOptional<z.ZodNumber>;
|
|
@@ -911,8 +913,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
911
913
|
readableAll?: boolean | undefined;
|
|
912
914
|
writableAll?: boolean | undefined;
|
|
913
915
|
ipv6Only?: boolean | undefined;
|
|
914
|
-
}>]
|
|
916
|
+
}>]>, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
|
915
917
|
protocol: z.ZodOptional<z.ZodEnum<["http", "https"]>>;
|
|
918
|
+
server: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodAny>]>>;
|
|
916
919
|
}, "strip", z.ZodTypeAny, {
|
|
917
920
|
client?: string | undefined;
|
|
918
921
|
listen?: number | {
|
|
@@ -924,8 +927,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
924
927
|
readableAll?: boolean | undefined;
|
|
925
928
|
writableAll?: boolean | undefined;
|
|
926
929
|
ipv6Only?: boolean | undefined;
|
|
927
|
-
} | undefined;
|
|
930
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
928
931
|
protocol?: "http" | "https" | undefined;
|
|
932
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
929
933
|
}, {
|
|
930
934
|
client?: string | undefined;
|
|
931
935
|
listen?: number | {
|
|
@@ -937,8 +941,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
937
941
|
readableAll?: boolean | undefined;
|
|
938
942
|
writableAll?: boolean | undefined;
|
|
939
943
|
ipv6Only?: boolean | undefined;
|
|
940
|
-
} | undefined;
|
|
944
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
941
945
|
protocol?: "http" | "https" | undefined;
|
|
946
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
942
947
|
}>>;
|
|
943
948
|
imports: z.ZodOptional<z.ZodBoolean>;
|
|
944
949
|
entries: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -958,8 +963,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
958
963
|
readableAll?: boolean | undefined;
|
|
959
964
|
writableAll?: boolean | undefined;
|
|
960
965
|
ipv6Only?: boolean | undefined;
|
|
961
|
-
} | undefined;
|
|
966
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
962
967
|
protocol?: "http" | "https" | undefined;
|
|
968
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
963
969
|
} | undefined;
|
|
964
970
|
}, {
|
|
965
971
|
entries?: boolean | undefined;
|
|
@@ -976,8 +982,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
976
982
|
readableAll?: boolean | undefined;
|
|
977
983
|
writableAll?: boolean | undefined;
|
|
978
984
|
ipv6Only?: boolean | undefined;
|
|
979
|
-
} | undefined;
|
|
985
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
980
986
|
protocol?: "http" | "https" | undefined;
|
|
987
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
981
988
|
} | undefined;
|
|
982
989
|
}>]>;
|
|
983
990
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1096,8 +1103,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1096
1103
|
readableAll?: boolean | undefined;
|
|
1097
1104
|
writableAll?: boolean | undefined;
|
|
1098
1105
|
ipv6Only?: boolean | undefined;
|
|
1099
|
-
} | undefined;
|
|
1106
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
1100
1107
|
protocol?: "http" | "https" | undefined;
|
|
1108
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
1101
1109
|
} | undefined;
|
|
1102
1110
|
} | undefined;
|
|
1103
1111
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -1163,8 +1171,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1163
1171
|
readableAll?: boolean | undefined;
|
|
1164
1172
|
writableAll?: boolean | undefined;
|
|
1165
1173
|
ipv6Only?: boolean | undefined;
|
|
1166
|
-
} | undefined;
|
|
1174
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
1167
1175
|
protocol?: "http" | "https" | undefined;
|
|
1176
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
1168
1177
|
} | undefined;
|
|
1169
1178
|
} | undefined;
|
|
1170
1179
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -1368,11 +1377,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1368
1377
|
}, "strict", z.ZodTypeAny, {
|
|
1369
1378
|
modules?: boolean | undefined;
|
|
1370
1379
|
chunks?: boolean | undefined;
|
|
1371
|
-
ids?: boolean | undefined;
|
|
1372
|
-
runtime?: boolean | undefined;
|
|
1373
|
-
hash?: boolean | undefined;
|
|
1374
1380
|
all?: boolean | undefined;
|
|
1375
1381
|
version?: boolean | undefined;
|
|
1382
|
+
runtime?: boolean | undefined;
|
|
1376
1383
|
publicPath?: boolean | undefined;
|
|
1377
1384
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1378
1385
|
assets?: boolean | undefined;
|
|
@@ -1383,10 +1390,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1383
1390
|
errors?: boolean | undefined;
|
|
1384
1391
|
errorsCount?: boolean | undefined;
|
|
1385
1392
|
colors?: boolean | undefined;
|
|
1393
|
+
hash?: boolean | undefined;
|
|
1386
1394
|
reasons?: boolean | undefined;
|
|
1387
1395
|
outputPath?: boolean | undefined;
|
|
1388
1396
|
chunkModules?: boolean | undefined;
|
|
1389
1397
|
chunkRelations?: boolean | undefined;
|
|
1398
|
+
ids?: boolean | undefined;
|
|
1390
1399
|
timings?: boolean | undefined;
|
|
1391
1400
|
builtAt?: boolean | undefined;
|
|
1392
1401
|
moduleAssets?: boolean | undefined;
|
|
@@ -1445,11 +1454,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1445
1454
|
}, {
|
|
1446
1455
|
modules?: boolean | undefined;
|
|
1447
1456
|
chunks?: boolean | undefined;
|
|
1448
|
-
ids?: boolean | undefined;
|
|
1449
|
-
runtime?: boolean | undefined;
|
|
1450
|
-
hash?: boolean | undefined;
|
|
1451
1457
|
all?: boolean | undefined;
|
|
1452
1458
|
version?: boolean | undefined;
|
|
1459
|
+
runtime?: boolean | undefined;
|
|
1453
1460
|
publicPath?: boolean | undefined;
|
|
1454
1461
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1455
1462
|
assets?: boolean | undefined;
|
|
@@ -1460,10 +1467,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1460
1467
|
errors?: boolean | undefined;
|
|
1461
1468
|
errorsCount?: boolean | undefined;
|
|
1462
1469
|
colors?: boolean | undefined;
|
|
1470
|
+
hash?: boolean | undefined;
|
|
1463
1471
|
reasons?: boolean | undefined;
|
|
1464
1472
|
outputPath?: boolean | undefined;
|
|
1465
1473
|
chunkModules?: boolean | undefined;
|
|
1466
1474
|
chunkRelations?: boolean | undefined;
|
|
1475
|
+
ids?: boolean | undefined;
|
|
1467
1476
|
timings?: boolean | undefined;
|
|
1468
1477
|
builtAt?: boolean | undefined;
|
|
1469
1478
|
moduleAssets?: boolean | undefined;
|
|
@@ -1533,6 +1542,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1533
1542
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
|
1534
1543
|
usedExports: z.ZodOptional<z.ZodBoolean>;
|
|
1535
1544
|
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>, z.ZodArray<z.ZodType<Chunk, z.ZodTypeDef, Chunk>, "many">, z.ZodString], z.ZodUnknown>, z.ZodOptional<z.ZodString>>]>>;
|
|
1545
|
+
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>]>>;
|
|
1536
1546
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
1537
1547
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
1538
1548
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
@@ -1546,6 +1556,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1546
1556
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
|
1547
1557
|
usedExports: z.ZodOptional<z.ZodBoolean>;
|
|
1548
1558
|
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>, z.ZodArray<z.ZodType<Chunk, z.ZodTypeDef, Chunk>, "many">, z.ZodString], z.ZodUnknown>, z.ZodOptional<z.ZodString>>]>>;
|
|
1559
|
+
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>]>>;
|
|
1549
1560
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
1550
1561
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
1551
1562
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
|
@@ -1553,15 +1564,25 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1553
1564
|
maxAsyncRequests: z.ZodOptional<z.ZodNumber>;
|
|
1554
1565
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
|
1555
1566
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
|
1556
|
-
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module
|
|
1567
|
+
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>, z.ZodObject<{
|
|
1568
|
+
moduleGraph: z.ZodType<ModuleGraph, z.ZodTypeDef, ModuleGraph>;
|
|
1569
|
+
chunkGraph: z.ZodType<ChunkGraph, z.ZodTypeDef, ChunkGraph>;
|
|
1570
|
+
}, "strip", z.ZodTypeAny, {
|
|
1571
|
+
moduleGraph: ModuleGraph;
|
|
1572
|
+
chunkGraph: ChunkGraph;
|
|
1573
|
+
}, {
|
|
1574
|
+
moduleGraph: ModuleGraph;
|
|
1575
|
+
chunkGraph: ChunkGraph;
|
|
1576
|
+
}>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
|
1557
1577
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1558
1578
|
enforce: z.ZodOptional<z.ZodBoolean>;
|
|
1559
|
-
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>]>>;
|
|
1560
1579
|
reuseExistingChunk: z.ZodOptional<z.ZodBoolean>;
|
|
1561
1580
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
1562
1581
|
idHint: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
layer: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodString>], null>, z.ZodBoolean>]>>;
|
|
1563
1583
|
}, "strict", z.ZodTypeAny, {
|
|
1564
1584
|
type?: string | RegExp | undefined;
|
|
1585
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1565
1586
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1566
1587
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1567
1588
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1569,6 +1590,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1569
1590
|
defaultSizeTypes?: string[] | undefined;
|
|
1570
1591
|
maxSize?: number | Record<string, number> | undefined;
|
|
1571
1592
|
priority?: number | undefined;
|
|
1593
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1594
|
+
moduleGraph: ModuleGraph;
|
|
1595
|
+
chunkGraph: ChunkGraph;
|
|
1596
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1572
1597
|
minSize?: number | Record<string, number> | undefined;
|
|
1573
1598
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1574
1599
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1576,12 +1601,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1576
1601
|
maxAsyncRequests?: number | undefined;
|
|
1577
1602
|
maxInitialRequests?: number | undefined;
|
|
1578
1603
|
automaticNameDelimiter?: string | undefined;
|
|
1579
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1580
1604
|
enforce?: boolean | undefined;
|
|
1581
1605
|
reuseExistingChunk?: boolean | undefined;
|
|
1582
1606
|
idHint?: string | undefined;
|
|
1583
1607
|
}, {
|
|
1584
1608
|
type?: string | RegExp | undefined;
|
|
1609
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1585
1610
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1586
1611
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1587
1612
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1589,6 +1614,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1589
1614
|
defaultSizeTypes?: string[] | undefined;
|
|
1590
1615
|
maxSize?: number | Record<string, number> | undefined;
|
|
1591
1616
|
priority?: number | undefined;
|
|
1617
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1618
|
+
moduleGraph: ModuleGraph;
|
|
1619
|
+
chunkGraph: ChunkGraph;
|
|
1620
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1592
1621
|
minSize?: number | Record<string, number> | undefined;
|
|
1593
1622
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1594
1623
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1596,7 +1625,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1596
1625
|
maxAsyncRequests?: number | undefined;
|
|
1597
1626
|
maxInitialRequests?: number | undefined;
|
|
1598
1627
|
automaticNameDelimiter?: string | undefined;
|
|
1599
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1600
1628
|
enforce?: boolean | undefined;
|
|
1601
1629
|
reuseExistingChunk?: boolean | undefined;
|
|
1602
1630
|
idHint?: string | undefined;
|
|
@@ -1627,10 +1655,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1627
1655
|
}, "strict", z.ZodTypeAny, {
|
|
1628
1656
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1629
1657
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1658
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1630
1659
|
usedExports?: boolean | undefined;
|
|
1631
1660
|
defaultSizeTypes?: string[] | undefined;
|
|
1632
1661
|
cacheGroups?: Record<string, false | {
|
|
1633
1662
|
type?: string | RegExp | undefined;
|
|
1663
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1634
1664
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1635
1665
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1636
1666
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1638,6 +1668,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1638
1668
|
defaultSizeTypes?: string[] | undefined;
|
|
1639
1669
|
maxSize?: number | Record<string, number> | undefined;
|
|
1640
1670
|
priority?: number | undefined;
|
|
1671
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1672
|
+
moduleGraph: ModuleGraph;
|
|
1673
|
+
chunkGraph: ChunkGraph;
|
|
1674
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1641
1675
|
minSize?: number | Record<string, number> | undefined;
|
|
1642
1676
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1643
1677
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1645,7 +1679,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1645
1679
|
maxAsyncRequests?: number | undefined;
|
|
1646
1680
|
maxInitialRequests?: number | undefined;
|
|
1647
1681
|
automaticNameDelimiter?: string | undefined;
|
|
1648
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1649
1682
|
enforce?: boolean | undefined;
|
|
1650
1683
|
reuseExistingChunk?: boolean | undefined;
|
|
1651
1684
|
idHint?: string | undefined;
|
|
@@ -1670,10 +1703,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1670
1703
|
}, {
|
|
1671
1704
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1672
1705
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1706
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1673
1707
|
usedExports?: boolean | undefined;
|
|
1674
1708
|
defaultSizeTypes?: string[] | undefined;
|
|
1675
1709
|
cacheGroups?: Record<string, false | {
|
|
1676
1710
|
type?: string | RegExp | undefined;
|
|
1711
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1677
1712
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1678
1713
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1679
1714
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1681,6 +1716,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1681
1716
|
defaultSizeTypes?: string[] | undefined;
|
|
1682
1717
|
maxSize?: number | Record<string, number> | undefined;
|
|
1683
1718
|
priority?: number | undefined;
|
|
1719
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1720
|
+
moduleGraph: ModuleGraph;
|
|
1721
|
+
chunkGraph: ChunkGraph;
|
|
1722
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1684
1723
|
minSize?: number | Record<string, number> | undefined;
|
|
1685
1724
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1686
1725
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1688,7 +1727,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1688
1727
|
maxAsyncRequests?: number | undefined;
|
|
1689
1728
|
maxInitialRequests?: number | undefined;
|
|
1690
1729
|
automaticNameDelimiter?: string | undefined;
|
|
1691
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1692
1730
|
enforce?: boolean | undefined;
|
|
1693
1731
|
reuseExistingChunk?: boolean | undefined;
|
|
1694
1732
|
idHint?: string | undefined;
|
|
@@ -1752,10 +1790,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1752
1790
|
splitChunks?: false | {
|
|
1753
1791
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1754
1792
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1793
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1755
1794
|
usedExports?: boolean | undefined;
|
|
1756
1795
|
defaultSizeTypes?: string[] | undefined;
|
|
1757
1796
|
cacheGroups?: Record<string, false | {
|
|
1758
1797
|
type?: string | RegExp | undefined;
|
|
1798
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1759
1799
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1760
1800
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1761
1801
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1763,6 +1803,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1763
1803
|
defaultSizeTypes?: string[] | undefined;
|
|
1764
1804
|
maxSize?: number | Record<string, number> | undefined;
|
|
1765
1805
|
priority?: number | undefined;
|
|
1806
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1807
|
+
moduleGraph: ModuleGraph;
|
|
1808
|
+
chunkGraph: ChunkGraph;
|
|
1809
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1766
1810
|
minSize?: number | Record<string, number> | undefined;
|
|
1767
1811
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1768
1812
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1770,7 +1814,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1770
1814
|
maxAsyncRequests?: number | undefined;
|
|
1771
1815
|
maxInitialRequests?: number | undefined;
|
|
1772
1816
|
automaticNameDelimiter?: string | undefined;
|
|
1773
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1774
1817
|
enforce?: boolean | undefined;
|
|
1775
1818
|
reuseExistingChunk?: boolean | undefined;
|
|
1776
1819
|
idHint?: string | undefined;
|
|
@@ -1819,10 +1862,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1819
1862
|
splitChunks?: false | {
|
|
1820
1863
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1821
1864
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1865
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1822
1866
|
usedExports?: boolean | undefined;
|
|
1823
1867
|
defaultSizeTypes?: string[] | undefined;
|
|
1824
1868
|
cacheGroups?: Record<string, false | {
|
|
1825
1869
|
type?: string | RegExp | undefined;
|
|
1870
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
1826
1871
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1827
1872
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
1828
1873
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -1830,6 +1875,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1830
1875
|
defaultSizeTypes?: string[] | undefined;
|
|
1831
1876
|
maxSize?: number | Record<string, number> | undefined;
|
|
1832
1877
|
priority?: number | undefined;
|
|
1878
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
1879
|
+
moduleGraph: ModuleGraph;
|
|
1880
|
+
chunkGraph: ChunkGraph;
|
|
1881
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
1833
1882
|
minSize?: number | Record<string, number> | undefined;
|
|
1834
1883
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
1835
1884
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -1837,7 +1886,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1837
1886
|
maxAsyncRequests?: number | undefined;
|
|
1838
1887
|
maxInitialRequests?: number | undefined;
|
|
1839
1888
|
automaticNameDelimiter?: string | undefined;
|
|
1840
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
1841
1889
|
enforce?: boolean | undefined;
|
|
1842
1890
|
reuseExistingChunk?: boolean | undefined;
|
|
1843
1891
|
idHint?: string | undefined;
|
|
@@ -3109,8 +3157,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3109
3157
|
readableAll?: boolean | undefined;
|
|
3110
3158
|
writableAll?: boolean | undefined;
|
|
3111
3159
|
ipv6Only?: boolean | undefined;
|
|
3112
|
-
} | undefined;
|
|
3160
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
3113
3161
|
protocol?: "http" | "https" | undefined;
|
|
3162
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
3114
3163
|
} | undefined;
|
|
3115
3164
|
} | undefined;
|
|
3116
3165
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -3149,11 +3198,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3149
3198
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3150
3199
|
modules?: boolean | undefined;
|
|
3151
3200
|
chunks?: boolean | undefined;
|
|
3152
|
-
ids?: boolean | undefined;
|
|
3153
|
-
runtime?: boolean | undefined;
|
|
3154
|
-
hash?: boolean | undefined;
|
|
3155
3201
|
all?: boolean | undefined;
|
|
3156
3202
|
version?: boolean | undefined;
|
|
3203
|
+
runtime?: boolean | undefined;
|
|
3157
3204
|
publicPath?: boolean | undefined;
|
|
3158
3205
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3159
3206
|
assets?: boolean | undefined;
|
|
@@ -3164,10 +3211,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3164
3211
|
errors?: boolean | undefined;
|
|
3165
3212
|
errorsCount?: boolean | undefined;
|
|
3166
3213
|
colors?: boolean | undefined;
|
|
3214
|
+
hash?: boolean | undefined;
|
|
3167
3215
|
reasons?: boolean | undefined;
|
|
3168
3216
|
outputPath?: boolean | undefined;
|
|
3169
3217
|
chunkModules?: boolean | undefined;
|
|
3170
3218
|
chunkRelations?: boolean | undefined;
|
|
3219
|
+
ids?: boolean | undefined;
|
|
3171
3220
|
timings?: boolean | undefined;
|
|
3172
3221
|
builtAt?: boolean | undefined;
|
|
3173
3222
|
moduleAssets?: boolean | undefined;
|
|
@@ -3445,10 +3494,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3445
3494
|
splitChunks?: false | {
|
|
3446
3495
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3447
3496
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
3497
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3448
3498
|
usedExports?: boolean | undefined;
|
|
3449
3499
|
defaultSizeTypes?: string[] | undefined;
|
|
3450
3500
|
cacheGroups?: Record<string, false | {
|
|
3451
3501
|
type?: string | RegExp | undefined;
|
|
3502
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
3452
3503
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3453
3504
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
3454
3505
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -3456,6 +3507,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3456
3507
|
defaultSizeTypes?: string[] | undefined;
|
|
3457
3508
|
maxSize?: number | Record<string, number> | undefined;
|
|
3458
3509
|
priority?: number | undefined;
|
|
3510
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
3511
|
+
moduleGraph: ModuleGraph;
|
|
3512
|
+
chunkGraph: ChunkGraph;
|
|
3513
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
3459
3514
|
minSize?: number | Record<string, number> | undefined;
|
|
3460
3515
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
3461
3516
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -3463,7 +3518,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3463
3518
|
maxAsyncRequests?: number | undefined;
|
|
3464
3519
|
maxInitialRequests?: number | undefined;
|
|
3465
3520
|
automaticNameDelimiter?: string | undefined;
|
|
3466
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
3467
3521
|
enforce?: boolean | undefined;
|
|
3468
3522
|
reuseExistingChunk?: boolean | undefined;
|
|
3469
3523
|
idHint?: string | undefined;
|
|
@@ -3714,8 +3768,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3714
3768
|
readableAll?: boolean | undefined;
|
|
3715
3769
|
writableAll?: boolean | undefined;
|
|
3716
3770
|
ipv6Only?: boolean | undefined;
|
|
3717
|
-
} | undefined;
|
|
3771
|
+
} | ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
3718
3772
|
protocol?: "http" | "https" | undefined;
|
|
3773
|
+
server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
|
|
3719
3774
|
} | undefined;
|
|
3720
3775
|
} | undefined;
|
|
3721
3776
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -3754,11 +3809,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3754
3809
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3755
3810
|
modules?: boolean | undefined;
|
|
3756
3811
|
chunks?: boolean | undefined;
|
|
3757
|
-
ids?: boolean | undefined;
|
|
3758
|
-
runtime?: boolean | undefined;
|
|
3759
|
-
hash?: boolean | undefined;
|
|
3760
3812
|
all?: boolean | undefined;
|
|
3761
3813
|
version?: boolean | undefined;
|
|
3814
|
+
runtime?: boolean | undefined;
|
|
3762
3815
|
publicPath?: boolean | undefined;
|
|
3763
3816
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3764
3817
|
assets?: boolean | undefined;
|
|
@@ -3769,10 +3822,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3769
3822
|
errors?: boolean | undefined;
|
|
3770
3823
|
errorsCount?: boolean | undefined;
|
|
3771
3824
|
colors?: boolean | undefined;
|
|
3825
|
+
hash?: boolean | undefined;
|
|
3772
3826
|
reasons?: boolean | undefined;
|
|
3773
3827
|
outputPath?: boolean | undefined;
|
|
3774
3828
|
chunkModules?: boolean | undefined;
|
|
3775
3829
|
chunkRelations?: boolean | undefined;
|
|
3830
|
+
ids?: boolean | undefined;
|
|
3776
3831
|
timings?: boolean | undefined;
|
|
3777
3832
|
builtAt?: boolean | undefined;
|
|
3778
3833
|
moduleAssets?: boolean | undefined;
|
|
@@ -4050,10 +4105,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4050
4105
|
splitChunks?: false | {
|
|
4051
4106
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4052
4107
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
4108
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4053
4109
|
usedExports?: boolean | undefined;
|
|
4054
4110
|
defaultSizeTypes?: string[] | undefined;
|
|
4055
4111
|
cacheGroups?: Record<string, false | {
|
|
4056
4112
|
type?: string | RegExp | undefined;
|
|
4113
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
|
4057
4114
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4058
4115
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
|
4059
4116
|
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
@@ -4061,6 +4118,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4061
4118
|
defaultSizeTypes?: string[] | undefined;
|
|
4062
4119
|
maxSize?: number | Record<string, number> | undefined;
|
|
4063
4120
|
priority?: number | undefined;
|
|
4121
|
+
test?: string | RegExp | ((args_0: Module, args_1: {
|
|
4122
|
+
moduleGraph: ModuleGraph;
|
|
4123
|
+
chunkGraph: ChunkGraph;
|
|
4124
|
+
}, ...args: unknown[]) => boolean) | undefined;
|
|
4064
4125
|
minSize?: number | Record<string, number> | undefined;
|
|
4065
4126
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
|
4066
4127
|
maxInitialSize?: number | Record<string, number> | undefined;
|
|
@@ -4068,7 +4129,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4068
4129
|
maxAsyncRequests?: number | undefined;
|
|
4069
4130
|
maxInitialRequests?: number | undefined;
|
|
4070
4131
|
automaticNameDelimiter?: string | undefined;
|
|
4071
|
-
test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined;
|
|
4072
4132
|
enforce?: boolean | undefined;
|
|
4073
4133
|
reuseExistingChunk?: boolean | undefined;
|
|
4074
4134
|
idHint?: string | undefined;
|
package/dist/exports.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
11
|
export type { Chunk } from "./Chunk";
|
|
12
12
|
export type { ChunkGroup } from "./ChunkGroup";
|
|
13
|
-
export type { Module, ResolveData } from "./Module";
|
|
13
|
+
export type { Module, ResolveData, ResourceDataWithData } from "./Module";
|
|
14
14
|
export { MultiStats } from "./MultiStats";
|
|
15
15
|
export { NormalModule } from "./NormalModule";
|
|
16
16
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
@@ -65,7 +65,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
|
65
65
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
66
66
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
67
67
|
export { NormalModuleReplacementPlugin } from "./lib/NormalModuleReplacementPlugin";
|
|
68
|
-
import { FetchCompileAsyncWasmPlugin } from "./builtin-plugin";
|
|
68
|
+
import { FetchCompileAsyncWasmPlugin, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
69
69
|
interface Web {
|
|
70
70
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
71
71
|
}
|
|
@@ -109,6 +109,7 @@ import { LimitChunkCountPlugin } from "./builtin-plugin";
|
|
|
109
109
|
import { RuntimeChunkPlugin } from "./builtin-plugin";
|
|
110
110
|
import { SplitChunksPlugin } from "./builtin-plugin";
|
|
111
111
|
import { RemoveDuplicateModulesPlugin } from "./builtin-plugin";
|
|
112
|
+
import { RsdoctorPlugin } from "./builtin-plugin";
|
|
112
113
|
interface Optimize {
|
|
113
114
|
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
|
114
115
|
RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
|
|
@@ -140,6 +141,7 @@ export declare const sharing: {
|
|
|
140
141
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
141
142
|
SharePlugin: typeof SharePlugin;
|
|
142
143
|
};
|
|
144
|
+
export type { RsdoctorPluginData, RsdoctorPluginHooks } from "./builtin-plugin";
|
|
143
145
|
export type { HtmlRspackPluginOptions } from "./builtin-plugin";
|
|
144
146
|
export type { SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
145
147
|
export type { LightningCssMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
@@ -158,11 +160,14 @@ export { CssExtractRspackPlugin } from "./builtin-plugin";
|
|
|
158
160
|
export { ContextReplacementPlugin } from "./builtin-plugin";
|
|
159
161
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
160
162
|
export type { LoaderOptions as LightningcssLoaderOptions, FeatureOptions as LightningcssFeatureOptions } from "./builtin-loader/lightningcss/index";
|
|
163
|
+
export type { SubresourceIntegrityPluginOptions } from "./builtin-plugin";
|
|
161
164
|
interface Experiments {
|
|
162
165
|
globalTrace: {
|
|
163
166
|
register: (filter: string, layer: "chrome" | "logger" | "otel", output: string) => Promise<void>;
|
|
164
167
|
cleanup: () => Promise<void>;
|
|
165
168
|
};
|
|
166
169
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
170
|
+
RsdoctorPlugin: typeof RsdoctorPlugin;
|
|
171
|
+
SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
|
|
167
172
|
}
|
|
168
173
|
export declare const experiments: Experiments;
|