@rsbuild/core 1.5.0-rc.0 → 1.5.0

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.
@@ -1,19 +1,19 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 735: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 5324: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(9265);
5
+ const loader = __nccwpck_require__(1138);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(2796).defaultGetLocalIdent;
8
+ __nccwpck_require__(803).defaultGetLocalIdent;
9
9
  },
10
- 9265: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 1138: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
14
  var _postcss = _interopRequireDefault(__nccwpck_require__(9409));
15
- var _plugins = __nccwpck_require__(2942);
16
- var _utils = __nccwpck_require__(2796);
15
+ var _plugins = __nccwpck_require__(7201);
16
+ var _utils = __nccwpck_require__(803);
17
17
  function _interopRequireDefault(obj) {
18
18
  return obj && obj.__esModule ? obj : { default: obj };
19
19
  }
@@ -236,7 +236,7 @@
236
236
  callback(null, `${importCode}${moduleCode}${exportCode}`);
237
237
  }
238
238
  },
239
- 2942: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 7201: (__unused_webpack_module, exports, __nccwpck_require__) => {
240
240
  "use strict";
241
241
  Object.defineProperty(exports, "__esModule", { value: true });
242
242
  Object.defineProperty(exports, "icssParser", {
@@ -258,22 +258,22 @@
258
258
  },
259
259
  });
260
260
  var _postcssImportParser = _interopRequireDefault(
261
- __nccwpck_require__(389),
261
+ __nccwpck_require__(4698),
262
262
  );
263
263
  var _postcssIcssParser = _interopRequireDefault(
264
- __nccwpck_require__(6788),
264
+ __nccwpck_require__(8643),
265
265
  );
266
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4979));
266
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1270));
267
267
  function _interopRequireDefault(obj) {
268
268
  return obj && obj.__esModule ? obj : { default: obj };
269
269
  }
270
270
  },
