@rsbuild/core 0.7.10 → 1.0.0-alpha.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.
Files changed (58) hide show
  1. package/compiled/css-loader/index.js +46 -46
  2. package/compiled/launch-editor-middleware/index.js +58 -22
  3. package/compiled/launch-editor-middleware/package.json +1 -1
  4. package/compiled/postcss-load-config/index.js +10 -10
  5. package/compiled/postcss-loader/index.js +43 -43
  6. package/compiled/rspack-manifest-plugin/index.js +4 -4
  7. package/compiled/style-loader/index.js +10 -10
  8. package/compiled/webpack-dev-middleware/index.js +31 -31
  9. package/dist/client/hmr.js +1 -3
  10. package/dist/index.cjs +1911 -1015
  11. package/dist/index.js +1809 -974
  12. package/dist-types/cli/init.d.ts +2 -1
  13. package/dist-types/client/hmr.d.ts +0 -4
  14. package/dist-types/config.d.ts +25 -6
  15. package/dist-types/configChain.d.ts +1 -1
  16. package/dist-types/constants.d.ts +6 -4
  17. package/dist-types/createContext.d.ts +6 -3
  18. package/dist-types/createRsbuild.d.ts +1 -5
  19. package/dist-types/helpers/path.d.ts +9 -0
  20. package/dist-types/helpers.d.ts +21 -19
  21. package/dist-types/index.d.ts +4 -3
  22. package/dist-types/initHooks.d.ts +2 -1
  23. package/dist-types/initPlugins.d.ts +3 -3
  24. package/dist-types/internal.d.ts +2 -3
  25. package/dist-types/mergeConfig.d.ts +1 -1
  26. package/dist-types/plugins/css.d.ts +3 -4
  27. package/dist-types/plugins/entry.d.ts +1 -3
  28. package/dist-types/plugins/html.d.ts +2 -11
  29. package/dist-types/plugins/minimize.d.ts +4 -4
  30. package/dist-types/plugins/rspackProfile.d.ts +0 -3
  31. package/dist-types/plugins/swc.d.ts +2 -2
  32. package/dist-types/provider/inspectConfig.d.ts +1 -1
  33. package/dist-types/provider/rspackConfig.d.ts +4 -3
  34. package/dist-types/reduceConfigs.d.ts +65 -0
  35. package/dist-types/rspack/HtmlBasicPlugin.d.ts +3 -6
  36. package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +7 -24
  37. package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +1 -1
  38. package/dist-types/rspack/preload/helpers/extractChunks.d.ts +4 -1
  39. package/dist-types/server/compilerDevMiddleware.d.ts +0 -2
  40. package/dist-types/server/devMiddleware.d.ts +5 -11
  41. package/dist-types/server/devServer.d.ts +3 -1
  42. package/dist-types/server/environment.d.ts +7 -0
  43. package/dist-types/server/getDevMiddlewares.d.ts +2 -1
  44. package/dist-types/server/helper.d.ts +4 -13
  45. package/dist-types/server/httpServer.d.ts +3 -4
  46. package/dist-types/server/prodServer.d.ts +1 -3
  47. package/dist-types/server/proxy.d.ts +1 -2
  48. package/dist-types/server/restart.d.ts +1 -1
  49. package/dist-types/server/runner/asModule.d.ts +2 -0
  50. package/dist-types/server/runner/basic.d.ts +25 -0
  51. package/dist-types/server/runner/cjs.d.ts +10 -0
  52. package/dist-types/server/runner/esm.d.ts +6 -0
  53. package/dist-types/server/runner/index.d.ts +8 -0
  54. package/dist-types/server/runner/type.d.ts +36 -0
  55. package/dist-types/server/socketServer.d.ts +1 -4
  56. package/dist-types/types.d.ts +4 -2
  57. package/package.json +10 -10
  58. package/types.d.ts +0 -4
@@ -1792,7 +1792,7 @@ module.exports = {
1792
1792
 
1793
1793
  /***/ }),
1794
1794
 
1795
- /***/ 1506:
1795
+ /***/ 7581:
1796
1796
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
1797
1797
 
