@rsbuild/core 2.2.8 → 2.2.9
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/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/htmlLoader.js +8 -17
- package/compiled/html-rspack-plugin/index.d.ts +8 -4
- package/compiled/html-rspack-plugin/index.js +61 -69
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/ws/index.d.ts +445 -0
- package/compiled/ws/license +21 -0
- package/compiled/ws/package.json +1 -0
- package/dist/chokidar.js +1 -1
- package/dist/client/hmr.js +1 -1
- package/dist/client/overlay.js +1 -1
- package/dist/cssUrlLoader.mjs +1 -1
- package/dist/helpers/cachedImport.d.ts +2 -0
- package/dist/http-proxy-middleware.js +4 -4
- package/dist/ignoreCssLoader.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +1 -1
- package/dist/{626.js → m.js} +76 -143
- package/dist/manifest-plugin.js +1 -1
- package/dist/memfs.js +1 -1
- package/dist/open.js +2 -2
- package/dist/r.js +7 -0
- package/dist/remapping.js +8 -3
- package/dist/rslib-runtime.js +1 -1
- package/dist/server/runner/asModule.d.ts +1 -1
- package/dist/server/runner/basic.d.ts +5 -4
- package/dist/server/runner/type.d.ts +1 -1
- package/dist/server/socketServer.d.ts +1 -1
- package/dist/sirv.js +1 -1
- package/dist/tinyglobby.js +1 -1
- package/dist/trace-mapping.js +220 -8
- package/dist/transformLoader.mjs +3 -2
- package/dist/ws.js +2 -2
- package/package.json +7 -7
- /package/dist/{252.js → c.js} +0 -0
- /package/dist/client/{307~0.js → f~0.js} +0 -0
- /package/dist/{626.js.LICENSE.txt → m.js.LICENSE.txt} +0 -0
package/dist/{626.js → m.js}
RENAMED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
/*! LICENSE:
|
|
1
|
+
/*! LICENSE: m.js.LICENSE.txt */
|
|
2
2
|
let runtimeProcessArgs, runtimeInfo, swcHelpersPath, pluginHelper_htmlPlugin;
|
|
3
3
|
import { rspackRequire, moduleFactories, compatGetDefaultExport, createFakeNamespaceObject } from "./rslib-runtime.js";
|
|
4
4
|
import { rspack as core_rspack } from "@rspack/core";
|
|
5
|
-
import node_util, { stripVTControlCharacters } from "node:util";
|
|
5
|
+
import node_util, { promisify, stripVTControlCharacters } from "node:util";
|
|
6
6
|
import node_path, { dirname as external_node_path_dirname, isAbsolute as external_node_path_isAbsolute, join, posix, relative, resolve as external_node_path_resolve, sep, win32 } from "node:path";
|
|
7
7
|
import { builtinModules, createRequire, createRequire as __rspack_createRequire } from "node:module";
|
|
8
8
|
import node_fs, { existsSync } from "node:fs";
|
|
9
|
-
import node_os, { constants
|
|
9
|
+
import node_os, { constants } from "node:os";
|
|
10
10
|
import node_process from "node:process";
|
|
11
11
|
import { URL as external_node_url_URL, pathToFileURL, fileURLToPath as __rspack_fileURLToPath } from "node:url";
|
|
12
12
|
import { isPromise, isRegExp } from "node:util/types";
|
|
13
13
|
import { readFile } from "node:fs/promises";
|
|
14
|
-
import node_zlib from "node:zlib";
|
|
14
|
+
import node_zlib, { constants as external_node_zlib_constants } from "node:zlib";
|
|
15
15
|
import { once } from "node:events";
|
|
16
|
+
import { cachedImport, getTinyglobby } from "./r.js";
|
|
16
17
|
var superClass, superClass1, __rspack_import_meta_filename__ = __rspack_fileURLToPath(import.meta.url);
|
|
17
18
|
let __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
18
19
|
moduleFactories.add({
|
|
@@ -152,7 +153,7 @@ moduleFactories.add({
|
|
|
152
153
|
};
|
|
153
154
|
},
|
|
154
155
|
"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/lilconfig/3.1.3/8e9a79516bf61f8427342cef50cdad2cdc2572f42288ba8053b88eadfdc0ebef/node_modules/lilconfig/src/index.js" (module) {
|
|
155
|
-
let path =
|
|
156
|
+
let path = __rspack_createRequire_require("path"), fs = __rspack_createRequire_require("fs"), os = __rspack_createRequire_require("os"), url = __rspack_createRequire_require("url"), fsReadFileAsync = fs.promises.readFile;
|
|
156
157
|
function getDefaultSearchPlaces(name, sync) {
|
|
157
158
|
return [
|
|
158
159
|
'package.json',
|
|
@@ -388,7 +389,7 @@ moduleFactories.add({
|
|
|
388
389
|
}
|
|
389
390
|
},
|
|
390
391
|
"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/postcss-load-config/6.0.1/d0e1ffed59e3d657674e04f8f91182ccde1db31e7c7c0f00dd625e998ab50180/node_modules/postcss-load-config/src/index.js" (module) {
|
|
391
|
-
let yaml, { resolve } =
|
|
392
|
+
let yaml, { resolve } = __rspack_createRequire_require("node:path"), config = rspackRequire("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/lilconfig/3.1.3/8e9a79516bf61f8427342cef50cdad2cdc2572f42288ba8053b88eadfdc0ebef/node_modules/lilconfig/src/index.js"), loadOptions = rspackRequire("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/postcss-load-config/6.0.1/d0e1ffed59e3d657674e04f8f91182ccde1db31e7c7c0f00dd625e998ab50180/node_modules/postcss-load-config/src/options.js"), loadPlugins = rspackRequire("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/postcss-load-config/6.0.1/d0e1ffed59e3d657674e04f8f91182ccde1db31e7c7c0f00dd625e998ab50180/node_modules/postcss-load-config/src/plugins.js"), req = rspackRequire("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/postcss-load-config/6.0.1/d0e1ffed59e3d657674e04f8f91182ccde1db31e7c7c0f00dd625e998ab50180/node_modules/postcss-load-config/src/req.js");
|
|
392
393
|
async function processResult(ctx, result) {
|
|
393
394
|
let obj, file = result.filepath || '', projectConfig = ((obj = result.config) && obj.__esModule ? obj : {
|
|
394
395
|
default: obj
|
|
@@ -500,7 +501,7 @@ moduleFactories.add({
|
|
|
500
501
|
};
|
|
501
502
|
},
|
|
502
503
|
"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/postcss-load-config/6.0.1/d0e1ffed59e3d657674e04f8f91182ccde1db31e7c7c0f00dd625e998ab50180/node_modules/postcss-load-config/src/req.js" (module) {
|
|
503
|
-
let tsx, jiti, { createRequire } =
|
|
504
|
+
let tsx, jiti, { createRequire } = __rspack_createRequire_require("node:module"), { pathToFileURL } = __rspack_createRequire_require("node:url"), TS_EXT_RE = /\.[mc]?ts$/, importError = [];
|
|
504
505
|
module.exports = async function req(name, rootFile = __rspack_import_meta_filename__) {
|
|
505
506
|
let url = createRequire(rootFile).resolve(name);
|
|
506
507
|
try {
|
|
@@ -531,77 +532,11 @@ moduleFactories.add({
|
|
|
531
532
|
async_hooks (module) {
|
|
532
533
|
module.exports = __rspack_createRequire_require("async_hooks");
|
|
533
534
|
},
|
|
534
|
-
buffer (module) {
|
|
535
|
-
module.exports = __rspack_createRequire_require("buffer");
|
|
536
|
-
},
|
|
537
|
-
child_process (module) {
|
|
538
|
-
module.exports = __rspack_createRequire_require("child_process");
|
|
539
|
-
},
|
|
540
|
-
crypto (module) {
|
|
541
|
-
module.exports = __rspack_createRequire_require("crypto");
|
|
542
|
-
},
|
|
543
|
-
"fs?cdbd" (module) {
|
|
544
|
-
module.exports = __rspack_createRequire_require("fs");
|
|
545
|
-
},
|
|
546
|
-
http (module) {
|
|
547
|
-
module.exports = __rspack_createRequire_require("http");
|
|
548
|
-
},
|
|
549
|
-
https (module) {
|
|
550
|
-
module.exports = __rspack_createRequire_require("https");
|
|
551
|
-
},
|
|
552
|
-
net (module) {
|
|
553
|
-
module.exports = __rspack_createRequire_require("net");
|
|
554
|
-
},
|
|
555
|
-
"node:buffer?4a79" (module) {
|
|
556
|
-
module.exports = __rspack_createRequire_require("node:buffer");
|
|
557
|
-
},
|
|
558
|
-
events (module) {
|
|
559
|
-
module.exports = __rspack_createRequire_require("node:events");
|
|
560
|
-
},
|
|
561
|
-
"node:fs?31c0" (module) {
|
|
562
|
-
module.exports = __rspack_createRequire_require("node:fs");
|
|
563
|
-
},
|
|
564
|
-
"node:module?f56b" (module) {
|
|
565
|
-
module.exports = __rspack_createRequire_require("node:module");
|
|
566
|
-
},
|
|
567
|
-
"node:path?815c" (module) {
|
|
568
|
-
module.exports = __rspack_createRequire_require("node:path");
|
|
569
|
-
},
|
|
570
|
-
"node:stream?be04" (module) {
|
|
571
|
-
module.exports = __rspack_createRequire_require("node:stream");
|
|
572
|
-
},
|
|
573
|
-
"node:url?5295" (module) {
|
|
574
|
-
module.exports = __rspack_createRequire_require("node:url");
|
|
575
|
-
},
|
|
576
|
-
os (module) {
|
|
577
|
-
module.exports = __rspack_createRequire_require("os");
|
|
578
|
-
},
|
|
579
|
-
"path?37f5" (module) {
|
|
580
|
-
module.exports = __rspack_createRequire_require("path");
|
|
581
|
-
},
|
|
582
535
|
process (module) {
|
|
583
536
|
module.exports = __rspack_createRequire_require("process");
|
|
584
537
|
},
|
|
585
|
-
stream (module) {
|
|
586
|
-
module.exports = __rspack_createRequire_require("stream");
|
|
587
|
-
},
|
|
588
538
|
"supports-color" (module) {
|
|
589
539
|
module.exports = __rspack_createRequire_require("supports-color");
|
|
590
|
-
},
|
|
591
|
-
tls (module) {
|
|
592
|
-
module.exports = __rspack_createRequire_require("tls");
|
|
593
|
-
},
|
|
594
|
-
tty (module) {
|
|
595
|
-
module.exports = __rspack_createRequire_require("tty");
|
|
596
|
-
},
|
|
597
|
-
"url?5f07" (module) {
|
|
598
|
-
module.exports = __rspack_createRequire_require("url");
|
|
599
|
-
},
|
|
600
|
-
util (module) {
|
|
601
|
-
module.exports = __rspack_createRequire_require("util");
|
|
602
|
-
},
|
|
603
|
-
zlib (module) {
|
|
604
|
-
module.exports = __rspack_createRequire_require("zlib");
|
|
605
540
|
}
|
|
606
541
|
}), function checkNodeVersion() {
|
|
607
542
|
let { versions } = process;
|
|
@@ -1234,8 +1169,8 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1234
1169
|
}, {});
|
|
1235
1170
|
}, module.exports = deepmerge;
|
|
1236
1171
|
},
|
|
1237
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js" (__unused_rspack_module,
|
|
1238
|
-
|
|
1172
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js" (__unused_rspack_module, exports) {
|
|
1173
|
+
exports.arrayToString = void 0, exports.arrayToString = (array, space, next)=>{
|
|
1239
1174
|
let values = array.map(function(value, index) {
|
|
1240
1175
|
let result = next(value, index);
|
|
1241
1176
|
return void 0 === result ? String(result) : space + result.split("\n").join(`\n${space}`);
|
|
@@ -1243,8 +1178,8 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1243
1178
|
return `[${eol}${values}${eol}]`;
|
|
1244
1179
|
};
|
|
1245
1180
|
},
|
|
1246
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js" (__unused_rspack_module,
|
|
1247
|
-
|
|
1181
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1182
|
+
exports.functionToString = exports.USED_METHOD_KEY = void 0;
|
|
1248
1183
|
let quote_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"), METHOD_NAMES_ARE_QUOTED = '"' === ({
|
|
1249
1184
|
" " () {}
|
|
1250
1185
|
})[" "].toString().charAt(0), FUNCTION_PREFIXES = {
|
|
@@ -1268,9 +1203,9 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1268
1203
|
}
|
|
1269
1204
|
return found ? fnString.split(`\n${found}`).join("\n") : fnString;
|
|
1270
1205
|
}
|
|
1271
|
-
|
|
1206
|
+
exports.USED_METHOD_KEY = new WeakSet(), exports.functionToString = (fn, space, next, key)=>{
|
|
1272
1207
|
let name = "string" == typeof key ? key : void 0;
|
|
1273
|
-
return void 0 !== name &&
|
|
1208
|
+
return void 0 !== name && exports.USED_METHOD_KEY.add(fn), new FunctionParser(fn, space, next, name).stringify();
|
|
1274
1209
|
};
|
|
1275
1210
|
class FunctionParser {
|
|
1276
1211
|
constructor(fn, indent, next, key){
|
|
@@ -1378,13 +1313,13 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1378
1313
|
}
|
|
1379
1314
|
}
|
|
1380
1315
|
},
|
|
1381
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js" (__unused_rspack_module,
|
|
1382
|
-
|
|
1316
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1317
|
+
exports.A = void 0;
|
|
1383
1318
|
let stringify_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js"), quote_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"), ROOT_SENTINEL = Symbol("root");
|
|
1384
1319
|
function replacerToString(replacer) {
|
|
1385
1320
|
return replacer ? (value, space, next, key)=>replacer(value, space, (value)=>stringify_1.toString(value, space, next, key), key) : stringify_1.toString;
|
|
1386
1321
|
}
|
|
1387
|
-
|
|
1322
|
+
exports.A = function stringify(value, replacer, indent, options = {}) {
|
|
1388
1323
|
let space = "string" == typeof indent ? indent : " ".repeat(indent || 0), path = [], stack = new Set(), tracking = new Map(), unpack = new Map(), valueCount = 0, { maxDepth = 100, references = !1, skipUndefinedProperties = !1, maxValues = 100000 } = options, valueToString = replacerToString(replacer), onNext = (value, key)=>{
|
|
1389
1324
|
if (++valueCount > maxValues || skipUndefinedProperties && void 0 === value || path.length > maxDepth) return;
|
|
1390
1325
|
if (void 0 === key) return valueToString(value, space, onNext, key);
|
|
@@ -1414,10 +1349,10 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1414
1349
|
return result;
|
|
1415
1350
|
};
|
|
1416
1351
|
},
|
|
1417
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js" (__unused_rspack_module,
|
|
1418
|
-
|
|
1352
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1353
|
+
exports.objectToString = void 0;
|
|
1419
1354
|
let quote_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"), function_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js"), array_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js");
|
|
1420
|
-
|
|
1355
|
+
exports.objectToString = (value, space, next, key)=>{
|
|
1421
1356
|
if ("function" == typeof Buffer && Buffer.isBuffer(value)) return `Buffer.from(${next(value.toString("base64"))}, 'base64')`;
|
|
1422
1357
|
if ("object" == typeof global && value === global) return globalToString(value, space, next);
|
|
1423
1358
|
let toString = OBJECT_TYPES[Object.prototype.toString.call(value)];
|
|
@@ -1446,8 +1381,8 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1446
1381
|
"[object Window]": globalToString
|
|
1447
1382
|
};
|
|
1448
1383
|
},
|
|
1449
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js" (__unused_rspack_module,
|
|
1450
|
-
|
|
1384
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js" (__unused_rspack_module, exports) {
|
|
1385
|
+
exports.stringifyPath = exports.quoteKey = exports.isValidVariableName = exports.W = exports.quoteString = void 0;
|
|
1451
1386
|
let ESCAPABLE = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, META_CHARS = new Map([
|
|
1452
1387
|
[
|
|
1453
1388
|
"\b",
|
|
@@ -1485,23 +1420,23 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1485
1420
|
function escapeChar(char) {
|
|
1486
1421
|
return META_CHARS.get(char) || `\\u${`0000${char.charCodeAt(0).toString(16)}`.slice(-4)}`;
|
|
1487
1422
|
}
|
|
1488
|
-
|
|
1423
|
+
exports.quoteString = function quoteString(str) {
|
|
1489
1424
|
return `'${str.replace(ESCAPABLE, escapeChar)}'`;
|
|
1490
1425
|
};
|
|
1491
1426
|
let RESERVED_WORDS = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));
|
|
1492
1427
|
function isValidVariableName(name) {
|
|
1493
|
-
return "string" == typeof name && !RESERVED_WORDS.has(name) &&
|
|
1428
|
+
return "string" == typeof name && !RESERVED_WORDS.has(name) && exports.W.test(name);
|
|
1494
1429
|
}
|
|
1495
|
-
|
|
1430
|
+
exports.W = /^[A-Za-z_$][A-Za-z0-9_$]*$/, exports.isValidVariableName = isValidVariableName, exports.quoteKey = function quoteKey(key, next) {
|
|
1496
1431
|
return isValidVariableName(key) ? key : next(key);
|
|
1497
|
-
},
|
|
1432
|
+
}, exports.stringifyPath = function stringifyPath(path, next) {
|
|
1498
1433
|
let result = "";
|
|
1499
1434
|
for (let key of path)isValidVariableName(key) ? result += `.${key}` : result += `[${next(key)}]`;
|
|
1500
1435
|
return result;
|
|
1501
1436
|
};
|
|
1502
1437
|
},
|
|
1503
|
-
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js" (__unused_rspack_module,
|
|
1504
|
-
|
|
1438
|
+
"./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1439
|
+
exports.toString = void 0;
|
|
1505
1440
|
let quote_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"), object_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js"), function_1 = __webpack_require__("./node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js"), PRIMITIVE_TYPES = {
|
|
1506
1441
|
string: quote_1.quoteString,
|
|
1507
1442
|
number: (value)=>Object.is(value, -0) ? "-0" : String(value),
|
|
@@ -1515,7 +1450,7 @@ dist_webpack_require_.m = __webpack_modules__, dist_webpack_require_.add = funct
|
|
|
1515
1450
|
object: object_1.objectToString,
|
|
1516
1451
|
function: function_1.functionToString
|
|
1517
1452
|
};
|
|
1518
|
-
|
|
1453
|
+
exports.toString = (value, space, next, key)=>null === value ? "null" : PRIMITIVE_TYPES[typeof value](value, space, next, key);
|
|
1519
1454
|
}
|
|
1520
1455
|
});
|
|
1521
1456
|
let cjs = dist_webpack_require_("./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js");
|
|
@@ -2267,9 +2202,9 @@ function pick(obj, keys) {
|
|
|
2267
2202
|
for (let key of keys)void 0 !== obj[key] && (result[key] = obj[key]);
|
|
2268
2203
|
return result;
|
|
2269
2204
|
}
|
|
2270
|
-
let isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI;
|
|
2205
|
+
let isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI, getCrypto = cachedImport(()=>import("node:crypto"));
|
|
2271
2206
|
async function helpers_hash(data) {
|
|
2272
|
-
let crypto = await
|
|
2207
|
+
let crypto = await getCrypto();
|
|
2273
2208
|
return crypto.hash ? crypto.hash('sha256', data, 'hex').slice(0, 16) : crypto.createHash('sha256').update(data).digest('hex').slice(0, 16);
|
|
2274
2209
|
}
|
|
2275
2210
|
let compiler_isMultiCompiler = (compiler)=>'compilers' in compiler && Array.isArray(compiler.compilers), getPublicPathFromCompiler = (compiler)=>{
|
|
@@ -3011,9 +2946,9 @@ function exit(exitCode, type) {
|
|
|
3011
2946
|
}
|
|
3012
2947
|
function exitHook(onExit) {
|
|
3013
2948
|
return exitHook_callbacks.add(onExit), isRegistered || (isRegistered = !0, node_process.on('SIGINT', ()=>{
|
|
3014
|
-
exit(
|
|
2949
|
+
exit(constants.signals.SIGINT + 128, 'SIGINT');
|
|
3015
2950
|
}), node_process.once('SIGTERM', ()=>{
|
|
3016
|
-
exit(
|
|
2951
|
+
exit(constants.signals.SIGTERM + 128, 'SIGTERM');
|
|
3017
2952
|
}), node_process.once('exit', (exitCode)=>{
|
|
3018
2953
|
exit(exitCode, 'exit');
|
|
3019
2954
|
})), ()=>{
|
|
@@ -3428,7 +3363,7 @@ function createPublicContext(context) {
|
|
|
3428
3363
|
async function createContext(options, userConfig, logger, loadConfigResult) {
|
|
3429
3364
|
let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = join(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, hooks = initHooks();
|
|
3430
3365
|
return {
|
|
3431
|
-
version: "2.2.
|
|
3366
|
+
version: "2.2.9",
|
|
3432
3367
|
rootPath,
|
|
3433
3368
|
configFile: loadConfigResult?.filePath ?? userConfig._privateMeta?.configFilePath,
|
|
3434
3369
|
configFileDependencies: loadConfigResult?.dependencies ?? userConfig._privateMeta?.configFileDependencies ?? [],
|
|
@@ -4232,7 +4167,7 @@ async function createCompiler_createCompiler(options) {
|
|
|
4232
4167
|
rspackConfigs
|
|
4233
4168
|
};
|
|
4234
4169
|
}
|
|
4235
|
-
let DEFAULT_WATCH_FILE_EVENTS = [
|
|
4170
|
+
let getChokidar = cachedImport(()=>import("./chokidar.js").then((m)=>m.chokidar_namespaceObject)), DEFAULT_WATCH_FILE_EVENTS = [
|
|
4236
4171
|
'add',
|
|
4237
4172
|
'change',
|
|
4238
4173
|
'unlink'
|
|
@@ -4279,9 +4214,9 @@ function prepareWatchOptions(paths, options = {}, type, events) {
|
|
|
4279
4214
|
}
|
|
4280
4215
|
let GLOB_REGEX = /[*?{}[\]()!+|]/;
|
|
4281
4216
|
async function createChokidar(pathOrGlobs, root, options) {
|
|
4282
|
-
let { default: chokidar } = await
|
|
4217
|
+
let { default: chokidar } = await getChokidar(), watchFiles = new Set(), globPatterns = pathOrGlobs.filter((pathOrGlob)=>!!GLOB_REGEX.test(pathOrGlob) || (watchFiles.add(pathOrGlob), !1));
|
|
4283
4218
|
if (globPatterns.length) {
|
|
4284
|
-
let { glob } = await
|
|
4219
|
+
let { glob } = await getTinyglobby();
|
|
4285
4220
|
for (let file of (await glob(globPatterns, {
|
|
4286
4221
|
cwd: root,
|
|
4287
4222
|
absolute: !0
|
|
@@ -6043,7 +5978,7 @@ let supportedChromiumBrowsers = [
|
|
|
6043
5978
|
async function openBrowser(url, logger) {
|
|
6044
5979
|
let browser = process.env.BROWSER, browserArgs = process.env.BROWSER_ARGS;
|
|
6045
5980
|
if ('darwin' === process.platform && (!browser || !browserArgs) && (!browser || supportedChromiumBrowsers.includes(mapChromiumBrowserName(browser)))) {
|
|
6046
|
-
let { execFile } = await import("node:child_process"),
|
|
5981
|
+
let { execFile } = await import("node:child_process"), execFileAsync = promisify(execFile), getDefaultBrowserForAppleScript = async ()=>{
|
|
6047
5982
|
let { stdout: ps } = await execFileAsync('ps', [
|
|
6048
5983
|
'cax'
|
|
6049
5984
|
]);
|
|
@@ -6139,7 +6074,7 @@ function doesChunkBelongToHtml({ chunk, htmlPluginData }) {
|
|
|
6139
6074
|
let { options } = htmlPluginData.plugin;
|
|
6140
6075
|
return recursiveChunkEntryNames(chunk).some((chunkName)=>isChunksFiltered(chunkName, options?.chunks, options?.excludeChunks));
|
|
6141
6076
|
}
|
|
6142
|
-
let isCSSPath = (filePath)=>filePath.endsWith('.css');
|
|
6077
|
+
let getManifestPlugin = cachedImport(()=>import("./manifest-plugin.js").then(rspackRequire.bind(rspackRequire, "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/5acfc0b855cb5cd205a81b2c264b6bdf3a41cbc273715b263f9fdb82cc7ae49c/node_modules/rspack-manifest-plugin/dist/index.js"))), isCSSPath = (filePath)=>filePath.endsWith('.css');
|
|
6143
6078
|
function normalizeManifestObjectConfig(manifest) {
|
|
6144
6079
|
let defaultOptions = {
|
|
6145
6080
|
prefix: !0,
|
|
@@ -6825,8 +6760,8 @@ function destroyStream(stream, suppress) {
|
|
|
6825
6760
|
'number' == typeof fd && this.close();
|
|
6826
6761
|
}), 'function' == typeof stream.addListener && suppress && (stream.removeAllListeners('error'), stream.addListener('error', ()=>{}));
|
|
6827
6762
|
}
|
|
6828
|
-
let parseRangeHeaders = async (value)=>{
|
|
6829
|
-
let { default: rangeParser } = await
|
|
6763
|
+
let getRangeParser = cachedImport(()=>import("./range-parser.js").then(createFakeNamespaceObject.bind(rspackRequire, "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/range-parser/1.3.0/d49e5dcb9d0e39475844e240fad8cd1db6a58f4144f7ede43d9755e2fce5babc/node_modules/range-parser/index.js", 23))), parseRangeHeaders = async (value)=>{
|
|
6764
|
+
let { default: rangeParser } = await getRangeParser(), [len, rangeHeader] = value.split('|');
|
|
6830
6765
|
return rangeParser(Number(len), rangeHeader, {
|
|
6831
6766
|
combine: !0
|
|
6832
6767
|
});
|
|
@@ -7158,10 +7093,10 @@ function parseNode(line) {
|
|
|
7158
7093
|
column: parts[4] ? +parts[4] : null
|
|
7159
7094
|
} : null;
|
|
7160
7095
|
}
|
|
7161
|
-
let isValidMethodName = (methodName)=>'<unknown>' !== methodName && !/[\\/]/.test(methodName), isRspackRuntimeStack = (value)=>!!value && (value.includes('__webpack_require__') || value.startsWith('webpack/runtime/')), parseFrame = async (frame, fs, context, cachedTraceMap)=>{
|
|
7096
|
+
let getTraceMapping = cachedImport(()=>import("./trace-mapping.js").then((m)=>m.trace_mapping_namespaceObject)), isValidMethodName = (methodName)=>'<unknown>' !== methodName && !/[\\/]/.test(methodName), isRspackRuntimeStack = (value)=>!!value && (value.includes('__webpack_require__') || value.startsWith('webpack/runtime/')), parseFrame = async (frame, fs, context, cachedTraceMap)=>{
|
|
7162
7097
|
let { file, column, lineNumber } = frame, sourceMapInfo = await getFileFromUrl(`${file}.map`, fs, context);
|
|
7163
7098
|
if (!sourceMapInfo || 'errorCode' in sourceMapInfo) return;
|
|
7164
|
-
let { TraceMap, originalPositionFor } = await
|
|
7099
|
+
let { TraceMap, originalPositionFor } = await getTraceMapping(), sourceMapPath = sourceMapInfo.filename;
|
|
7165
7100
|
try {
|
|
7166
7101
|
let tracer = cachedTraceMap.get(sourceMapPath);
|
|
7167
7102
|
if (!tracer) {
|
|
@@ -7995,18 +7930,18 @@ let applyDefaultMiddlewares = async ({ config, buildManager, context, devServer,
|
|
|
7995
7930
|
},
|
|
7996
7931
|
onUpgrade
|
|
7997
7932
|
};
|
|
7998
|
-
}, isModuleNamespaceObject = (moduleExports)=>'[object Module]' === Object.prototype.toString.call(moduleExports), asModule = async (moduleExports, context, unlinked)=>{
|
|
7999
|
-
let { Module, SyntheticModule } =
|
|
7933
|
+
}, isModuleNamespaceObject = (moduleExports)=>'[object Module]' === Object.prototype.toString.call(moduleExports), asModule = async (vm, moduleExports, context, unlinked)=>{
|
|
7934
|
+
let { Module, SyntheticModule } = vm;
|
|
8000
7935
|
if (moduleExports instanceof Module) return moduleExports;
|
|
8001
7936
|
let normalizedModuleExports = null !== moduleExports && ('object' == typeof moduleExports || 'function' == typeof moduleExports) ? moduleExports : {
|
|
8002
7937
|
default: moduleExports
|
|
8003
|
-
},
|
|
7938
|
+
}, exports = [
|
|
8004
7939
|
...new Set([
|
|
8005
7940
|
'default',
|
|
8006
7941
|
...Object.keys(normalizedModuleExports)
|
|
8007
7942
|
])
|
|
8008
|
-
], syntheticModule = new SyntheticModule(
|
|
8009
|
-
for (let name of
|
|
7943
|
+
], syntheticModule = new SyntheticModule(exports, ()=>{
|
|
7944
|
+
for (let name of exports)if ('default' === name) {
|
|
8010
7945
|
let defaultExport = isModuleNamespaceObject(normalizedModuleExports) && 'default' in normalizedModuleExports ? normalizedModuleExports.default : moduleExports;
|
|
8011
7946
|
syntheticModule.setExport(name, defaultExport);
|
|
8012
7947
|
} else syntheticModule.setExport(name, normalizedModuleExports[name]);
|
|
@@ -8016,16 +7951,16 @@ let applyDefaultMiddlewares = async ({ config, buildManager, context, devServer,
|
|
|
8016
7951
|
return unlinked || (await syntheticModule.link(()=>{}), await syntheticModule.evaluate()), syntheticModule;
|
|
8017
7952
|
};
|
|
8018
7953
|
class BasicRunner {
|
|
8019
|
-
|
|
7954
|
+
options;
|
|
8020
7955
|
globalContext = null;
|
|
8021
7956
|
baseModuleScope = null;
|
|
8022
7957
|
requirers = new Map();
|
|
8023
|
-
constructor(
|
|
8024
|
-
this.
|
|
7958
|
+
constructor(options){
|
|
7959
|
+
this.options = options;
|
|
8025
7960
|
}
|
|
8026
7961
|
run(file) {
|
|
8027
7962
|
this.globalContext || (this.globalContext = this.createGlobalContext()), this.baseModuleScope = this.createBaseModuleScope(), this.createRunner();
|
|
8028
|
-
let res = this.getRequire()(this.
|
|
7963
|
+
let res = this.getRequire()(this.options.dist, file.startsWith('./') ? file : `./${file}`);
|
|
8029
7964
|
return res && 'object' == typeof res && 'then' in res ? res : Promise.resolve(res);
|
|
8030
7965
|
}
|
|
8031
7966
|
getRequire() {
|
|
@@ -8039,9 +7974,8 @@ class BasicRunner {
|
|
|
8039
7974
|
subPath: ''
|
|
8040
7975
|
};
|
|
8041
7976
|
let joinedPath = /^\.\.?\//.test(modulePath) ? node_path.join(currentDirectory, modulePath) : modulePath;
|
|
8042
|
-
return this.
|
|
7977
|
+
return this.options.isOutputFile(joinedPath) ? {
|
|
8043
7978
|
path: joinedPath,
|
|
8044
|
-
content: this._options.readFileSync(joinedPath),
|
|
8045
7979
|
subPath: ((p)=>{
|
|
8046
7980
|
let lastSlash = p.lastIndexOf('/'), firstSlash = p.indexOf('/');
|
|
8047
7981
|
if (-1 !== lastSlash && firstSlash !== lastSlash) {
|
|
@@ -8055,6 +7989,9 @@ class BasicRunner {
|
|
|
8055
7989
|
})(modulePath)
|
|
8056
7990
|
} : null;
|
|
8057
7991
|
}
|
|
7992
|
+
getFileContent(file) {
|
|
7993
|
+
return file.content ??= this.options.readFileSync(file.path);
|
|
7994
|
+
}
|
|
8058
7995
|
preExecute(_code, _file) {}
|
|
8059
7996
|
postExecute(_m, _file) {}
|
|
8060
7997
|
createRunner() {
|
|
@@ -8114,19 +8051,19 @@ class CommonJsRunner extends BasicRunner {
|
|
|
8114
8051
|
};
|
|
8115
8052
|
}
|
|
8116
8053
|
createCjsRequirer() {
|
|
8117
|
-
let requireCache = Object.create(null), vm = vendors_require('node:vm');
|
|
8054
|
+
let cachedDynamicImport, requireCache = Object.create(null), vm = vendors_require('node:vm');
|
|
8118
8055
|
return (currentDirectory, modulePath, context = {})=>{
|
|
8119
8056
|
let file = context.file || this.getFile(modulePath, currentDirectory);
|
|
8120
8057
|
if (!file) return this.requirers.get('miss')(currentDirectory, modulePath);
|
|
8121
8058
|
if (file.path in requireCache) return requireCache[file.path].exports;
|
|
8122
|
-
let m = {
|
|
8059
|
+
let content = this.getFileContent(file), m = {
|
|
8123
8060
|
exports: {}
|
|
8124
8061
|
};
|
|
8125
8062
|
requireCache[file.path] = m;
|
|
8126
8063
|
let currentModuleScope = this.createModuleScope(this.getRequire(), m, file), args = Object.keys(currentModuleScope), argValues = args.map((arg)=>currentModuleScope[arg]);
|
|
8127
|
-
this.preExecute(
|
|
8128
|
-
let dynamicImport = Function('specifier', 'return import(specifier)');
|
|
8129
|
-
return vm.compileFunction(
|
|
8064
|
+
this.preExecute(content, file);
|
|
8065
|
+
let dynamicImport = cachedDynamicImport ??= Function('specifier', 'return import(specifier)');
|
|
8066
|
+
return vm.compileFunction(content, args, {
|
|
8130
8067
|
filename: file.path,
|
|
8131
8068
|
importModuleDynamically: async (specifier)=>await dynamicImport(specifier)
|
|
8132
8069
|
}).call(m.exports, ...argValues), this.postExecute(m, file), m.exports;
|
|
@@ -8136,7 +8073,7 @@ class CommonJsRunner extends BasicRunner {
|
|
|
8136
8073
|
class EsmRunner extends CommonJsRunner {
|
|
8137
8074
|
createRunner() {
|
|
8138
8075
|
super.createRunner(), this.requirers.set('cjs', this.getRequire()), this.requirers.set('esm', this.createEsmRequirer());
|
|
8139
|
-
let outputModule = this.
|
|
8076
|
+
let outputModule = this.options.compilerOptions.output.module;
|
|
8140
8077
|
this.requirers.set('entry', (currentDirectory, modulePath, context)=>{
|
|
8141
8078
|
let file = this.getFile(modulePath, currentDirectory);
|
|
8142
8079
|
return file ? outputModule && !file.path.endsWith('.cjs') ? this.requirers.get('esm')(currentDirectory, modulePath, {
|
|
@@ -8149,7 +8086,7 @@ class EsmRunner extends CommonJsRunner {
|
|
|
8149
8086
|
});
|
|
8150
8087
|
}
|
|
8151
8088
|
createEsmRequirer() {
|
|
8152
|
-
let esmCache = new Map(), esmIdentifier = this.
|
|
8089
|
+
let esmCache = new Map(), esmIdentifier = this.options.name, vm = vendors_require('node:vm');
|
|
8153
8090
|
return (currentDirectory, modulePath, context = {})=>{
|
|
8154
8091
|
if (!vm.SourceTextModule) throw Error(`${color.dim('[rsbuild:runner]')} Running ESM bundle needs add Node.js option ${color.yellow('--experimental-vm-modules')}.`);
|
|
8155
8092
|
let _require = this.getRequire(), file = context.file || this.getFile(modulePath, currentDirectory);
|
|
@@ -8162,14 +8099,14 @@ class EsmRunner extends CommonJsRunner {
|
|
|
8162
8099
|
initializeImportMeta: (meta)=>{
|
|
8163
8100
|
meta.url = pathToFileURL(file.path).href;
|
|
8164
8101
|
},
|
|
8165
|
-
importModuleDynamically: async (specifier, module)=>asModule(await _require(node_path.dirname(file.path), specifier, {
|
|
8102
|
+
importModuleDynamically: async (specifier, module)=>asModule(vm, await _require(node_path.dirname(file.path), specifier, {
|
|
8166
8103
|
esmMode: 1
|
|
8167
8104
|
}), module.context)
|
|
8168
8105
|
};
|
|
8169
|
-
esm = new vm.SourceTextModule(file
|
|
8106
|
+
esm = new vm.SourceTextModule(this.getFileContent(file), sourceTextModuleOptions), esmCache.set(file.path, esm);
|
|
8170
8107
|
}
|
|
8171
8108
|
return 2 === context.esmMode ? esm : (async ()=>{
|
|
8172
|
-
if (await esm.link(async (specifier, referencingModule)=>asModule(await _require(node_path.dirname(referencingModule.identifier), specifier, {
|
|
8109
|
+
if (await esm.link(async (specifier, referencingModule)=>asModule(vm, await _require(node_path.dirname(referencingModule.identifier), specifier, {
|
|
8173
8110
|
esmMode: 2
|
|
8174
8111
|
}), referencingModule.context, !0)), await esm.evaluate(), 1 === context.esmMode) return esm;
|
|
8175
8112
|
let ns = esm.namespace;
|
|
@@ -8256,7 +8193,7 @@ let runner_run = async ({ bundlePath, ...runnerFactoryOptions })=>{
|
|
|
8256
8193
|
}, shutdownRefCount = 0, setupGracefulShutdown = ()=>{
|
|
8257
8194
|
shutdownRefCount++;
|
|
8258
8195
|
let onSigterm = ()=>{
|
|
8259
|
-
handleTermination(
|
|
8196
|
+
handleTermination(constants.signals.SIGTERM + 128);
|
|
8260
8197
|
};
|
|
8261
8198
|
process.once('SIGTERM', onSigterm);
|
|
8262
8199
|
let isCI = 'true' === process.env.CI, onStdinEnd = ()=>{
|
|
@@ -8589,14 +8526,10 @@ async function startPreviewServer(context, config, { getPortSilently } = {}) {
|
|
|
8589
8526
|
for (let middleware of proxyMiddlewares)middlewares.use(middleware);
|
|
8590
8527
|
httpServer.on('upgrade', upgrade);
|
|
8591
8528
|
}
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
...'object' == typeof compress ? compress : void 0
|
|
8597
|
-
}));
|
|
8598
|
-
}
|
|
8599
|
-
for (let callback of (base && '/' !== base && middlewares.use(getBaseUrlMiddleware({
|
|
8529
|
+
for (let callback of (compress && middlewares.use(gzipMiddleware_gzipMiddleware({
|
|
8530
|
+
level: external_node_zlib_constants.Z_DEFAULT_COMPRESSION,
|
|
8531
|
+
...'object' == typeof compress ? compress : void 0
|
|
8532
|
+
})), base && '/' !== base && middlewares.use(getBaseUrlMiddleware({
|
|
8600
8533
|
base
|
|
8601
8534
|
})), middlewares.use(assetsMiddleware), middlewares.use(getHtmlCompletionMiddleware(htmlMiddlewareOptions)), historyApiFallback && (middlewares.use(historyApiFallback_historyApiFallbackMiddleware(logger, !0 === historyApiFallback ? {} : historyApiFallback)), middlewares.use(assetsMiddleware)), postSetupCallbacks))await callback();
|
|
8602
8535
|
serverConfig.htmlFallback && middlewares.use(getHtmlFallbackMiddleware({
|
|
@@ -9735,7 +9668,7 @@ try {
|
|
|
9735
9668
|
if (!1 === copyOnBuild || !node_fs.existsSync(publicDir)) continue;
|
|
9736
9669
|
let distPaths = dedupeNestedPaths(Object.values(environments).filter(({ config })=>!0 === copyOnBuild || 'auto' === copyOnBuild && 'node' !== config.output.target).map(({ distPath })=>distPath));
|
|
9737
9670
|
if (ignore?.length) {
|
|
9738
|
-
let { globSync } = await
|
|
9671
|
+
let { globSync } = await getTinyglobby(), ignoredSet = new Set(globSync(ignore, {
|
|
9739
9672
|
cwd: publicDir,
|
|
9740
9673
|
absolute: !1,
|
|
9741
9674
|
dot: !0,
|
|
@@ -9774,7 +9707,7 @@ try {
|
|
|
9774
9707
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, environment, isDev })=>{
|
|
9775
9708
|
let { output: { manifest }, dev: { writeToDisk } } = environment.config;
|
|
9776
9709
|
if (!1 === manifest) return;
|
|
9777
|
-
let manifestOptions = normalizeManifestObjectConfig(manifest), { RspackManifestPlugin } = await
|
|
9710
|
+
let manifestOptions = normalizeManifestObjectConfig(manifest), { RspackManifestPlugin } = await getManifestPlugin(), { htmlPaths } = environment, filter = manifestOptions.filter ?? ((file)=>!file.name.endsWith('.LICENSE.txt'));
|
|
9778
9711
|
manifestFilenames.set(environment.name, manifestOptions.filename);
|
|
9779
9712
|
let pluginOptions = {
|
|
9780
9713
|
fileName: manifestOptions.filename,
|
|
@@ -10324,7 +10257,7 @@ let applyServerOptions = (command)=>{
|
|
|
10324
10257
|
};
|
|
10325
10258
|
function setupCommands(argv) {
|
|
10326
10259
|
let cli = ((name = "")=>new CAC(name))('rsbuild');
|
|
10327
|
-
cli.version("2.2.
|
|
10260
|
+
cli.version("2.2.9"), cli.option('--base <base>', 'Set the base path of the server').option('-c, --config <config>', 'Set the configuration file (relative or absolute path)').option('--config-loader <loader>', 'Set the config file loader (auto | jiti | native)', {
|
|
10328
10261
|
default: 'auto'
|
|
10329
10262
|
}).option('--dist-path <dir>', 'Set the root directory of output files').option('--source-map', 'Enable source map').option('--env-dir <dir>', 'Set the directory for loading `.env` files').option('--env-mode <mode>', 'Set the env mode to load the `.env.[mode]` file').option('--environment <name>', 'Set the environment name(s) to build', {
|
|
10330
10263
|
type: [
|
|
@@ -10389,7 +10322,7 @@ function setupCommands(argv) {
|
|
|
10389
10322
|
}
|
|
10390
10323
|
function showGreeting() {
|
|
10391
10324
|
let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
|
|
10392
|
-
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v2.2.
|
|
10325
|
+
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v2.2.9\n`);
|
|
10393
10326
|
}
|
|
10394
10327
|
function setupLogLevel(argv) {
|
|
10395
10328
|
if (argv.length <= 3) return;
|
|
@@ -10411,5 +10344,5 @@ function runCLI({ argv = process.argv } = {}) {
|
|
|
10411
10344
|
src_logger.error('Failed to start Rsbuild CLI.'), src_logger.error(err), process.exit(1);
|
|
10412
10345
|
}
|
|
10413
10346
|
}
|
|
10414
|
-
let src_version = "2.2.
|
|
10347
|
+
let src_version = "2.2.9";
|
|
10415
10348
|
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, core_rspack as rspack, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig_loadConfig as loadConfig, loadEnv, logger_createLogger as createLogger, mergeRsbuildConfig, mrmime_lookup, runCLI, src_logger as logger, src_version as version };
|