271
- 6788: (__unused_webpack_module, exports, __nccwpck_require__) => {
271
+ 8643: (__unused_webpack_module, exports, __nccwpck_require__) => {
272
272
  "use strict";
273
273
  Object.defineProperty(exports, "__esModule", { value: true });
274
274
  exports["default"] = void 0;
275
275
  var _icssUtils = __nccwpck_require__(9028);
276
- var _utils = __nccwpck_require__(2796);
276
+ var _utils = __nccwpck_require__(803);
277
277
  const plugin = (options = {}) => ({
278
278
  postcssPlugin: "postcss-icss-parser",
279
279
  async OnceExit(root) {
@@ -372,14 +372,14 @@
372
372
  plugin.postcss = true;
373
373
  var _default = (exports["default"] = plugin);
374
374
  },
375
- 389: (__unused_webpack_module, exports, __nccwpck_require__) => {
375
+ 4698: (__unused_webpack_module, exports, __nccwpck_require__) => {
376
376
  "use strict";
377
377
  Object.defineProperty(exports, "__esModule", { value: true });
378
378
  exports["default"] = void 0;
379
379
  var _postcssValueParser = _interopRequireDefault(
380
380
  __nccwpck_require__(2948),
381
381
  );
382
- var _utils = __nccwpck_require__(2796);
382
+ var _utils = __nccwpck_require__(803);
383
383
  function _interopRequireDefault(obj) {
384
384
  return obj && obj.__esModule ? obj : { default: obj };
385
385
  }
@@ -684,14 +684,14 @@
684
684
  plugin.postcss = true;
685
685
  var _default = (exports["default"] = plugin);
686
686
  },
687
- 4979: (__unused_webpack_module, exports, __nccwpck_require__) => {
687
+ 1270: (__unused_webpack_module, exports, __nccwpck_require__) => {
688
688
  "use strict";
689
689
  Object.defineProperty(exports, "__esModule", { value: true });
690
690
  exports["default"] = void 0;
691
691
  var _postcssValueParser = _interopRequireDefault(
692
692
  __nccwpck_require__(2948),
693
693
  );
694
- var _utils = __nccwpck_require__(2796);
694
+ var _utils = __nccwpck_require__(803);
695
695
  function _interopRequireDefault(obj) {
696
696
  return obj && obj.__esModule ? obj : { default: obj };
697
697
  }
@@ -1034,7 +1034,7 @@
1034
1034
  plugin.postcss = true;
1035
1035
  var _default = (exports["default"] = plugin);
1036
1036
  },
1037
- 2796: (__unused_webpack_module, exports, __nccwpck_require__) => {
1037
+ 803: (__unused_webpack_module, exports, __nccwpck_require__) => {
1038
1038
  "use strict";
1039
1039
  Object.defineProperty(exports, "__esModule", { value: true });
1040
1040
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -8098,6 +8098,6 @@
8098
8098
  }
8099
8099
  if (typeof __nccwpck_require__ !== "undefined")
8100
8100
  __nccwpck_require__.ab = __dirname + "/";
8101
- var __webpack_exports__ = __nccwpck_require__(735);
8101
+ var __webpack_exports__ = __nccwpck_require__(5324);
8102
8102
  module.exports = __webpack_exports__;
8103
8103
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 401: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 361: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(554);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(274);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -311,7 +311,7 @@
311
311
  }
312
312
  module.exports = { CachedChildCompilation };
313
313
  },
314
- 554: (module) => {
314
+ 274: (module) => {
315
315
  "use strict";
316
316
  class HtmlWebpackChildCompiler {
317
317
  constructor(templates) {
@@ -480,7 +480,7 @@
480
480
  }
481
481
  module.exports = { HtmlWebpackChildCompiler };
482
482
  },
483
- 474: (module) => {
483
+ 194: (module) => {
484
484
  "use strict";
485
485
  module.exports = {};
486
486
  module.exports.none = (chunks) => chunks;
@@ -499,7 +499,7 @@
499
499
  };
500
500
  module.exports.auto = module.exports.none;
501
501
  },
502
- 653: (module) => {
502
+ 557: (module) => {
503
503
  "use strict";
504
504
  module.exports = function (err) {
505
505
  return {
@@ -520,7 +520,7 @@
520
520
  };
521
521
  };
522
522
  },
523
- 692: (module, __unused_webpack_exports, __nccwpck_require__) => {
523
+ 356: (module, __unused_webpack_exports, __nccwpck_require__) => {
524
524
  "use strict";
525
525
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
526
526
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -546,7 +546,7 @@
546
546
  }
547
547
  module.exports = { getHtmlRspackPluginHooks };
548
548
  },
549
- 761: (module) => {
549
+ 193: (module) => {
550
550
  const voidTags = [
551
551
  "area",
552
552
  "base",
@@ -614,19 +614,19 @@
614
614
  htmlTagObjectToString,
615
615
  };
616
616
  },
617
- 836: (module, __unused_webpack_exports, __nccwpck_require__) => {
617
+ 460: (module, __unused_webpack_exports, __nccwpck_require__) => {
618
618
  "use strict";
619
619
  const promisify = __nccwpck_require__(23).promisify;
620
620
  const vm = __nccwpck_require__(154);
621
621
  const fs = __nccwpck_require__(896);
622
622
  const path = __nccwpck_require__(928);
623
- const { CachedChildCompilation } = __nccwpck_require__(401);
623
+ const { CachedChildCompilation } = __nccwpck_require__(361);
624
624
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
625
- __nccwpck_require__(761);
626
- const prettyError = __nccwpck_require__(653);
627
- const chunkSorter = __nccwpck_require__(474);
625
+ __nccwpck_require__(193);
626
+ const prettyError = __nccwpck_require__(557);
627
+ const chunkSorter = __nccwpck_require__(194);
628
628
  const getHtmlRspackPluginHooks =
629
- __nccwpck_require__(692).getHtmlRspackPluginHooks;
629
+ __nccwpck_require__(356).getHtmlRspackPluginHooks;
630
630
  const WITH_PLACEHOLDER = "function __with_placeholder__";
631
631
  class HtmlRspackPlugin {
632
632
  constructor(userOptions = {}) {
@@ -1597,6 +1597,6 @@
1597
1597
  }
1598
1598
  if (typeof __nccwpck_require__ !== "undefined")
1599
1599
  __nccwpck_require__.ab = __dirname + "/";
1600
- var __webpack_exports__ = __nccwpck_require__(836);
1600
+ var __webpack_exports__ = __nccwpck_require__(460);
1601
1601
  module.exports = __webpack_exports__;
1602
1602
  })();
@@ -1,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 206: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(700)["default"];
4
+ 761: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(523)["default"];
6
6
  },
7
- 700: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 523: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(928));
12
- var _utils = __nccwpck_require__(869);
12
+ var _utils = __nccwpck_require__(246);
13
13
  function _interopRequireDefault(obj) {
14
14
  return obj && obj.__esModule ? obj : { default: obj };
15
15
  }
@@ -179,7 +179,7 @@
179
179
  callback(null, result.css, map, { ast });
180
180
  }
181
181
  },
182
- 869: (module, exports, __nccwpck_require__) => {
182
+ 246: (module, exports, __nccwpck_require__) => {
183
183
  module = __nccwpck_require__.nmd(module);
184
184
  Object.defineProperty(exports, "__esModule", { value: true });
185
185
  exports.exec = exec;
@@ -716,6 +716,6 @@
716
716
  })();
717
717
  if (typeof __nccwpck_require__ !== "undefined")
718
718
  __nccwpck_require__.ab = __dirname + "/";
719
- var __webpack_exports__ = __nccwpck_require__(206);
719
+ var __webpack_exports__ = __nccwpck_require__(761);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -4439,15 +4439,15 @@
4439
4439
  return a.start - b.start;
4440
4440
  }
4441
4441
  },
4442
- 2223: (module, __unused_webpack_exports, __nccwpck_require__) => {
4442
+ 4466: (module, __unused_webpack_exports, __nccwpck_require__) => {
4443
4443
  "use strict";
4444
4444
  const { logger } = __nccwpck_require__(8679);
4445
- const middleware = __nccwpck_require__(1755);
4446
- const getFilenameFromUrl = __nccwpck_require__(8423);
4447
- const setupHooks = __nccwpck_require__(234);
4448
- const setupWriteToDisk = __nccwpck_require__(8321);
4449
- const setupOutputFileSystem = __nccwpck_require__(9550);
4450
- const ready = __nccwpck_require__(3938);
4445
+ const middleware = __nccwpck_require__(8352);
4446
+ const getFilenameFromUrl = __nccwpck_require__(5472);
4447
+ const setupHooks = __nccwpck_require__(8477);
4448
+ const setupWriteToDisk = __nccwpck_require__(2730);
4449
+ const setupOutputFileSystem = __nccwpck_require__(9419);
4450
+ const ready = __nccwpck_require__(7719);
4451
4451
  const noop = () => {};
4452
4452
  function wdm(compiler, options = {}) {
4453
4453
  const context = {
@@ -4512,15 +4512,15 @@
4512
4512
  }
4513
4513
  module.exports = wdm;
4514
4514
  },
4515
- 1755: (module, __unused_webpack_exports, __nccwpck_require__) => {
4515
+ 8352: (module, __unused_webpack_exports, __nccwpck_require__) => {
4516
4516
  "use strict";
4517
4517
  const mrmime = __nccwpck_require__(8311);
4518
4518
  const { logger } = __nccwpck_require__(8679);
4519
4519
  const onFinishedStream = __nccwpck_require__(21);
4520
- const getFilenameFromUrl = __nccwpck_require__(8423);
4521
- const ready = __nccwpck_require__(3938);
4522
- const parseTokenList = __nccwpck_require__(8841);
4523
- const memorize = __nccwpck_require__(8319);
4520
+ const getFilenameFromUrl = __nccwpck_require__(5472);
4521
+ const ready = __nccwpck_require__(7719);
4522
+ const parseTokenList = __nccwpck_require__(9874);
4523
+ const memorize = __nccwpck_require__(2028);
4524
4524
  async function getEtag(stat) {
4525
4525
  const mtime = stat.mtime.getTime().toString(16);
4526
4526
  const size = stat.size.toString(16);
@@ -4612,7 +4612,7 @@
4612
4612
  return;
4613
4613
  }
4614
4614
  function sendError(status, options) {
4615
- const escapeHtml = __nccwpck_require__(4223);
4615
+ const escapeHtml = __nccwpck_require__(4236);
4616
4616
  const content = statuses[status] || String(status);
4617
4617
  const document = Buffer.from(
4618
4618
  `<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>${escapeHtml(content)}</pre>\n</body>\n</html>`,
@@ -4921,7 +4921,7 @@
4921
4921
  }
4922
4922
  module.exports = wrapper;
4923
4923
  },
4924
- 4223: (module) => {
4924
+ 4236: (module) => {
4925
4925
  "use strict";
4926
4926
  const matchHtmlRegExp = /["'&<>]/;
4927
4927
  function escapeHtml(string) {
@@ -4966,13 +4966,13 @@
4966
4966
  }
4967
4967
  module.exports = escapeHtml;
4968
4968
  },
4969
- 8423: (module, __unused_webpack_exports, __nccwpck_require__) => {
4969
+ 5472: (module, __unused_webpack_exports, __nccwpck_require__) => {
4970
4970
  "use strict";
4971
4971
  const path = __nccwpck_require__(6928);
4972
4972
  const { parse } = __nccwpck_require__(7016);
4973
4973
  const querystring = __nccwpck_require__(3480);
4974
- const getPaths = __nccwpck_require__(7389);
4975
- const memorize = __nccwpck_require__(8319);
4974
+ const getPaths = __nccwpck_require__(1278);
4975
+ const memorize = __nccwpck_require__(2028);
4976
4976
  const memoizedParse = memorize(parse, undefined, (value) => {
4977
4977
  if (value.pathname) {
4978
4978
  value.pathname = decode(value.pathname);
@@ -5055,7 +5055,7 @@
5055
5055
  }
5056
5056
  module.exports = getFilenameFromUrl;
5057
5057
  },
5058
- 7389: (module) => {
5058
+ 1278: (module) => {
5059
5059
  "use strict";
5060
5060
  function getPaths(context) {
5061
5061
  const { stats, options } = context;
@@ -5076,7 +5076,7 @@
5076
5076
  }
5077
5077
  module.exports = getPaths;
5078
5078
  },
5079
- 8319: (module) => {
5079
+ 2028: (module) => {
5080
5080
  "use strict";
5081
5081
  const cacheStore = new WeakMap();
5082
5082
  function memorize(fn, { cache = new Map() } = {}, callback) {
@@ -5098,7 +5098,7 @@
5098
5098
  }
5099
5099
  module.exports = memorize;
5100
5100
  },
5101
- 8841: (module) => {
5101
+ 9874: (module) => {
5102
5102
  "use strict";
5103
5103
  function parseTokenList(str) {
5104
5104
  let end = 0;
@@ -5131,7 +5131,7 @@
5131
5131
  }
5132
5132
  module.exports = parseTokenList;
5133
5133
  },
5134
- 3938: (module, __unused_webpack_exports, __nccwpck_require__) => {
5134
+ 7719: (module, __unused_webpack_exports, __nccwpck_require__) => {
5135
5135
  "use strict";
5136
5136
  const { logger } = __nccwpck_require__(8679);
5137
5137
  function ready(context, callback, req) {
@@ -5147,7 +5147,7 @@
5147
5147
  }
5148
5148
  module.exports = ready;
5149
5149
  },
5150
- 234: (module) => {
5150
+ 8477: (module) => {
5151
5151
  "use strict";
5152
5152
  function setupHooks(context) {
5153
5153
  function invalid() {
@@ -5175,7 +5175,7 @@
5175
5175
  }
5176
5176
  module.exports = setupHooks;
5177
5177
  },
5178
- 9550: (module, __unused_webpack_exports, __nccwpck_require__) => {
5178
+ 9419: (module, __unused_webpack_exports, __nccwpck_require__) => {
5179
5179
  "use strict";
5180
5180
  const memfs = __nccwpck_require__(8672);
5181
5181
  function setupOutputFileSystem(context) {
@@ -5202,7 +5202,7 @@
5202
5202
  }
5203
5203
  module.exports = setupOutputFileSystem;
5204
5204
  },
5205
- 8321: (module, __unused_webpack_exports, __nccwpck_require__) => {
5205
+ 2730: (module, __unused_webpack_exports, __nccwpck_require__) => {
5206
5206
  "use strict";
5207
5207
  const fs = __nccwpck_require__(9896);
5208
5208
  const path = __nccwpck_require__(6928);
@@ -6195,6 +6195,6 @@
6195
6195
  }
6196
6196
  if (typeof __nccwpck_require__ !== "undefined")
6197
6197
  __nccwpck_require__.ab = __dirname + "/";
6198
- var __webpack_exports__ = __nccwpck_require__(2223);
6198
+ var __webpack_exports__ = __nccwpck_require__(4466);
6199
6199
  module.exports = __webpack_exports__;
6200
6200
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 753: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 307: (__unused_webpack_module, exports, __nccwpck_require__) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.transformFiles =
7
7
  exports.reduceChunk =
@@ -120,7 +120,7 @@
120
120
  .map(standardizeFilePaths);
121
121
  exports.transformFiles = transformFiles;
122
122
  },
123
- 983: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 798: (__unused_webpack_module, exports, __nccwpck_require__) => {
124
124
  Object.defineProperty(exports, "__esModule", { value: true });
125
125
  exports.normalModuleLoaderHook =
126
126
  exports.getCompilerHooks =
@@ -130,7 +130,7 @@
130
130
  const fs_1 = __nccwpck_require__(896);
131
131
  const path_1 = __nccwpck_require__(928);
132
132
  const lite_tapable_1 = __nccwpck_require__(408);
133
- const helpers_1 = __nccwpck_require__(753);
133
+ const helpers_1 = __nccwpck_require__(307);
134
134
  const compilerHookMap = new WeakMap();
135
135
  const getCompilerHooks = (compiler) => {
136
136
  let hooks = compilerHookMap.get(compiler);
@@ -312,7 +312,7 @@
312
312
  exports.getCompilerHooks =
313
313
  void 0;
314
314
  const path_1 = __nccwpck_require__(928);
315
- const hooks_1 = __nccwpck_require__(983);
315
+ const hooks_1 = __nccwpck_require__(798);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 322: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- const loader = __nccwpck_require__(760);
4
+ 427: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(965);
6
6
  module.exports = loader.default;
7
7
  },
8
- 760: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
+ 965: (__unused_webpack_module, exports, __nccwpck_require__) => {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports["default"] = void 0;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(928));
12
- var _utils = __nccwpck_require__(145);
13
- var _options = _interopRequireDefault(__nccwpck_require__(449));
12
+ var _utils = __nccwpck_require__(712);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(840));
14
14
  function _interopRequireDefault(obj) {
15
15
  return obj && obj.__esModule ? obj : { default: obj };
16
16
  }
@@ -104,7 +104,7 @@
104
104
  };
105
105
  var _default = (exports["default"] = loader);
106
106
  },
107
- 947: (module) => {
107
+ 258: (module) => {
108
108
  function isEqualLocals(a, b, isNamedExport) {
109
109
  if ((!a && b) || (a && !b)) {
110
110
  return false;
@@ -130,7 +130,7 @@
130
130
  }
131
131
  module.exports = isEqualLocals;
132
132
  },
133
- 145: (__unused_webpack_module, exports, __nccwpck_require__) => {
133
+ 712: (__unused_webpack_module, exports, __nccwpck_require__) => {
134
134
  Object.defineProperty(exports, "__esModule", { value: true });
135
135
  exports.getExportLazyStyleCode = getExportLazyStyleCode;
136
136
  exports.getExportStyleCode = getExportStyleCode;
@@ -151,7 +151,7 @@
151
151
  exports.getdomAPI = getdomAPI;
152
152
  exports.stringifyRequest = stringifyRequest;
153
153
  var _path = _interopRequireDefault(__nccwpck_require__(928));
154
- var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(947));
154
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(258));
155
155
  function _interopRequireDefault(obj) {
156
156
  return obj && obj.__esModule ? obj : { default: obj };
157
157
  }
@@ -394,7 +394,7 @@
394
394
  928: (module) => {
395
395
  module.exports = require("path");
396
396
  },
397
- 449: (module) => {
397
+ 840: (module) => {
398
398
  module.exports = JSON.parse(
399
399
  '{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
400
400
  );
@@ -422,6 +422,6 @@
422
422
  }
423
423
  if (typeof __nccwpck_require__ !== "undefined")
424
424
  __nccwpck_require__.ab = __dirname + "/";
425
- var __webpack_exports__ = __nccwpck_require__(322);
425
+ var __webpack_exports__ = __nccwpck_require__(427);
426
426
  module.exports = __webpack_exports__;
427
427
  })();
package/dist/index.cjs CHANGED
@@ -2409,7 +2409,7 @@ for(var __webpack_i__ in (()=>{
2409
2409
  node: [
2410
2410
  'node >= 16'
2411
2411
  ]
2412
- }, JS_REGEX = /\.(?:js|mjs|cjs|jsx)$/, SCRIPT_REGEX = /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/, CSS_REGEX = /\.css$/, RAW_QUERY_REGEX = /^\?raw$/, INLINE_QUERY_REGEX = /^\?inline$/, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, PLUGIN_SWC_NAME = 'rsbuild:swc', PLUGIN_CSS_NAME = 'rsbuild:css', FONT_EXTENSIONS = [
2412
+ }, JS_REGEX = /\.(?:js|mjs|cjs|jsx)$/, SCRIPT_REGEX = /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/, CSS_REGEX = /\.css$/, RAW_QUERY_REGEX = /[?&]raw(?:&|=|$)/, INLINE_QUERY_REGEX = /[?&]inline(?:&|=|$)/, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, PLUGIN_SWC_NAME = 'rsbuild:swc', PLUGIN_CSS_NAME = 'rsbuild:css', FONT_EXTENSIONS = [
2413
2413
  'woff',
2414
2414
  'woff2',
2415
2415
  'eot',
@@ -2665,7 +2665,7 @@ for(var __webpack_i__ in (()=>{
2665
2665
  }
2666
2666
  return {};
2667
2667
  }
2668
- let rspackMinVersion = '1.2.4', setNodeEnv = (env)=>{
2668
+ let rspackMinVersion = '1.5.0', setNodeEnv = (env)=>{
2669
2669
  process.env.NODE_ENV = env;
2670
2670
  }, isFunction = (func)=>'function' == typeof func, isObject = (obj)=>'[object Object]' === Object.prototype.toString.call(obj), isPlainObject = (obj)=>null !== obj && 'object' == typeof obj && Object.getPrototypeOf(obj) === Object.prototype, helpers_castArray = (arr)=>void 0 === arr ? [] : Array.isArray(arr) ? arr : [
2671
2671
  arr
@@ -3736,7 +3736,7 @@ ${section.body}` : section.body).join("\n\n"));
3736
3736
  async function createContext(options, userConfig) {
3737
3737
  let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
3738
3738
  return {
3739
- version: "1.5.0-rc.0",
3739
+ version: "1.5.0",
3740
3740
  rootPath,
3741
3741
  distPath: '',
3742
3742
  cachePath,
@@ -4606,40 +4606,34 @@ ${section.body}` : section.body).join("\n\n"));
4606
4606
  let val = len / 1000;
4607
4607
  return `${val.toFixed(val < 1 ? 2 : 1)} kB`;
4608
4608
  }, coloringAssetName = (assetName)=>JS_REGEX.test(assetName) ? picocolors_index_js_default().cyan(assetName) : assetName.endsWith('.css') ? picocolors_index_js_default().yellow(assetName) : assetName.endsWith('.html') ? picocolors_index_js_default().green(assetName) : picocolors_index_js_default().magenta(assetName), COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|md)$/i;
4609
- async function printFileSizes(options, stats, rootPath, environmentName) {
4610
- let logs = [], showTotal = !1 !== options.total, showDetail = !1 !== options.detail, exclude = options.exclude ?? excludeAsset;
4609
+ async function printFileSizes(options, stats, rootPath, distPath, environmentName) {
4610
+ let logs = [], showDetail = !1 !== options.detail, showTotal = !1 !== options.total;
4611
4611
  if (!showTotal && !showDetail) return logs;
4612
- let formatAsset = async (asset, distPath, distFolder)=>{
4612
+ let exclude = options.exclude ?? excludeAsset, relativeDistPath = external_node_path_default().relative(rootPath, distPath), formatAsset = async (asset)=>{
4613
4613
  let assetName, fileName = asset.name.split('?')[0], contents = await external_node_fs_default().promises.readFile(external_node_path_default().join(distPath, fileName)), size = Buffer.byteLength(contents), gzippedSize = options.compressed && (assetName = fileName, COMPRESSIBLE_REGEX.test(assetName)) ? await gzipSize(contents) : null, gzipSizeLabel = gzippedSize ? getAssetColor(gzippedSize)(calcFileSize(gzippedSize)) : null;
4614
4614
  return {
4615
4615
  size,
4616
- folder: external_node_path_default().join(distFolder, external_node_path_default().dirname(fileName)),
4616
+ folder: external_node_path_default().join(relativeDistPath, external_node_path_default().dirname(fileName)),
4617
4617
  name: external_node_path_default().basename(fileName),
4618
4618
  gzippedSize,
4619
4619
  sizeLabel: calcFileSize(size),
4620
4620
  gzipSizeLabel
4621
4621
  };
4622
- }, getAssets = async ()=>{
4623
- let distPath = stats.compilation.outputOptions.path;
4624
- if (!distPath) return [];
4625
- let filteredAssets = getAssetsFromStats(stats).filter((asset)=>{
4626
- let assetInfo = {
4627
- name: asset.name,
4628
- size: asset.size
4629
- };
4622
+ }, pickAssetInfo = (asset)=>({
4623
+ name: asset.name,
4624
+ size: asset.size
4625
+ }), getAssets = async ()=>Promise.all(getAssetsFromStats(stats).filter((asset)=>{
4626
+ let assetInfo = pickAssetInfo(asset);
4630
4627
  return !exclude(assetInfo) && (!options.include || options.include(assetInfo));
4631
- }), distFolder = external_node_path_default().relative(rootPath, distPath);
4632
- return Promise.all(filteredAssets.map((asset)=>formatAsset(asset, distPath, distFolder)));
4633
- }, assets = await getAssets();
4628
+ }).map((asset)=>formatAsset(asset))), assets = await getAssets();
4634
4629
  if (0 === assets.length) return logs;
4635
4630
  logs.push(''), assets.sort((a, b)=>a.size - b.size);
4636
4631
  let totalSize = 0, totalGzipSize = 0;
4637
4632
  for (let asset of (showTotal = showTotal && !(showDetail && 1 === assets.length), assets))totalSize += asset.size, options.compressed && (totalGzipSize += asset.gzippedSize ?? asset.size);
4638
4633
  let fileHeader = showDetail ? `File (${environmentName})` : '', totalSizeLabel = showTotal ? showDetail ? 'Total:' : `Total size (${environmentName}):` : '', totalSizeStr = showTotal ? calcFileSize(totalSize) : '', getCustomTotal = ()=>'function' == typeof options.total ? options.total({
4639
- assets: assets.map((asset)=>({
4640
- name: asset.name,
4641
- size: asset.size
4642
- })),
4634
+ environmentName,
4635
+ distPath: relativeDistPath,
4636
+ assets: assets.map((asset)=>pickAssetInfo(asset)),
4643
4637
  totalSize,
4644
4638
  totalGzipSize
4645
4639
  }) : null;
@@ -7873,7 +7867,7 @@ ${section.body}` : section.body).join("\n\n"));
7873
7867
  }, mergedConfig = !0 === printFileSize ? defaultConfig : {
7874
7868
  ...defaultConfig,
7875
7869
  ...printFileSize
7876
- }, statsLogs = await printFileSizes(mergedConfig, multiStats[index], api.context.rootPath, environment.name);
7870
+ }, statsLogs = await printFileSizes(mergedConfig, multiStats[index], api.context.rootPath, environment.distPath, environment.name);
7877
7871
  logs.push(...statsLogs);
7878
7872
  })).catch((err)=>{
7879
7873
  index_js_namespaceObject.logger.warn('Failed to print file size.'), index_js_namespaceObject.logger.warn(err);
@@ -9032,8 +9026,8 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
9032
9026
  let onStart = async ()=>{
9033
9027
  traceOutput = await applyProfile(api.context.rootPath, RSPACK_PROFILE, process.env.RSPACK_TRACE_LAYER, process.env.RSPACK_TRACE_OUTPUT);
9034
9028
  };
9035
- api.onBeforeBuild(({ isFirstCompile })=>{
9036
- isFirstCompile && onStart();
9029
+ api.onBeforeBuild(async ({ isFirstCompile })=>{
9030
+ isFirstCompile && await onStart();
9037
9031
  }), api.onBeforeStartDevServer(onStart), api.onExit(()=>{
9038
9032
  traceOutput && (rspack_rspack.experiments.globalTrace.cleanup(), index_js_namespaceObject.logger.info(`profile file saved to ${picocolors_index_js_default().cyan(traceOutput)}`));
9039
9033
  });
@@ -9403,12 +9397,12 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
9403
9397
  !function() {
9404
9398
  if (cli_argv.some((item)=>'--help' === item || '-h' === item)) return;
9405
9399
  let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
9406
- index_js_namespaceObject.logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''} Rsbuild v1.5.0-rc.0\n`);
9400
+ index_js_namespaceObject.logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''} Rsbuild v1.5.0\n`);
9407
9401
  }();
9408
9402
  try {
9409
9403
  !function() {
9410
9404
  let cli = ((name = "")=>new CAC(name))('rsbuild');
9411
- cli.help(), cli.version("1.5.0-rc.0"), 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 (jiti | native)', {
9405
+ cli.help(), cli.version("1.5.0"), 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 (jiti | native)', {
9412
9406
  default: 'jiti'
9413
9407
  }).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', {
9414
9408
  type: [
@@ -9466,7 +9460,7 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
9466
9460
  index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), index_js_namespaceObject.logger.error(err);
9467
9461
  }
9468
9462
  }
9469
- let src_version = "1.5.0-rc.0";
9463
+ let src_version = "1.5.0";
9470
9464
  })(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, exports.defaultAllowedOrigins = __webpack_exports__.defaultAllowedOrigins, exports.defineConfig = __webpack_exports__.defineConfig, exports.ensureAssetPrefix = __webpack_exports__.ensureAssetPrefix, exports.loadConfig = __webpack_exports__.loadConfig, exports.loadEnv = __webpack_exports__.loadEnv, exports.logger = __webpack_exports__.logger, exports.mergeRsbuildConfig = __webpack_exports__.mergeRsbuildConfig, exports.rspack = __webpack_exports__.rspack, exports.runCLI = __webpack_exports__.runCLI, exports.version = __webpack_exports__.version, __webpack_exports__)-1 === [
9471
9465
  "PLUGIN_CSS_NAME",
9472
9466
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -2219,7 +2219,7 @@ let constants_filename = (0, external_node_url_.fileURLToPath)(import.meta.url),
2219
2219
  node: [
2220
2220
  'node >= 16'
2221
2221
  ]
2222
- }, JS_REGEX = /\.(?:js|mjs|cjs|jsx)$/, SCRIPT_REGEX = /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/, CSS_REGEX = /\.css$/, RAW_QUERY_REGEX = /^\?raw$/, INLINE_QUERY_REGEX = /^\?inline$/, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, PLUGIN_SWC_NAME = 'rsbuild:swc', PLUGIN_CSS_NAME = 'rsbuild:css', FONT_EXTENSIONS = [
2222
+ }, JS_REGEX = /\.(?:js|mjs|cjs|jsx)$/, SCRIPT_REGEX = /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/, CSS_REGEX = /\.css$/, RAW_QUERY_REGEX = /[?&]raw(?:&|=|$)/, INLINE_QUERY_REGEX = /[?&]inline(?:&|=|$)/, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, PLUGIN_SWC_NAME = 'rsbuild:swc', PLUGIN_CSS_NAME = 'rsbuild:css', FONT_EXTENSIONS = [
2223
2223
  'woff',
2224
2224
  'woff2',
2225
2225
  'eot',
@@ -2472,7 +2472,7 @@ function formatStats(statsData, hasErrors) {
2472
2472
  }
2473
2473
  return {};
2474
2474
  }
2475
- let rspackMinVersion = '1.2.4', setNodeEnv = (env)=>{
2475
+ let rspackMinVersion = '1.5.0', setNodeEnv = (env)=>{
2476
2476
  process.env.NODE_ENV = env;
2477
2477
  }, isFunction = (func)=>'function' == typeof func, isObject = (obj)=>'[object Object]' === Object.prototype.toString.call(obj), isPlainObject = (obj)=>null !== obj && 'object' == typeof obj && Object.getPrototypeOf(obj) === Object.prototype, helpers_castArray = (arr)=>void 0 === arr ? [] : Array.isArray(arr) ? arr : [
2478
2478
  arr
@@ -3536,7 +3536,7 @@ async function updateEnvironmentContext(context, configs) {
3536
3536
  async function createContext(options, userConfig) {
3537
3537
  let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
3538
3538
  return {
3539
- version: "1.5.0-rc.0",
3539
+ version: "1.5.0",
3540
3540
  rootPath,
3541
3541
  distPath: '',
3542
3542
  cachePath,
@@ -4403,40 +4403,34 @@ let EXCLUDE_ASSET_REGEX = /\.(?:map|LICENSE\.txt|d\.ts)$/, excludeAsset = (asset
4403
4403
  let val = len / 1000;
4404
4404
  return `${val.toFixed(val < 1 ? 2 : 1)} kB`;
4405
4405
  }, coloringAssetName = (assetName)=>JS_REGEX.test(assetName) ? picocolors.cyan(assetName) : assetName.endsWith('.css') ? picocolors.yellow(assetName) : assetName.endsWith('.html') ? picocolors.green(assetName) : picocolors.magenta(assetName), COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|md)$/i;
4406
- async function printFileSizes(options, stats, rootPath, environmentName) {
4407
- let logs = [], showTotal = !1 !== options.total, showDetail = !1 !== options.detail, exclude = options.exclude ?? excludeAsset;
4406
+ async function printFileSizes(options, stats, rootPath, distPath, environmentName) {
4407
+ let logs = [], showDetail = !1 !== options.detail, showTotal = !1 !== options.total;
4408
4408
  if (!showTotal && !showDetail) return logs;
4409
- let formatAsset = async (asset, distPath, distFolder)=>{
4409
+ let exclude = options.exclude ?? excludeAsset, relativeDistPath = external_node_path_.default.relative(rootPath, distPath), formatAsset = async (asset)=>{
4410
4410
  let fileName = asset.name.split('?')[0], contents = await node_fs.promises.readFile(external_node_path_.default.join(distPath, fileName)), size = Buffer.byteLength(contents), gzippedSize = options.compressed && COMPRESSIBLE_REGEX.test(fileName) ? await gzipSize(contents) : null, gzipSizeLabel = gzippedSize ? getAssetColor(gzippedSize)(calcFileSize(gzippedSize)) : null;
4411
4411
  return {
4412
4412
  size,
4413
- folder: external_node_path_.default.join(distFolder, external_node_path_.default.dirname(fileName)),
4413
+ folder: external_node_path_.default.join(relativeDistPath, external_node_path_.default.dirname(fileName)),
4414
4414
  name: external_node_path_.default.basename(fileName),
4415
4415
  gzippedSize,
4416
4416
  sizeLabel: calcFileSize(size),
4417
4417
  gzipSizeLabel
4418
4418
  };
4419
- }, getAssets = async ()=>{
4420
- let distPath = stats.compilation.outputOptions.path;
4421
- if (!distPath) return [];
4422
- let filteredAssets = getAssetsFromStats(stats).filter((asset)=>{
4423
- let assetInfo = {
4424
- name: asset.name,
4425
- size: asset.size
4426
- };
4419
+ }, pickAssetInfo = (asset)=>({
4420
+ name: asset.name,
4421
+ size: asset.size
4422
+ }), getAssets = async ()=>Promise.all(getAssetsFromStats(stats).filter((asset)=>{
4423
+ let assetInfo = pickAssetInfo(asset);
4427
4424
  return !exclude(assetInfo) && (!options.include || options.include(assetInfo));
4428
- }), distFolder = external_node_path_.default.relative(rootPath, distPath);
4429
- return Promise.all(filteredAssets.map((asset)=>formatAsset(asset, distPath, distFolder)));
4430
- }, assets = await getAssets();
4425
+ }).map((asset)=>formatAsset(asset))), assets = await getAssets();
4431
4426
  if (0 === assets.length) return logs;
4432
4427
  logs.push(''), assets.sort((a, b)=>a.size - b.size);
4433
4428
  let totalSize = 0, totalGzipSize = 0;
4434
4429
  for (let asset of (showTotal = showTotal && !(showDetail && 1 === assets.length), assets))totalSize += asset.size, options.compressed && (totalGzipSize += asset.gzippedSize ?? asset.size);
4435
4430
  let fileHeader = showDetail ? `File (${environmentName})` : '', totalSizeLabel = showTotal ? showDetail ? 'Total:' : `Total size (${environmentName}):` : '', totalSizeStr = showTotal ? calcFileSize(totalSize) : '', getCustomTotal = ()=>'function' == typeof options.total ? options.total({
4436
- assets: assets.map((asset)=>({
4437
- name: asset.name,
4438
- size: asset.size
4439
- })),
4431
+ environmentName,
4432
+ distPath: relativeDistPath,
4433
+ assets: assets.map((asset)=>pickAssetInfo(asset)),
4440
4434
  totalSize,
4441
4435
  totalGzipSize
4442
4436
  }) : null;
@@ -7656,7 +7650,7 @@ async function createRsbuild(options = {}) {
7656
7650
  }, mergedConfig = !0 === printFileSize ? defaultConfig : {
7657
7651
  ...defaultConfig,
7658
7652
  ...printFileSize
7659
- }, statsLogs = await printFileSizes(mergedConfig, multiStats[index], api.context.rootPath, environment.name);
7653
+ }, statsLogs = await printFileSizes(mergedConfig, multiStats[index], api.context.rootPath, environment.distPath, environment.name);
7660
7654
  logs.push(...statsLogs);
7661
7655
  })).catch((err)=>{
7662
7656
  logger.warn('Failed to print file size.'), logger.warn(err);
@@ -8812,8 +8806,8 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
8812
8806
  let onStart = async ()=>{
8813
8807
  traceOutput = await applyProfile(api.context.rootPath, RSPACK_PROFILE, process.env.RSPACK_TRACE_LAYER, process.env.RSPACK_TRACE_OUTPUT);
8814
8808
  };
8815
- api.onBeforeBuild(({ isFirstCompile })=>{
8816
- isFirstCompile && onStart();
8809
+ api.onBeforeBuild(async ({ isFirstCompile })=>{
8810
+ isFirstCompile && await onStart();
8817
8811
  }), api.onBeforeStartDevServer(onStart), api.onExit(()=>{
8818
8812
  traceOutput && (rspack_rspack.experiments.globalTrace.cleanup(), logger.info(`profile file saved to ${picocolors.cyan(traceOutput)}`));
8819
8813
  });
@@ -9183,12 +9177,12 @@ function runCLI() {
9183
9177
  !function() {
9184
9178
  if (cli_argv.some((item)=>'--help' === item || '-h' === item)) return;
9185
9179
  let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
9186
- logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''} Rsbuild v1.5.0-rc.0\n`);
9180
+ logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''} Rsbuild v1.5.0\n`);
9187
9181
  }();
9188
9182
  try {
9189
9183
  !function() {
9190
9184
  let cli = ((name = "")=>new CAC(name))('rsbuild');
9191
- cli.help(), cli.version("1.5.0-rc.0"), 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 (jiti | native)', {
9185
+ cli.help(), cli.version("1.5.0"), 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 (jiti | native)', {
9192
9186
  default: 'jiti'
9193
9187
  }).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', {
9194
9188
  type: [
@@ -9246,5 +9240,5 @@ function runCLI() {
9246
9240
  logger.error('Failed to start Rsbuild CLI.'), logger.error(err);
9247
9241
  }
9248
9242
  }
9249
- let src_version = "1.5.0-rc.0";
9243
+ let src_version = "1.5.0";
9250
9244
  export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig_loadConfig as loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack_rspack as rspack, runCLI, src_version as version };
@@ -28,7 +28,15 @@ export declare const DEFAULT_BROWSERSLIST: Record<string, string[]>;
28
28
  export declare const JS_REGEX: RegExp;
29
29
  export declare const SCRIPT_REGEX: RegExp;
30
30
  export declare const CSS_REGEX: RegExp;
31
+ /**
32
+ * Regular expression to match the 'raw' query parameter.
33
+ * Matches patterns like: `?raw`, `?raw&other=value`, `?other=value&raw`, `?raw=value`
34
+ */
31
35
  export declare const RAW_QUERY_REGEX: RegExp;
36
+ /**
37
+ * Regular expression to match the 'inline' query parameter.
38
+ * Matches patterns like: `?inline`, `?inline&other=value`, `?other=value&inline`, `?inline=value`
39
+ */
32
40
  export declare const INLINE_QUERY_REGEX: RegExp;
33
41
  export declare const NODE_MODULES_REGEX: RegExp;
34
42
  export declare const PLUGIN_SWC_NAME = "rsbuild:swc";
@@ -5,7 +5,7 @@ export * from './fs';
5
5
  export * from './path';
6
6
  export * from './stats';
7
7
  export { color, RspackChain };
8
- export declare const rspackMinVersion = "1.2.4";
8
+ export declare const rspackMinVersion = "1.5.0";
9
9
  export declare const getNodeEnv: () => string;
10
10
  export declare const setNodeEnv: (env: string) => void;
11
11
  export declare const isFunction: (func: unknown) => func is (...args: any[]) => any;
@@ -471,6 +471,8 @@ export type PrintFileSizeOptions = {
471
471
  * @default true
472
472
  */
473
473
  total?: boolean | ((params: {
474
+ environmentName: string;
475
+ distPath: string;
474
476
  assets: PrintFileSizeAsset[];
475
477
  totalSize: number;
476
478
  totalGzipSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.5.0-rc.0",
3
+ "version": "1.5.0",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "bugs": {
@@ -46,14 +46,14 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.5.0-beta.1",
49
+ "@rspack/core": "1.5.0",
50
50
  "@rspack/lite-tapable": "~1.0.1",
51
51
  "@swc/helpers": "^0.5.17",
52
- "core-js": "~3.45.0",
52
+ "core-js": "~3.45.1",
53
53
  "jiti": "^2.5.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@rslib/core": "0.12.1",
56
+ "@rslib/core": "0.12.2",
57
57
  "@types/connect": "3.4.38",
58
58
  "@types/cors": "^2.8.19",
59
59
  "@types/node": "^22.17.2",
@@ -88,7 +88,7 @@
88
88
  "style-loader": "3.3.4",
89
89
  "tinyglobby": "^0.2.14",
90
90
  "typescript": "^5.9.2",
91
- "webpack": "^5.101.2",
91
+ "webpack": "^5.101.3",
92
92
  "webpack-bundle-analyzer": "^4.10.2",
93
93
  "webpack-merge": "6.0.1",
94
94
  "ws": "^8.18.3"