1798
1798
  "use strict";
@@ -1804,10 +1804,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
1804
1804
  exports.Explorer = void 0;
1805
1805
  const promises_1 = __importDefault(__nccwpck_require__(3292));
1806
1806
  const path_1 = __importDefault(__nccwpck_require__(1017));
1807
- const defaults_1 = __nccwpck_require__(4694);
1808
- const ExplorerBase_js_1 = __nccwpck_require__(3829);
1809
- const merge_1 = __nccwpck_require__(7779);
1810
- const util_js_1 = __nccwpck_require__(2281);
1807
+ const defaults_1 = __nccwpck_require__(7557);
1808
+ const ExplorerBase_js_1 = __nccwpck_require__(9476);
1809
+ const merge_1 = __nccwpck_require__(9790);
1810
+ const util_js_1 = __nccwpck_require__(3565);
1811
1811
  /**
1812
1812
  * @internal
1813
1813
  */
@@ -1969,7 +1969,7 @@ exports.Explorer = Explorer;
1969
1969
 
1970
1970
  /***/ }),
1971
1971
 
1972
- /***/ 3829:
1972
+ /***/ 9476:
1973
1973
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
1974
1974
 
1975
1975
  "use strict";
@@ -1982,7 +1982,7 @@ exports.getExtensionDescription = exports.ExplorerBase = void 0;
1982
1982
  const env_paths_1 = __importDefault(__nccwpck_require__(3881));
1983
1983
  const os_1 = __importDefault(__nccwpck_require__(2037));
1984
1984
  const path_1 = __importDefault(__nccwpck_require__(1017));
1985
- const util_js_1 = __nccwpck_require__(2281);
1985
+ const util_js_1 = __nccwpck_require__(3565);
1986
1986
  /**
1987
1987
  * @internal
1988
1988
  */
@@ -2102,7 +2102,7 @@ exports.getExtensionDescription = getExtensionDescription;
2102
2102
 
2103
2103
  /***/ }),
2104
2104
 
2105
- /***/ 7419:
2105
+ /***/ 54:
2106
2106
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2107
2107
 
2108
2108
  "use strict";
@@ -2114,10 +2114,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2114
2114
  exports.ExplorerSync = void 0;
2115
2115
  const fs_1 = __importDefault(__nccwpck_require__(7147));
2116
2116
  const path_1 = __importDefault(__nccwpck_require__(1017));
2117
- const defaults_1 = __nccwpck_require__(4694);
2118
- const ExplorerBase_js_1 = __nccwpck_require__(3829);
2119
- const merge_1 = __nccwpck_require__(7779);
2120
- const util_js_1 = __nccwpck_require__(2281);
2117
+ const defaults_1 = __nccwpck_require__(7557);
2118
+ const ExplorerBase_js_1 = __nccwpck_require__(9476);
2119
+ const merge_1 = __nccwpck_require__(9790);
2120
+ const util_js_1 = __nccwpck_require__(3565);
2121
2121
  /**
2122
2122
  * @internal
2123
2123
  */
@@ -2293,14 +2293,14 @@ exports.ExplorerSync = ExplorerSync;
2293
2293
 
2294
2294
  /***/ }),
2295
2295
 
2296
- /***/ 4694:
2296
+ /***/ 7557:
2297
2297
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2298
2298
 
2299
2299
  "use strict";
2300
2300
 
2301
2301
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2302
2302
  exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
