@rspack/core 1.2.4 → 1.2.6
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/browserslist/index.js +136 -86
- package/compiled/browserslist/package.json +1 -1
- package/compiled/watchpack/index.js +27 -17
- package/compiled/watchpack/package.json +1 -1
- package/compiled/zod/index.d.ts +1 -1
- package/compiled/zod/index.js +63 -40
- package/compiled/zod/package.json +1 -1
- package/dist/config/types.d.ts +2 -1
- package/dist/index.js +18 -11
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.
|
|
1
|
+
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.4","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -138,7 +138,7 @@ module.exports = function (glob, opts) {
|
|
|
138
138
|
|
|
139
139
|
/***/ }),
|
|
140
140
|
|
|
141
|
-
/***/
|
|
141
|
+
/***/ 877:
|
|
142
142
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
143
143
|
|
|
144
144
|
"use strict";
|
|
@@ -152,7 +152,7 @@ const EventEmitter = (__nccwpck_require__(434).EventEmitter);
|
|
|
152
152
|
const fs = __nccwpck_require__(923);
|
|
153
153
|
const path = __nccwpck_require__(928);
|
|
154
154
|
|
|
155
|
-
const watchEventSource = __nccwpck_require__(
|
|
155
|
+
const watchEventSource = __nccwpck_require__(200);
|
|
156
156
|
|
|
157
157
|
const EXISTANCE_ONLY_TIME_ENTRY = Object.freeze({});
|
|
158
158
|
|
|
@@ -933,7 +933,7 @@ function ensureFsAccuracy(mtime) {
|
|
|
933
933
|
|
|
934
934
|
/***/ }),
|
|
935
935
|
|
|
936
|
-
/***/
|
|
936
|
+
/***/ 898:
|
|
937
937
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
938
938
|
|
|
939
939
|
"use strict";
|
|
@@ -1048,7 +1048,7 @@ module.exports = LinkResolver;
|
|
|
1048
1048
|
|
|
1049
1049
|
/***/ }),
|
|
1050
1050
|
|
|
1051
|
-
/***/
|
|
1051
|
+
/***/ 673:
|
|
1052
1052
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1053
1053
|
|
|
1054
1054
|
"use strict";
|
|
@@ -1059,7 +1059,7 @@ module.exports = LinkResolver;
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
1061
|
const path = __nccwpck_require__(928);
|
|
1062
|
-
const DirectoryWatcher = __nccwpck_require__(
|
|
1062
|
+
const DirectoryWatcher = __nccwpck_require__(877);
|
|
1063
1063
|
|
|
1064
1064
|
class WatcherManager {
|
|
1065
1065
|
constructor(options) {
|
|
@@ -1108,7 +1108,7 @@ module.exports.WatcherManager = WatcherManager;
|
|
|
1108
1108
|
|
|
1109
1109
|
/***/ }),
|
|
1110
1110
|
|
|
1111
|
-
/***/
|
|
1111
|
+
/***/ 181:
|
|
1112
1112
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1113
1113
|
|
|
1114
1114
|
"use strict";
|
|
@@ -1254,7 +1254,7 @@ module.exports = (plan, limit) => {
|
|
|
1254
1254
|
|
|
1255
1255
|
/***/ }),
|
|
1256
1256
|
|
|
1257
|
-
/***/
|
|
1257
|
+
/***/ 200:
|
|
1258
1258
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1259
1259
|
|
|
1260
1260
|
"use strict";
|
|
@@ -1267,7 +1267,7 @@ module.exports = (plan, limit) => {
|
|
|
1267
1267
|
const fs = __nccwpck_require__(896);
|
|
1268
1268
|
const path = __nccwpck_require__(928);
|
|
1269
1269
|
const { EventEmitter } = __nccwpck_require__(434);
|
|
1270
|
-
const reducePlan = __nccwpck_require__(
|
|
1270
|
+
const reducePlan = __nccwpck_require__(181);
|
|
1271
1271
|
|
|
1272
1272
|
const IS_OSX = (__nccwpck_require__(857).platform)() === "darwin";
|
|
1273
1273
|
const IS_WIN = (__nccwpck_require__(857).platform)() === "win32";
|
|
@@ -1595,7 +1595,7 @@ exports.getNumberOfWatchers = () => {
|
|
|
1595
1595
|
|
|
1596
1596
|
/***/ }),
|
|
1597
1597
|
|
|
1598
|
-
/***/
|
|
1598
|
+
/***/ 640:
|
|
1599
1599
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1600
1600
|
|
|
1601
1601
|
"use strict";
|
|
@@ -1605,11 +1605,11 @@ exports.getNumberOfWatchers = () => {
|
|
|
1605
1605
|
*/
|
|
1606
1606
|
|
|
1607
1607
|
|
|
1608
|
-
const getWatcherManager = __nccwpck_require__(
|
|
1609
|
-
const LinkResolver = __nccwpck_require__(
|
|
1608
|
+
const getWatcherManager = __nccwpck_require__(673);
|
|
1609
|
+
const LinkResolver = __nccwpck_require__(898);
|
|
1610
1610
|
const EventEmitter = (__nccwpck_require__(434).EventEmitter);
|
|
1611
1611
|
const globToRegExp = __nccwpck_require__(137);
|
|
1612
|
-
const watchEventSource = __nccwpck_require__(
|
|
1612
|
+
const watchEventSource = __nccwpck_require__(200);
|
|
1613
1613
|
|
|
1614
1614
|
const EMPTY_ARRAY = [];
|
|
1615
1615
|
const EMPTY_OPTIONS = {};
|
|
@@ -1624,18 +1624,28 @@ function addWatchersToSet(watchers, set) {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
1626
|
const stringToRegexp = ignored => {
|
|
1627
|
+
if (ignored.length === 0) {
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1627
1630
|
const source = globToRegExp(ignored, { globstar: true, extended: true })
|
|
1628
1631
|
.source;
|
|
1629
|
-
|
|
1630
|
-
return matchingStart;
|
|
1632
|
+
return source.slice(0, source.length - 1) + "(?:$|\\/)";
|
|
1631
1633
|
};
|
|
1632
1634
|
|
|
1633
1635
|
const ignoredToFunction = ignored => {
|
|
1634
1636
|
if (Array.isArray(ignored)) {
|
|
1635
|
-
const
|
|
1637
|
+
const stringRegexps = ignored.map(i => stringToRegexp(i)).filter(Boolean);
|
|
1638
|
+
if (stringRegexps.length === 0) {
|
|
1639
|
+
return () => false;
|
|
1640
|
+
}
|
|
1641
|
+
const regexp = new RegExp(stringRegexps.join("|"));
|
|
1636
1642
|
return x => regexp.test(x.replace(/\\/g, "/"));
|
|
1637
1643
|
} else if (typeof ignored === "string") {
|
|
1638
|
-
const
|
|
1644
|
+
const stringRegexp = stringToRegexp(ignored);
|
|
1645
|
+
if (!stringRegexp) {
|
|
1646
|
+
return () => false;
|
|
1647
|
+
}
|
|
1648
|
+
const regexp = new RegExp(stringRegexp);
|
|
1639
1649
|
return x => regexp.test(x.replace(/\\/g, "/"));
|
|
1640
1650
|
} else if (ignored instanceof RegExp) {
|
|
1641
1651
|
return x => ignored.test(x.replace(/\\/g, "/"));
|
|
@@ -2068,7 +2078,7 @@ module.exports = require("path");
|
|
|
2068
2078
|
/******/ // startup
|
|
2069
2079
|
/******/ // Load entry module and return exports
|
|
2070
2080
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
2071
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
2081
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(640);
|
|
2072
2082
|
/******/ module.exports = __webpack_exports__;
|
|
2073
2083
|
/******/
|
|
2074
2084
|
/******/ })()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"watchpack","author":"Tobias Koppers @sokra","version":"2.4.
|
|
1
|
+
{"name":"watchpack","author":"Tobias Koppers @sokra","version":"2.4.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/compiled/zod/index.d.ts
CHANGED
|
@@ -1386,7 +1386,7 @@ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["
|
|
|
1386
1386
|
type CustomParams = CustomErrorParams & {
|
|
1387
1387
|
fatal?: boolean;
|
|
1388
1388
|
};
|
|
1389
|
-
declare function custom<T>(check?: (data: any) => any,
|
|
1389
|
+
declare function custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams),
|
|
1390
1390
|
/**
|
|
1391
1391
|
* @deprecated
|
|
1392
1392
|
*
|
package/compiled/zod/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 106:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10
10
|
exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
|
|
11
|
-
const util_1 = __nccwpck_require__(
|
|
11
|
+
const util_1 = __nccwpck_require__(241);
|
|
12
12
|
exports.ZodIssueCode = util_1.util.arrayToEnum([
|
|
13
13
|
"invalid_type",
|
|
14
14
|
"invalid_literal",
|
|
@@ -146,7 +146,7 @@ ZodError.create = (issues) => {
|
|
|
146
146
|
|
|
147
147
|
/***/ }),
|
|
148
148
|
|
|
149
|
-
/***/
|
|
149
|
+
/***/ 508:
|
|
150
150
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
151
151
|
|
|
152
152
|
|
|
@@ -155,7 +155,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
155
155
|
};
|
|
156
156
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
157
157
|
exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
|
|
158
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
|
158
|
+
const en_1 = __importDefault(__nccwpck_require__(316));
|
|
159
159
|
exports.defaultErrorMap = en_1.default;
|
|
160
160
|
let overrideErrorMap = en_1.default;
|
|
161
161
|
function setErrorMap(map) {
|
|
@@ -170,7 +170,7 @@ exports.getErrorMap = getErrorMap;
|
|
|
170
170
|
|
|
171
171
|
/***/ }),
|
|
172
172
|
|
|
173
|
-
/***/
|
|
173
|
+
/***/ 892:
|
|
174
174
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
175
175
|
|
|
176
176
|
|
|
@@ -189,17 +189,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
189
189
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
190
190
|
};
|
|
191
191
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
192
|
-
__exportStar(__nccwpck_require__(
|
|
193
|
-
__exportStar(__nccwpck_require__(
|
|
194
|
-
__exportStar(__nccwpck_require__(
|
|
195
|
-
__exportStar(__nccwpck_require__(
|
|
196
|
-
__exportStar(__nccwpck_require__(
|
|
197
|
-
__exportStar(__nccwpck_require__(
|
|
192
|
+
__exportStar(__nccwpck_require__(508), exports);
|
|
193
|
+
__exportStar(__nccwpck_require__(906), exports);
|
|
194
|
+
__exportStar(__nccwpck_require__(689), exports);
|
|
195
|
+
__exportStar(__nccwpck_require__(241), exports);
|
|
196
|
+
__exportStar(__nccwpck_require__(842), exports);
|
|
197
|
+
__exportStar(__nccwpck_require__(106), exports);
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
/***/ }),
|
|
201
201
|
|
|
202
|
-
/***/
|
|
202
|
+
/***/ 927:
|
|
203
203
|
/***/ ((__unused_webpack_module, exports) => {
|
|
204
204
|
|
|
205
205
|
|
|
@@ -214,7 +214,7 @@ var errorUtil;
|
|
|
214
214
|
|
|
215
215
|
/***/ }),
|
|
216
216
|
|
|
217
|
-
/***/
|
|
217
|
+
/***/ 906:
|
|
218
218
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
219
219
|
|
|
220
220
|
|
|
@@ -223,8 +223,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
223
223
|
};
|
|
224
224
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
225
225
|
exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;
|
|
226
|
-
const errors_1 = __nccwpck_require__(
|
|
227
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
|
226
|
+
const errors_1 = __nccwpck_require__(508);
|
|
227
|
+
const en_1 = __importDefault(__nccwpck_require__(316));
|
|
228
228
|
const makeIssue = (params) => {
|
|
229
229
|
const { data, path, errorMaps, issueData } = params;
|
|
230
230
|
const fullPath = [...path, ...(issueData.path || [])];
|
|
@@ -346,7 +346,7 @@ exports.isAsync = isAsync;
|
|
|
346
346
|
|
|
347
347
|
/***/ }),
|
|
348
348
|
|
|
349
|
-
/***/
|
|
349
|
+
/***/ 689:
|
|
350
350
|
/***/ ((__unused_webpack_module, exports) => {
|
|
351
351
|
|
|
352
352
|
|
|
@@ -355,7 +355,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
355
355
|
|
|
356
356
|
/***/ }),
|
|
357
357
|
|
|
358
|
-
/***/
|
|
358
|
+
/***/ 241:
|
|
359
359
|
/***/ ((__unused_webpack_module, exports) => {
|
|
360
360
|
|
|
361
361
|
|
|
@@ -504,7 +504,7 @@ exports.getParsedType = getParsedType;
|
|
|
504
504
|
|
|
505
505
|
/***/ }),
|
|
506
506
|
|
|
507
|
-
/***/
|
|
507
|
+
/***/ 771:
|
|
508
508
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
509
509
|
|
|
510
510
|
|
|
@@ -536,21 +536,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
536
536
|
};
|
|
537
537
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
538
538
|
exports.z = void 0;
|
|
539
|
-
const z = __importStar(__nccwpck_require__(
|
|
539
|
+
const z = __importStar(__nccwpck_require__(892));
|
|
540
540
|
exports.z = z;
|
|
541
|
-
__exportStar(__nccwpck_require__(
|
|
541
|
+
__exportStar(__nccwpck_require__(892), exports);
|
|
542
542
|
exports["default"] = z;
|
|
543
543
|
|
|
544
544
|
|
|
545
545
|
/***/ }),
|
|
546
546
|
|
|
547
|
-
/***/
|
|
547
|
+
/***/ 316:
|
|
548
548
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
549
549
|
|
|
550
550
|
|
|
551
551
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
552
|
-
const util_1 = __nccwpck_require__(
|
|
553
|
-
const ZodError_1 = __nccwpck_require__(
|
|
552
|
+
const util_1 = __nccwpck_require__(241);
|
|
553
|
+
const ZodError_1 = __nccwpck_require__(106);
|
|
554
554
|
const errorMap = (issue, _ctx) => {
|
|
555
555
|
let message;
|
|
556
556
|
switch (issue.code) {
|
|
@@ -680,7 +680,7 @@ exports["default"] = errorMap;
|
|
|
680
680
|
|
|
681
681
|
/***/ }),
|
|
682
682
|
|
|
683
|
-
/***/
|
|
683
|
+
/***/ 842:
|
|
684
684
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
685
685
|
|
|
686
686
|
|
|
@@ -699,11 +699,11 @@ var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
|
699
699
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
700
700
|
exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.datetimeRegex = exports.ZodType = void 0;
|
|
701
701
|
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = exports.discriminatedUnion = exports.date = void 0;
|
|
702
|
-
const errors_1 = __nccwpck_require__(
|
|
703
|
-
const errorUtil_1 = __nccwpck_require__(
|
|
704
|
-
const parseUtil_1 = __nccwpck_require__(
|
|
705
|
-
const util_1 = __nccwpck_require__(
|
|
706
|
-
const ZodError_1 = __nccwpck_require__(
|
|
702
|
+
const errors_1 = __nccwpck_require__(508);
|
|
703
|
+
const errorUtil_1 = __nccwpck_require__(927);
|
|
704
|
+
const parseUtil_1 = __nccwpck_require__(906);
|
|
705
|
+
const util_1 = __nccwpck_require__(241);
|
|
706
|
+
const ZodError_1 = __nccwpck_require__(106);
|
|
707
707
|
class ParseInputLazyPath {
|
|
708
708
|
constructor(parent, value, path, key) {
|
|
709
709
|
this._cachedPath = [];
|
|
@@ -4339,7 +4339,23 @@ ZodReadonly.create = (type, params) => {
|
|
|
4339
4339
|
...processCreateParams(params),
|
|
4340
4340
|
});
|
|
4341
4341
|
};
|
|
4342
|
-
|
|
4342
|
+
////////////////////////////////////////
|
|
4343
|
+
////////////////////////////////////////
|
|
4344
|
+
////////// //////////
|
|
4345
|
+
////////// z.custom //////////
|
|
4346
|
+
////////// //////////
|
|
4347
|
+
////////////////////////////////////////
|
|
4348
|
+
////////////////////////////////////////
|
|
4349
|
+
function cleanParams(params, data) {
|
|
4350
|
+
const p = typeof params === "function"
|
|
4351
|
+
? params(data)
|
|
4352
|
+
: typeof params === "string"
|
|
4353
|
+
? { message: params }
|
|
4354
|
+
: params;
|
|
4355
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
4356
|
+
return p2;
|
|
4357
|
+
}
|
|
4358
|
+
function custom(check, _params = {},
|
|
4343
4359
|
/**
|
|
4344
4360
|
* @deprecated
|
|
4345
4361
|
*
|
|
@@ -4354,16 +4370,23 @@ fatal) {
|
|
|
4354
4370
|
if (check)
|
|
4355
4371
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
4356
4372
|
var _a, _b;
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4373
|
+
const r = check(data);
|
|
4374
|
+
if (r instanceof Promise) {
|
|
4375
|
+
return r.then((r) => {
|
|
4376
|
+
var _a, _b;
|
|
4377
|
+
if (!r) {
|
|
4378
|
+
const params = cleanParams(_params, data);
|
|
4379
|
+
const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
4380
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4381
|
+
}
|
|
4382
|
+
});
|
|
4383
|
+
}
|
|
4384
|
+
if (!r) {
|
|
4385
|
+
const params = cleanParams(_params, data);
|
|
4386
|
+
const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
4387
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4366
4388
|
}
|
|
4389
|
+
return;
|
|
4367
4390
|
});
|
|
4368
4391
|
return ZodAny.create();
|
|
4369
4392
|
}
|
|
@@ -4552,7 +4575,7 @@ exports.NEVER = parseUtil_1.INVALID;
|
|
|
4552
4575
|
/******/ // startup
|
|
4553
4576
|
/******/ // Load entry module and return exports
|
|
4554
4577
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
4555
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
4578
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(771);
|
|
4556
4579
|
/******/ module.exports = __webpack_exports__;
|
|
4557
4580
|
/******/
|
|
4558
4581
|
/******/ })()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.
|
|
1
|
+
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.2","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1556,6 +1556,7 @@ type SharedOptimizationSplitChunksCacheGroup = {
|
|
|
1556
1556
|
* The value is `10000` in others mode.
|
|
1557
1557
|
*/
|
|
1558
1558
|
minSize?: OptimizationSplitChunksSizes;
|
|
1559
|
+
minSizeReduction?: OptimizationSplitChunksSizes;
|
|
1559
1560
|
/** Maximum size, in bytes, for a chunk to be generated. */
|
|
1560
1561
|
maxSize?: OptimizationSplitChunksSizes;
|
|
1561
1562
|
/** Maximum size, in bytes, for a async chunk to be generated. */
|
|
@@ -1813,7 +1814,7 @@ export type LazyCompilationOptions = {
|
|
|
1813
1814
|
/**
|
|
1814
1815
|
* Test function or regex to determine which modules to include.
|
|
1815
1816
|
*/
|
|
1816
|
-
test?: RegExp | ((module:
|
|
1817
|
+
test?: RegExp | ((module: Module) => boolean);
|
|
1817
1818
|
};
|
|
1818
1819
|
/**
|
|
1819
1820
|
* Options for incremental builds.
|
package/dist/index.js
CHANGED
|
@@ -38,9 +38,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
38
38
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
39
39
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
40
40
|
|
|
41
|
-
// ../../node_modules/.pnpm/json-parse-even-better-errors@3.0.
|
|
41
|
+
// ../../node_modules/.pnpm/json-parse-even-better-errors@3.0.2/node_modules/json-parse-even-better-errors/lib/index.js
|
|
42
42
|
var require_lib = __commonJS({
|
|
43
|
-
"../../node_modules/.pnpm/json-parse-even-better-errors@3.0.
|
|
43
|
+
"../../node_modules/.pnpm/json-parse-even-better-errors@3.0.2/node_modules/json-parse-even-better-errors/lib/index.js"(exports2, module2) {
|
|
44
44
|
"use strict";
|
|
45
45
|
var INDENT = Symbol.for("indent");
|
|
46
46
|
var NEWLINE = Symbol.for("newline");
|
|
@@ -687,8 +687,8 @@ var require_CachedInputFileSystem = __commonJS({
|
|
|
687
687
|
});
|
|
688
688
|
|
|
689
689
|
// src/index.ts
|
|
690
|
-
var
|
|
691
|
-
__export(
|
|
690
|
+
var index_exports = {};
|
|
691
|
+
__export(index_exports, {
|
|
692
692
|
BannerPlugin: () => BannerPlugin,
|
|
693
693
|
Compilation: () => Compilation,
|
|
694
694
|
Compiler: () => Compiler,
|
|
@@ -733,7 +733,7 @@ __export(src_exports, {
|
|
|
733
733
|
WebpackOptionsApply: () => RspackOptionsApply,
|
|
734
734
|
config: () => config,
|
|
735
735
|
container: () => container,
|
|
736
|
-
default: () =>
|
|
736
|
+
default: () => index_default,
|
|
737
737
|
electron: () => electron,
|
|
738
738
|
experiments: () => experiments2,
|
|
739
739
|
javascript: () => javascript,
|
|
@@ -750,7 +750,7 @@ __export(src_exports, {
|
|
|
750
750
|
web: () => web,
|
|
751
751
|
webworker: () => webworker
|
|
752
752
|
});
|
|
753
|
-
module.exports = __toCommonJS(
|
|
753
|
+
module.exports = __toCommonJS(index_exports);
|
|
754
754
|
|
|
755
755
|
// src/exports.ts
|
|
756
756
|
var exports_exports = {};
|
|
@@ -6128,11 +6128,14 @@ async function runLoaders(compiler, context2) {
|
|
|
6128
6128
|
}
|
|
6129
6129
|
};
|
|
6130
6130
|
};
|
|
6131
|
-
const
|
|
6131
|
+
const getResolver = memoize(() => {
|
|
6132
|
+
return compiler._lastCompilation.resolverFactory.get("normal");
|
|
6133
|
+
});
|
|
6132
6134
|
loaderContext.resolve = function resolve2(context3, request, callback) {
|
|
6133
|
-
|
|
6135
|
+
getResolver().resolve({}, context3, request, getResolveContext(), callback);
|
|
6134
6136
|
};
|
|
6135
6137
|
loaderContext.getResolve = function getResolve(options) {
|
|
6138
|
+
const resolver = getResolver();
|
|
6136
6139
|
const child = options ? resolver.withOptions(options) : resolver;
|
|
6137
6140
|
return (context3, request, callback) => {
|
|
6138
6141
|
if (callback) {
|
|
@@ -8096,7 +8099,7 @@ var cleanPluginHooks = (compilation) => {
|
|
|
8096
8099
|
// src/builtin-plugin/html-plugin/options.ts
|
|
8097
8100
|
var import_zod = require("../compiled/zod/index.js");
|
|
8098
8101
|
|
|
8099
|
-
// ../../node_modules/.pnpm/zod-validation-error@3.4.0_zod@3.24.
|
|
8102
|
+
// ../../node_modules/.pnpm/zod-validation-error@3.4.0_zod@3.24.2/node_modules/zod-validation-error/dist/index.mjs
|
|
8100
8103
|
var zod2 = __toESM(require("../compiled/zod/index.js"), 1);
|
|
8101
8104
|
var zod = __toESM(require("../compiled/zod/index.js"), 1);
|
|
8102
8105
|
function isZodErrorLike(err) {
|
|
@@ -9328,6 +9331,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
9328
9331
|
cacheGroups = {},
|
|
9329
9332
|
fallbackCacheGroup,
|
|
9330
9333
|
minSize,
|
|
9334
|
+
minSizeReduction,
|
|
9331
9335
|
maxSize,
|
|
9332
9336
|
maxAsyncSize,
|
|
9333
9337
|
maxInitialSize,
|
|
@@ -9344,6 +9348,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
9344
9348
|
name: name3,
|
|
9345
9349
|
chunks: chunks2,
|
|
9346
9350
|
minSize: minSize2,
|
|
9351
|
+
minSizeReduction: minSizeReduction2,
|
|
9347
9352
|
maxSize: maxSize2,
|
|
9348
9353
|
maxAsyncSize: maxAsyncSize2,
|
|
9349
9354
|
maxInitialSize: maxInitialSize2,
|
|
@@ -9355,6 +9360,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
9355
9360
|
name: getName(name3),
|
|
9356
9361
|
chunks: getChunks(chunks2),
|
|
9357
9362
|
minSize: JsSplitChunkSizes.__to_binding(minSize2),
|
|
9363
|
+
minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction2),
|
|
9358
9364
|
maxSize: JsSplitChunkSizes.__to_binding(maxSize2),
|
|
9359
9365
|
maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize2),
|
|
9360
9366
|
maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize2),
|
|
@@ -9367,6 +9373,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
9367
9373
|
...fallbackCacheGroup
|
|
9368
9374
|
},
|
|
9369
9375
|
minSize: JsSplitChunkSizes.__to_binding(minSize),
|
|
9376
|
+
minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction),
|
|
9370
9377
|
maxSize: JsSplitChunkSizes.__to_binding(maxSize),
|
|
9371
9378
|
maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize),
|
|
9372
9379
|
maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize),
|
|
@@ -11398,7 +11405,7 @@ ${helpMessage}`
|
|
|
11398
11405
|
D(output2, "workerPublicPath", "");
|
|
11399
11406
|
D(output2, "sourceMapFilename", "[file].map[query]");
|
|
11400
11407
|
F(output2, "scriptType", () => output2.module ? "module" : false);
|
|
11401
|
-
D(output2, "charset",
|
|
11408
|
+
D(output2, "charset", !futureDefaults);
|
|
11402
11409
|
D(output2, "chunkLoadTimeout", 12e4);
|
|
11403
11410
|
const { trustedTypes: trustedTypes2 } = output2;
|
|
11404
11411
|
if (trustedTypes2) {
|
|
@@ -21056,7 +21063,7 @@ var fn = Object.assign(rspack2, exports_exports);
|
|
|
21056
21063
|
fn.rspack = fn;
|
|
21057
21064
|
fn.webpack = fn;
|
|
21058
21065
|
var rspack = fn;
|
|
21059
|
-
var
|
|
21066
|
+
var index_default = rspack;
|
|
21060
21067
|
module.exports = rspack;
|
|
21061
21068
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21062
21069
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -37,33 +37,33 @@
|
|
|
37
37
|
"directory": "packages/rspack"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@swc/core": "1.10.
|
|
40
|
+
"@swc/core": "1.10.18",
|
|
41
41
|
"@swc/types": "0.1.17",
|
|
42
42
|
"@types/graceful-fs": "4.1.9",
|
|
43
|
-
"@types/watchpack": "^2.4.
|
|
43
|
+
"@types/watchpack": "^2.4.4",
|
|
44
44
|
"@types/webpack-sources": "3.2.3",
|
|
45
|
-
"browserslist": "^4.
|
|
45
|
+
"browserslist": "^4.24.4",
|
|
46
46
|
"cross-env": "^7.0.3",
|
|
47
47
|
"enhanced-resolve": "5.18.1",
|
|
48
48
|
"graceful-fs": "^4.2.11",
|
|
49
|
-
"json-parse-even-better-errors": "^3.0.
|
|
49
|
+
"json-parse-even-better-errors": "^3.0.2",
|
|
50
50
|
"prebundle": "^1.2.7",
|
|
51
|
-
"tsc-alias": "^1.8.
|
|
52
|
-
"tsup": "^8.3.
|
|
53
|
-
"tsx": "^4.19.
|
|
51
|
+
"tsc-alias": "^1.8.10",
|
|
52
|
+
"tsup": "^8.3.6",
|
|
53
|
+
"tsx": "^4.19.3",
|
|
54
54
|
"typescript": "^5.7.3",
|
|
55
|
-
"watchpack": "^2.4.
|
|
55
|
+
"watchpack": "^2.4.2",
|
|
56
56
|
"webpack-dev-server": "5.0.4",
|
|
57
57
|
"webpack-sources": "3.2.3",
|
|
58
|
-
"zod": "^3.24.
|
|
58
|
+
"zod": "^3.24.2",
|
|
59
59
|
"zod-validation-error": "3.4.0",
|
|
60
|
-
"@rspack/tracing": "1.2.
|
|
60
|
+
"@rspack/tracing": "1.2.6"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@module-federation/runtime-tools": "0.8.4",
|
|
64
64
|
"@rspack/lite-tapable": "1.0.1",
|
|
65
|
-
"caniuse-lite": "^1.0.
|
|
66
|
-
"@rspack/binding": "1.2.
|
|
65
|
+
"caniuse-lite": "^1.0.30001700",
|
|
66
|
+
"@rspack/binding": "1.2.6"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@rspack/tracing": "^1.x",
|