@rsbuild/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/compiled/rspack-chain/index.d.ts +1 -1
- package/compiled/rspack-chain/index.js +66 -66
- package/compiled/rspack-chain/package.json +1 -1
- package/dist/index.cjs +221 -199
- package/dist/index.js +221 -199
- package/dist/transformLoader.mjs +20 -16
- package/dist/transformRawLoader.mjs +20 -16
- package/dist-types/config.d.ts +0 -2
- package/dist-types/configChain.d.ts +10 -2
- package/dist-types/helpers/index.d.ts +0 -1
- package/dist-types/restart.d.ts +18 -0
- package/dist-types/server/cliShortcuts.d.ts +1 -1
- package/dist-types/types/context.d.ts +10 -8
- package/package.json +2 -2
- package/types.d.ts +28 -0
- package/dist-types/cli/prepare.d.ts +0 -1
- package/dist-types/server/restart.d.ts +0 -14
|
@@ -32,7 +32,7 @@ declare namespace __Config {
|
|
|
32
32
|
set<T extends keyof OptionsType>(key: T, value: OptionsType[T]): this;
|
|
33
33
|
merge(obj: Partial<OptionsType>): this;
|
|
34
34
|
entries(): OptionsType;
|
|
35
|
-
values<T extends keyof OptionsType>():
|
|
35
|
+
values<T extends keyof OptionsType>(): OptionsType[T][];
|
|
36
36
|
when(
|
|
37
37
|
condition: boolean,
|
|
38
38
|
trueBrancher: (obj: this) => void,
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
};
|
|
628
628
|
exports.toString = toString;
|
|
629
629
|
},
|
|
630
|
-
|
|
630
|
+
426: (module) => {
|
|
631
631
|
module.exports = class extends Function {
|
|
632
632
|
constructor() {
|
|
633
633
|
super();
|
|
@@ -640,35 +640,35 @@
|
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
},
|
|
643
|
-
|
|
644
|
-
const createMap = __nccwpck_require__(
|
|
645
|
-
const createChainable = __nccwpck_require__(
|
|
643
|
+
284: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
644
|
+
const createMap = __nccwpck_require__(389);
|
|
645
|
+
const createChainable = __nccwpck_require__(734);
|
|
646
646
|
module.exports = createMap(createChainable(Object));
|
|
647
647
|
},
|
|
648
|
-
|
|
649
|
-
const createSet = __nccwpck_require__(
|
|
650
|
-
const createChainable = __nccwpck_require__(
|
|
648
|
+
894: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
649
|
+
const createSet = __nccwpck_require__(691);
|
|
650
|
+
const createChainable = __nccwpck_require__(734);
|
|
651
651
|
module.exports = createSet(createChainable(Object));
|
|
652
652
|
},
|
|
653
|
-
|
|
654
|
-
const Callable = __nccwpck_require__(
|
|
655
|
-
const createMap = __nccwpck_require__(
|
|
656
|
-
const createChainable = __nccwpck_require__(
|
|
657
|
-
const createValue = __nccwpck_require__(
|
|
653
|
+
333: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
654
|
+
const Callable = __nccwpck_require__(426);
|
|
655
|
+
const createMap = __nccwpck_require__(389);
|
|
656
|
+
const createChainable = __nccwpck_require__(734);
|
|
657
|
+
const createValue = __nccwpck_require__(238);
|
|
658
658
|
module.exports = createValue(createMap(createChainable(Callable)));
|
|
659
659
|
},
|
|
660
|
-
|
|
661
|
-
const ChainedMap = __nccwpck_require__(
|
|
662
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
663
|
-
const ChainedSet = __nccwpck_require__(
|
|
664
|
-
const Resolve = __nccwpck_require__(
|
|
665
|
-
const ResolveLoader = __nccwpck_require__(
|
|
666
|
-
const Output = __nccwpck_require__(
|
|
667
|
-
const DevServer = __nccwpck_require__(
|
|
668
|
-
const Plugin = __nccwpck_require__(
|
|
669
|
-
const Module = __nccwpck_require__(
|
|
670
|
-
const Optimization = __nccwpck_require__(
|
|
671
|
-
const Performance = __nccwpck_require__(
|
|
660
|
+
540: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
661
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
662
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
663
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
664
|
+
const Resolve = __nccwpck_require__(912);
|
|
665
|
+
const ResolveLoader = __nccwpck_require__(239);
|
|
666
|
+
const Output = __nccwpck_require__(979);
|
|
667
|
+
const DevServer = __nccwpck_require__(68);
|
|
668
|
+
const Plugin = __nccwpck_require__(605);
|
|
669
|
+
const Module = __nccwpck_require__(462);
|
|
670
|
+
const Optimization = __nccwpck_require__(947);
|
|
671
|
+
const Performance = __nccwpck_require__(422);
|
|
672
672
|
const castArray = (value) => (Array.isArray(value) ? value : [value]);
|
|
673
673
|
const toEntryObject = (entryPoints) => {
|
|
674
674
|
const entry = Object.keys(entryPoints).reduce(
|
|
@@ -845,9 +845,9 @@
|
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
},
|
|
848
|
-
|
|
849
|
-
const ChainedMap = __nccwpck_require__(
|
|
850
|
-
const ChainedSet = __nccwpck_require__(
|
|
848
|
+
68: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
849
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
850
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
851
851
|
module.exports = class extends ChainedMap {
|
|
852
852
|
constructor(parent) {
|
|
853
853
|
super(parent);
|
|
@@ -919,9 +919,9 @@
|
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
},
|
|
922
|
-
|
|
923
|
-
const ChainedMap = __nccwpck_require__(
|
|
924
|
-
const Rule = __nccwpck_require__(
|
|
922
|
+
462: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
923
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
924
|
+
const Rule = __nccwpck_require__(576);
|
|
925
925
|
module.exports = class extends ChainedMap {
|
|
926
926
|
constructor(parent) {
|
|
927
927
|
super(parent);
|
|
@@ -976,10 +976,10 @@
|
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
978
|
},
|
|
979
|
-
|
|
980
|
-
const ChainedMap = __nccwpck_require__(
|
|
981
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
982
|
-
const Plugin = __nccwpck_require__(
|
|
979
|
+
947: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
980
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
981
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
982
|
+
const Plugin = __nccwpck_require__(605);
|
|
983
983
|
module.exports = class extends ChainedMap {
|
|
984
984
|
constructor(parent) {
|
|
985
985
|
super(parent);
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
768: (module) => {
|
|
1045
1045
|
module.exports = (Class) =>
|
|
1046
1046
|
class extends Class {
|
|
1047
1047
|
before(name) {
|
|
@@ -1073,8 +1073,8 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
},
|
|
1076
|
-
|
|
1077
|
-
const ChainedMap = __nccwpck_require__(
|
|
1076
|
+
979: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1077
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1078
1078
|
module.exports = class extends ChainedMap {
|
|
1079
1079
|
constructor(parent) {
|
|
1080
1080
|
super(parent);
|
|
@@ -1128,8 +1128,8 @@
|
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
1130
|
},
|
|
1131
|
-
|
|
1132
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
1131
|
+
422: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1132
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
1133
1133
|
module.exports = class extends ChainedValueMap {
|
|
1134
1134
|
constructor(parent) {
|
|
1135
1135
|
super(parent);
|
|
@@ -1142,9 +1142,9 @@
|
|
|
1142
1142
|
}
|
|
1143
1143
|
};
|
|
1144
1144
|
},
|
|
1145
|
-
|
|
1146
|
-
const ChainedMap = __nccwpck_require__(
|
|
1147
|
-
const Orderable = __nccwpck_require__(
|
|
1145
|
+
605: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1146
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1147
|
+
const Orderable = __nccwpck_require__(768);
|
|
1148
1148
|
module.exports = Orderable(
|
|
1149
1149
|
class extends ChainedMap {
|
|
1150
1150
|
constructor(parent, name, type = "plugin") {
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
}
|
|
1199
1199
|
if (typeof plugin === "string") {
|
|
1200
1200
|
pluginPath = plugin;
|
|
1201
|
-
plugin = __nccwpck_require__(
|
|
1201
|
+
plugin = __nccwpck_require__(961)(pluginPath);
|
|
1202
1202
|
}
|
|
1203
1203
|
const constructorName = plugin.__expression
|
|
1204
1204
|
? `(${plugin.__expression})`
|
|
@@ -1216,10 +1216,10 @@
|
|
|
1216
1216
|
},
|
|
1217
1217
|
);
|
|
1218
1218
|
},
|
|
1219
|
-
|
|
1220
|
-
const ChainedMap = __nccwpck_require__(
|
|
1221
|
-
const ChainedSet = __nccwpck_require__(
|
|
1222
|
-
const Plugin = __nccwpck_require__(
|
|
1219
|
+
912: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1220
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1221
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1222
|
+
const Plugin = __nccwpck_require__(605);
|
|
1223
1223
|
const childMaps = ["alias", "fallback", "byDependency", "extensionAlias"];
|
|
1224
1224
|
const childSets = [
|
|
1225
1225
|
"aliasFields",
|
|
@@ -1298,9 +1298,9 @@
|
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
1300
|
},
|
|
1301
|
-
|
|
1302
|
-
const Resolve = __nccwpck_require__(
|
|
1303
|
-
const ChainedSet = __nccwpck_require__(
|
|
1301
|
+
239: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1302
|
+
const Resolve = __nccwpck_require__(912);
|
|
1303
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1304
1304
|
module.exports = class extends Resolve {
|
|
1305
1305
|
constructor(parent) {
|
|
1306
1306
|
super(parent);
|
|
@@ -1327,12 +1327,12 @@
|
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
1329
|
},
|
|
1330
|
-
|
|
1331
|
-
const ChainedMap = __nccwpck_require__(
|
|
1332
|
-
const ChainedSet = __nccwpck_require__(
|
|
1333
|
-
const Orderable = __nccwpck_require__(
|
|
1334
|
-
const Use = __nccwpck_require__(
|
|
1335
|
-
const Resolve = __nccwpck_require__(
|
|
1330
|
+
576: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1331
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1332
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1333
|
+
const Orderable = __nccwpck_require__(768);
|
|
1334
|
+
const Use = __nccwpck_require__(795);
|
|
1335
|
+
const Resolve = __nccwpck_require__(912);
|
|
1336
1336
|
function toArray(arr) {
|
|
1337
1337
|
return Array.isArray(arr) ? arr : [arr];
|
|
1338
1338
|
}
|
|
@@ -1460,10 +1460,10 @@
|
|
|
1460
1460
|
);
|
|
1461
1461
|
module.exports = Rule;
|
|
1462
1462
|
},
|
|
1463
|
-
|
|
1463
|
+
795: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1464
1464
|
const merge = __nccwpck_require__(779);
|
|
1465
|
-
const ChainedMap = __nccwpck_require__(
|
|
1466
|
-
const Orderable = __nccwpck_require__(
|
|
1465
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1466
|
+
const Orderable = __nccwpck_require__(768);
|
|
1467
1467
|
module.exports = Orderable(
|
|
1468
1468
|
class extends ChainedMap {
|
|
1469
1469
|
constructor(parent, name) {
|
|
@@ -1496,7 +1496,7 @@
|
|
|
1496
1496
|
},
|
|
1497
1497
|
);
|
|
1498
1498
|
},
|
|
1499
|
-
|
|
1499
|
+
734: (module) => {
|
|
1500
1500
|
module.exports = function createChainable(superClass) {
|
|
1501
1501
|
return class extends superClass {
|
|
1502
1502
|
constructor(parent) {
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
};
|
|
1514
1514
|
};
|
|
1515
1515
|
},
|
|
1516
|
-
|
|
1516
|
+
389: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1517
1517
|
const merge = __nccwpck_require__(779);
|
|
1518
1518
|
module.exports = function createMap(superClass) {
|
|
1519
1519
|
return class extends superClass {
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
};
|
|
1638
1638
|
};
|
|
1639
1639
|
},
|
|
1640
|
-
|
|
1640
|
+
691: (module) => {
|
|
1641
1641
|
module.exports = function createSet(superClass) {
|
|
1642
1642
|
return class extends superClass {
|
|
1643
1643
|
constructor(...args) {
|
|
@@ -1687,7 +1687,7 @@
|
|
|
1687
1687
|
};
|
|
1688
1688
|
};
|
|
1689
1689
|
},
|
|
1690
|
-
|
|
1690
|
+
238: (module) => {
|
|
1691
1691
|
module.exports = function createValue(superClass) {
|
|
1692
1692
|
return class extends superClass {
|
|
1693
1693
|
constructor(...args) {
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
};
|
|
1726
1726
|
};
|
|
1727
1727
|
},
|
|
1728
|
-
|
|
1728
|
+
961: (module) => {
|
|
1729
1729
|
function webpackEmptyContext(req) {
|
|
1730
1730
|
var e = new Error("Cannot find module '" + req + "'");
|
|
1731
1731
|
e.code = "MODULE_NOT_FOUND";
|
|
@@ -1733,7 +1733,7 @@
|
|
|
1733
1733
|
}
|
|
1734
1734
|
webpackEmptyContext.keys = () => [];
|
|
1735
1735
|
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1736
|
-
webpackEmptyContext.id =
|
|
1736
|
+
webpackEmptyContext.id = 961;
|
|
1737
1737
|
module.exports = webpackEmptyContext;
|
|
1738
1738
|
},
|
|
1739
1739
|
};
|
|
@@ -1763,6 +1763,6 @@
|
|
|
1763
1763
|
})();
|
|
1764
1764
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1765
1765
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1766
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1766
|
+
var __webpack_exports__ = __nccwpck_require__(540);
|
|
1767
1767
|
module.exports = __webpack_exports__;
|
|
1768
1768
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.
|
|
1
|
+
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
|