2303
- const loaders_1 = __nccwpck_require__(4569);
2303
+ const loaders_1 = __nccwpck_require__(1002);
2304
2304
  function getDefaultSearchPlaces(moduleName) {
2305
2305
  return [
2306
2306
  'package.json',
@@ -2405,23 +2405,23 @@ exports.defaultLoadersSync = Object.freeze({
2405
2405
 
2406
2406
  /***/ }),
2407
2407
 
2408
- /***/ 2525:
2408
+ /***/ 8825:
2409
2409
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2410
2410
 
2411
2411
  "use strict";
2412
2412
 
2413
2413
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2414
2414
  exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
2415
- const defaults_1 = __nccwpck_require__(4694);
2415
+ const defaults_1 = __nccwpck_require__(7557);
2416
2416
  Object.defineProperty(exports, "defaultLoaders", ({ enumerable: true, get: function () { return defaults_1.defaultLoaders; } }));
2417
2417
  Object.defineProperty(exports, "defaultLoadersSync", ({ enumerable: true, get: function () { return defaults_1.defaultLoadersSync; } }));
2418
2418
  Object.defineProperty(exports, "getDefaultSearchPlaces", ({ enumerable: true, get: function () { return defaults_1.getDefaultSearchPlaces; } }));
2419
2419
  Object.defineProperty(exports, "getDefaultSearchPlacesSync", ({ enumerable: true, get: function () { return defaults_1.getDefaultSearchPlacesSync; } }));
2420
2420
  Object.defineProperty(exports, "globalConfigSearchPlaces", ({ enumerable: true, get: function () { return defaults_1.globalConfigSearchPlaces; } }));
2421
2421
  Object.defineProperty(exports, "globalConfigSearchPlacesSync", ({ enumerable: true, get: function () { return defaults_1.globalConfigSearchPlacesSync; } }));
2422
- const Explorer_js_1 = __nccwpck_require__(1506);
2423
- const ExplorerSync_js_1 = __nccwpck_require__(7419);
2424
- const util_1 = __nccwpck_require__(2281);
2422
+ const Explorer_js_1 = __nccwpck_require__(7581);
2423
+ const ExplorerSync_js_1 = __nccwpck_require__(54);
2424
+ const util_1 = __nccwpck_require__(3565);
2425
2425
  const identity = function identity(x) {
2426
2426
  return x;
2427
2427
  };
@@ -2560,7 +2560,7 @@ exports.cosmiconfigSync = cosmiconfigSync;
2560
2560
 
2561
2561
  /***/ }),
2562
2562
 
2563
- /***/ 4569:
2563
+ /***/ 1002:
2564
2564
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2565
2565
 
2566
2566
  "use strict";
@@ -2586,7 +2586,7 @@ exports.loadJsSync = loadJsSync;
2586
2586
  const loadJs = async function loadJs(filepath) {
2587
2587
  try {
2588
2588
  const { href } = (0, url_1.pathToFileURL)(filepath);
2589
- return (await __nccwpck_require__(6920)(href)).default;
2589
+ return (await __nccwpck_require__(3740)(href)).default;
2590
2590
  }
2591
2591
  catch (error) {
2592
2592
  try {
@@ -2715,7 +2715,7 @@ function resolveTsConfig(directory) {
2715
2715
 
2716
2716
  /***/ }),
2717
2717
 
2718
- /***/ 7779:
2718
+ /***/ 9790:
2719
2719
  /***/ ((__unused_webpack_module, exports) => {
2720
2720
 
2721
2721
  "use strict";
@@ -2762,7 +2762,7 @@ exports.mergeAll = mergeAll;
2762
2762
 
2763
2763
  /***/ }),
2764
2764
 
2765
- /***/ 2281:
2765
+ /***/ 3565:
2766
2766
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2767
2767
 
2768
2768
  "use strict";
@@ -7709,17 +7709,17 @@ module.exports.createColors = createColors
7709
7709
 
7710
7710
  /***/ }),
7711
7711
 
7712
- /***/ 2720:
7712
+ /***/ 6741:
7713
7713
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
7714
7714
 
7715
7715
  "use strict";
7716
7716
 
7717
7717
 
7718
- module.exports = __nccwpck_require__(3726)["default"];
7718
+ module.exports = __nccwpck_require__(9557)["default"];
7719
7719
 
7720
7720
  /***/ }),
7721
7721
 
7722
- /***/ 3726:
7722
+ /***/ 9557:
7723
7723
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7724
7724
 
7725
7725
  "use strict";
@@ -7731,9 +7731,9 @@ __webpack_unused_export__ = ({
7731
7731
  });
7732
7732
  exports["default"] = loader;
7733
7733
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
7734
- var _package = _interopRequireDefault(__nccwpck_require__(5446));
7735
- var _options = _interopRequireDefault(__nccwpck_require__(3493));
7736
- var _utils = __nccwpck_require__(4345);
7734
+ var _package = _interopRequireDefault(__nccwpck_require__(7972));
7735
+ var _options = _interopRequireDefault(__nccwpck_require__(9758));
7736
+ var _utils = __nccwpck_require__(2620);
7737
7737
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7738
7738
  let hasExplicitDependencyOnPostCSS = false;
7739
7739
 
@@ -7899,7 +7899,7 @@ async function loader(content, sourceMap, meta) {
7899
7899
 
7900
7900
  /***/ }),
7901
7901
 
7902
- /***/ 4345:
7902
+ /***/ 2620:
7903
7903
  /***/ ((module, exports, __nccwpck_require__) => {
7904
7904
 
7905
7905
  "use strict";
@@ -7921,7 +7921,7 @@ exports.warningFactory = warningFactory;
7921
7921
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
7922
7922
  var _url = _interopRequireDefault(__nccwpck_require__(7310));
7923
7923
  var _module = _interopRequireDefault(__nccwpck_require__(8188));
7924
- var _cosmiconfig = __nccwpck_require__(2525);
7924
+ var _cosmiconfig = __nccwpck_require__(8825);
7925
7925
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7926
7926
  const parentModule = module;
7927
7927
  const stat = (inputFileSystem, filePath) => new Promise((resolve, reject) => {
@@ -8566,7 +8566,7 @@ module.exports = {
8566
8566
 
8567
8567
  /***/ }),
8568
8568
 
8569
- /***/ 6920:
8569
+ /***/ 3740:
8570
8570
  /***/ ((module) => {
8571
8571
 
8572
8572
  function webpackEmptyAsyncContext(req) {
@@ -8580,7 +8580,7 @@ function webpackEmptyAsyncContext(req) {
8580
8580
  }
8581
8581
  webpackEmptyAsyncContext.keys = () => ([]);
8582
8582
  webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
8583
- webpackEmptyAsyncContext.id = 6920;
8583
+ webpackEmptyAsyncContext.id = 3740;
8584
8584
  module.exports = webpackEmptyAsyncContext;
8585
8585
 
8586
8586
  /***/ }),
@@ -8837,7 +8837,7 @@ function _default(rawLines, lineNumber, colNumber, opts = {}) {
8837
8837
 
8838
8838
  /***/ }),
8839
8839
 
8840
- /***/ 4707:
8840
+ /***/ 3118:
8841
8841
  /***/ ((__unused_webpack_module, exports) => {
8842
8842
 
8843
8843
  "use strict";
@@ -8915,7 +8915,7 @@ function isIdentifierName(name) {
8915
8915
 
8916
8916
  /***/ }),
8917
8917
 
8918
- /***/ 6764:
8918
+ /***/ 8394:
8919
8919
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8920
8920
 
8921
8921
  "use strict";
@@ -8972,15 +8972,15 @@ Object.defineProperty(exports, "isStrictReservedWord", ({
8972
8972
  return _keyword.isStrictReservedWord;
8973
8973
  }
8974
8974
  }));
8975
- var _identifier = __nccwpck_require__(4707);
8976
- var _keyword = __nccwpck_require__(2727);
8975
+ var _identifier = __nccwpck_require__(3118);
8976
+ var _keyword = __nccwpck_require__(4654);
8977
8977
 
8978
8978
  //# sourceMappingURL=index.js.map
8979
8979
 
8980
8980
 
8981
8981
  /***/ }),
8982
8982
 
8983
- /***/ 2727:
8983
+ /***/ 4654:
8984
8984
  /***/ ((__unused_webpack_module, exports) => {
8985
8985
 
8986
8986
  "use strict";
@@ -9035,7 +9035,7 @@ Object.defineProperty(exports, "__esModule", ({
9035
9035
  exports["default"] = highlight;
9036
9036
  exports.shouldHighlight = shouldHighlight;
9037
9037
  var _jsTokens = __nccwpck_require__(1192);
9038
- var _helperValidatorIdentifier = __nccwpck_require__(6764);
9038
+ var _helperValidatorIdentifier = __nccwpck_require__(8394);
9039
9039
  var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
9040
9040
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9041
9041
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -9150,7 +9150,7 @@ function highlight(code, options = {}) {
9150
9150
 
9151
9151
  /***/ }),
9152
9152
 
9153
- /***/ 3493:
9153
+ /***/ 9758:
9154
9154
  /***/ ((module) => {
9155
9155
 
9156
9156
  "use strict";
@@ -9158,11 +9158,11 @@ module.exports = JSON.parse('{"title":"PostCSS Loader options","type":"object","
9158
9158
 
9159
9159
  /***/ }),
9160
9160
 
9161
- /***/ 5446:
9161
+ /***/ 7972:
9162
9162
  /***/ ((module) => {
9163
9163
 
9164
9164
  "use strict";
9165
- module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.0","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}');
9165
+ module.exports = JSON.parse('{"name":"postcss","version":"8.4.39","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}');
9166
9166
 
9167
9167
  /***/ })
9168
9168
 
@@ -9278,7 +9278,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":
9278
9278
  /******/ // startup
9279
9279
  /******/ // Load entry module and return exports
9280
9280
  /******/ // This entry module used 'module' so it can't be inlined
9281
- /******/ var __webpack_exports__ = __nccwpck_require__(2720);
9281
+ /******/ var __webpack_exports__ = __nccwpck_require__(6741);
9282
9282
  /******/ module.exports = __webpack_exports__;
9283
9283
  /******/
9284
9284
  /******/ })()
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 5601:
4
+ /***/ 6927:
5
5
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
6
6
 
7
7
  "use strict";
@@ -105,7 +105,7 @@ exports.transformFiles = transformFiles;
105
105
 
106
106
  /***/ }),
107
107
 
108
- /***/ 2836:
108
+ /***/ 3173:
109
109
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
110
110
 
111
111
  "use strict";
@@ -116,7 +116,7 @@ const fs_1 = __nccwpck_require__(7147);
116
116
  const path_1 = __nccwpck_require__(1017);
117
117
  const tapable_1 = __nccwpck_require__(4260);
118
118
  const webpack_sources_1 = __nccwpck_require__(5433);
119
- const helpers_1 = __nccwpck_require__(5601);
119
+ const helpers_1 = __nccwpck_require__(6927);
120
120
  const compilerHookMap = new WeakMap();
121
121
  const getCompilerHooks = (compiler) => {
122
122
  let hooks = compilerHookMap.get(compiler);
@@ -7751,7 +7751,7 @@ var exports = __webpack_exports__;
7751
7751
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7752
7752
  exports.RspackManifestPlugin = exports.WebpackManifestPlugin = exports.getCompilerHooks = void 0;
7753
7753
  const path_1 = __nccwpck_require__(1017);
7754
- const hooks_1 = __nccwpck_require__(2836);
7754
+ const hooks_1 = __nccwpck_require__(3173);
7755
7755
  Object.defineProperty(exports, "getCompilerHooks", ({ enumerable: true, get: function () { return hooks_1.getCompilerHooks; } }));
7756
7756
  const emitCountMap = new Map();
7757
7757
  const defaults = {
@@ -2,17 +2,17 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 269:
5
+ /***/ 142:
6
6
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
7
7
 
8
8
 
9
9
 
10
- const loader = __nccwpck_require__(457);
10
+ const loader = __nccwpck_require__(410);
11
11
  module.exports = loader.default;
12
12
 
13
13
  /***/ }),
14
14
 
15
- /***/ 457:
15
+ /***/ 410:
16
16
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
17
17
 
18
18
 
@@ -22,8 +22,8 @@ Object.defineProperty(exports, "__esModule", ({
22
22
  }));
23
23
  exports["default"] = void 0;
24
24
  var _path = _interopRequireDefault(__nccwpck_require__(17));
25
- var _utils = __nccwpck_require__(551);
26
- var _options = _interopRequireDefault(__nccwpck_require__(156));
25
+ var _utils = __nccwpck_require__(272);
26
+ var _options = _interopRequireDefault(__nccwpck_require__(438));
27
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
28
  // eslint-disable-next-line consistent-return
29
29
  const loader = function loader(content) {
@@ -170,7 +170,7 @@ var _default = exports["default"] = loader;
170
170
 
171
171
  /***/ }),
172
172
 
173
- /***/ 522:
173
+ /***/ 597:
174
174
  /***/ ((module) => {
175
175
 
176
176
 
@@ -204,7 +204,7 @@ module.exports = isEqualLocals;
204
204
 
205
205
  /***/ }),
206
206
 
207
- /***/ 551:
207
+ /***/ 272:
208
208
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
209
209
 
210
210
 
@@ -231,7 +231,7 @@ exports.getStyleTagTransformFnCode = getStyleTagTransformFnCode;
231
231
  exports.getdomAPI = getdomAPI;
232
232
  exports.stringifyRequest = stringifyRequest;
233
233
  var _path = _interopRequireDefault(__nccwpck_require__(17));
234
- var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(522));
234
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(597));
235
235
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
236
236
  const matchRelativePath = /^\.\.?[/\\]/;
237
237
  function isAbsolutePath(str) {
@@ -457,7 +457,7 @@ module.exports = require("path");
457
457
 
458
458
  /***/ }),
459
459
 
460
- /***/ 156:
460
+ /***/ 438:
461
461
  /***/ ((module) => {
462
462
 
463
463
  module.exports = JSON.parse('{"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}');
@@ -506,7 +506,7 @@ module.exports = JSON.parse('{"title":"Style Loader options","type":"object","pr
506
506
  /******/ // startup
507
507
  /******/ // Load entry module and return exports
508
508
  /******/ // This entry module is referenced by other modules so it can't be inlined
509
- /******/ var __webpack_exports__ = __nccwpck_require__(269);
509
+ /******/ var __webpack_exports__ = __nccwpck_require__(142);
510
510
  /******/ module.exports = __webpack_exports__;
511
511
  /******/
512
512
  /******/ })()
@@ -4665,7 +4665,7 @@ function sortByRangeStart (a, b) {
4665
4665
 
4666
4666
  /***/ }),
4667
4667
 
4668
- /***/ 5085:
4668
+ /***/ 5441:
4669
4669
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4670
4670
 
4671
4671
  "use strict";
@@ -4675,13 +4675,13 @@ const {
4675
4675
  validate
4676
4676
  } = __nccwpck_require__(5014);
4677
4677
  const mime = __nccwpck_require__(588);
4678
- const middleware = __nccwpck_require__(1300);
4679
- const getFilenameFromUrl = __nccwpck_require__(8733);
4680
- const setupHooks = __nccwpck_require__(1423);
4681
- const setupWriteToDisk = __nccwpck_require__(982);
4682
- const setupOutputFileSystem = __nccwpck_require__(2460);
4683
- const ready = __nccwpck_require__(6510);
4684
- const schema = __nccwpck_require__(6987);
4678
+ const middleware = __nccwpck_require__(6331);
4679
+ const getFilenameFromUrl = __nccwpck_require__(1244);
4680
+ const setupHooks = __nccwpck_require__(4929);
4681
+ const setupWriteToDisk = __nccwpck_require__(4631);
4682
+ const setupOutputFileSystem = __nccwpck_require__(9686);
4683
+ const ready = __nccwpck_require__(1214);
4684
+ const schema = __nccwpck_require__(5881);
4685
4685
  const noop = () => {};
4686
4686
 
4687
4687
  /** @typedef {import("schema-utils/declarations/validate").Schema} Schema */
@@ -5078,7 +5078,7 @@ module.exports = wdm;
5078
5078
 
5079
5079
  /***/ }),
5080
5080
 
5081
- /***/ 1300:
5081
+ /***/ 6331:
5082
5082
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
5083
5083
 
5084
5084
  "use strict";
@@ -5087,16 +5087,16 @@ module.exports = wdm;
5087
5087
  const path = __nccwpck_require__(1017);
5088
5088
  const mime = __nccwpck_require__(588);
5089
5089
  const onFinishedStream = __nccwpck_require__(8772);
5090
- const getFilenameFromUrl = __nccwpck_require__(8733);
5090
+ const getFilenameFromUrl = __nccwpck_require__(1244);
5091
5091
  const {
5092
5092
  setStatusCode,
5093
5093
  send,
5094
5094
  pipe,
5095
5095
  createReadStreamOrReadFileSync
5096
- } = __nccwpck_require__(9993);
5097
- const ready = __nccwpck_require__(6510);
5098
- const parseTokenList = __nccwpck_require__(1035);
5099
- const memorize = __nccwpck_require__(6916);
5096
+ } = __nccwpck_require__(3217);
5097
+ const ready = __nccwpck_require__(1214);
5098
+ const parseTokenList = __nccwpck_require__(2663);
5099
+ const memorize = __nccwpck_require__(4021);
5100
5100
 
5101
5101
  /** @typedef {import("./index.js").NextFunction} NextFunction */
5102
5102
  /** @typedef {import("./index.js").IncomingMessage} IncomingMessage */
@@ -5229,7 +5229,7 @@ function wrapper(context) {
5229
5229
  */
5230
5230
  function sendError(status, options) {
5231
5231
  // eslint-disable-next-line global-require
5232
- const escapeHtml = __nccwpck_require__(2800);
5232
+ const escapeHtml = __nccwpck_require__(164);
5233
5233
  const content = statuses[status] || String(status);
5234
5234
  let document = Buffer.from(`<!DOCTYPE html>
5235
5235
  <html lang="en">
@@ -5543,7 +5543,7 @@ function wrapper(context) {
5543
5543
  }
5544
5544
  if (value) {
5545
5545
  // eslint-disable-next-line global-require
5546
- const result = await __nccwpck_require__(2860)(value);
5546
+ const result = await __nccwpck_require__(5785)(value);
5547
5547
 
5548
5548
  // Because we already read stream, we can cache buffer to avoid extra read from fs
5549
5549
  if (result.buffer) {
@@ -5691,7 +5691,7 @@ module.exports = wrapper;
5691
5691
 
5692
5692
  /***/ }),
5693
5693
 
5694
- /***/ 9993:
5694
+ /***/ 3217:
5695
5695
  /***/ ((module) => {
5696
5696
 
5697
5697
  "use strict";
@@ -5801,7 +5801,7 @@ module.exports = {
5801
5801
 
5802
5802
  /***/ }),
5803
5803
 
5804
- /***/ 2800:
5804
+ /***/ 164:
5805
5805
  /***/ ((module) => {
5806
5806
 
5807
5807
  "use strict";
@@ -5863,7 +5863,7 @@ module.exports = escapeHtml;
5863
5863
 
5864
5864
  /***/ }),
5865
5865
 
5866
- /***/ 2860:
5866
+ /***/ 5785:
5867
5867
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
5868
5868
 
5869
5869
  "use strict";
@@ -5948,7 +5948,7 @@ module.exports = etag;
5948
5948
 
5949
5949
  /***/ }),
5950
5950
 
5951
- /***/ 8733:
5951
+ /***/ 1244:
5952
5952
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
5953
5953
 
5954
5954
  "use strict";
@@ -5959,8 +5959,8 @@ const {
5959
5959
  parse
5960
5960
  } = __nccwpck_require__(7310);
5961
5961
  const querystring = __nccwpck_require__(3477);
5962
- const getPaths = __nccwpck_require__(2697);
5963
- const memorize = __nccwpck_require__(6916);
5962
+ const getPaths = __nccwpck_require__(7204);
5963
+ const memorize = __nccwpck_require__(4021);
5964
5964
 
5965
5965
  /** @typedef {import("../index.js").IncomingMessage} IncomingMessage */
5966
5966
  /** @typedef {import("../index.js").ServerResponse} ServerResponse */
@@ -6096,7 +6096,7 @@ module.exports = getFilenameFromUrl;
6096
6096
 
6097
6097
  /***/ }),
6098
6098
 
6099
- /***/ 2697:
6099
+ /***/ 7204:
6100
6100
  /***/ ((module) => {
6101
6101
 
6102
6102
  "use strict";
@@ -6139,7 +6139,7 @@ module.exports = getPaths;
6139
6139
 
6140
6140
  /***/ }),
6141
6141
 
6142
- /***/ 6916:
6142
+ /***/ 4021:
6143
6143
  /***/ ((module) => {
6144
6144
 
6145
6145
  "use strict";
@@ -6185,7 +6185,7 @@ module.exports = memorize;
6185
6185
 
6186
6186
  /***/ }),
6187
6187
 
6188
- /***/ 1035:
6188
+ /***/ 2663:
6189
6189
  /***/ ((module) => {
6190
6190
 
6191
6191
  "use strict";
@@ -6234,7 +6234,7 @@ module.exports = parseTokenList;
6234
6234
 
6235
6235
  /***/ }),
6236
6236
 
6237
- /***/ 6510:
6237
+ /***/ 1214:
6238
6238
  /***/ ((module) => {
6239
6239
 
6240
6240
  "use strict";
@@ -6264,7 +6264,7 @@ module.exports = ready;
6264
6264
 
6265
6265
  /***/ }),
6266
6266
 
6267
- /***/ 1423:
6267
+ /***/ 4929:
6268
6268
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6269
6269
 
6270
6270
  "use strict";
@@ -6428,7 +6428,7 @@ module.exports = setupHooks;
6428
6428
 
6429
6429
  /***/ }),
6430
6430
 
6431
- /***/ 2460:
6431
+ /***/ 9686:
6432
6432
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6433
6433
 
6434
6434
  "use strict";
@@ -6489,7 +6489,7 @@ module.exports = setupOutputFileSystem;
6489
6489
 
6490
6490
  /***/ }),
6491
6491
 
6492
- /***/ 982:
6492
+ /***/ 4631:
6493
6493
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6494
6494
 
6495
6495
  "use strict";
@@ -6909,7 +6909,7 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":"
6909
6909
 
6910
6910
  /***/ }),
6911
6911
 
6912
- /***/ 6987:
6912
+ /***/ 5881:
6913
6913
  /***/ ((module) => {
6914
6914
 
6915
6915
  "use strict";
@@ -6959,7 +6959,7 @@ module.exports = JSON.parse('{"type":"object","properties":{"mimeTypes":{"descri
6959
6959
  /******/ // startup
6960
6960
  /******/ // Load entry module and return exports
6961
6961
  /******/ // This entry module is referenced by other modules so it can't be inlined
6962
- /******/ var __webpack_exports__ = __nccwpck_require__(5085);
6962
+ /******/ var __webpack_exports__ = __nccwpck_require__(5441);
6963
6963
  /******/ module.exports = __webpack_exports__;
6964
6964
  /******/
6965
6965
  /******/ })()
@@ -66,7 +66,6 @@ function formatStatsMessages(stats, verbose) {
66
66
  }
67
67
 
68
68
  // src/client/hmr.ts
69
- var HMR_SOCK_PATH = "/rsbuild-hmr";
70
69
  function formatURL({ port, protocol, hostname, pathname }) {
71
70
  if (typeof URL !== "undefined") {
72
71
  const url = new URL("http://localhost");
@@ -86,7 +85,7 @@ function getSocketUrl(urlParts) {
86
85
  protocol: protocol || (location.protocol === "https:" ? "wss" : "ws"),
87
86
  hostname: host || location.hostname,
88
87
  port: port || location.port,
89
- pathname: path || HMR_SOCK_PATH
88
+ pathname: path || "/rsbuild-hmr"
90
89
  });
91
90
  }
92
91
  var isFirstCompilation = true;
@@ -259,6 +258,5 @@ function reloadPage() {
259
258
  }
260
259
  connect();
261
260
  export {
262
- HMR_SOCK_PATH,
263
261
  registerOverlay
264
262
  };