@rsbuild/core 1.5.12 → 1.5.13

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 (47) hide show
  1. package/compiled/@jridgewell/remapping/index.js +5 -848
  2. package/compiled/@jridgewell/trace-mapping/index.d.ts +194 -0
  3. package/compiled/@jridgewell/trace-mapping/index.js +1408 -0
  4. package/compiled/@jridgewell/trace-mapping/license +19 -0
  5. package/compiled/@jridgewell/trace-mapping/package.json +1 -0
  6. package/compiled/css-loader/index.js +22 -22
  7. package/compiled/html-rspack-plugin/index.js +14 -14
  8. package/compiled/launch-editor-middleware/index.js +3 -3
  9. package/compiled/memfs/index.d.ts +6 -1
  10. package/compiled/memfs/index.js +662 -636
  11. package/compiled/memfs/package.json +1 -1
  12. package/compiled/postcss/index.js +4 -4
  13. package/compiled/postcss-loader/index.js +6 -6
  14. package/compiled/rspack-manifest-plugin/index.js +4 -4
  15. package/dist/client/hmr.js +58 -19
  16. package/dist/index.cjs +426 -373
  17. package/dist/index.js +420 -369
  18. package/dist-types/configChain.d.ts +0 -4
  19. package/dist-types/server/assets-middleware/getFileFromUrl.d.ts +9 -0
  20. package/dist-types/server/assets-middleware/index.d.ts +48 -0
  21. package/dist-types/server/assets-middleware/middleware.d.ts +3 -0
  22. package/dist-types/server/assets-middleware/setupOutputFileSystem.d.ts +4 -0
  23. package/dist-types/server/assets-middleware/setupWriteToDisk.d.ts +15 -0
  24. package/dist-types/server/browserLogs.d.ts +7 -0
  25. package/dist-types/server/{compilationManager.d.ts → buildManager.d.ts} +11 -11
  26. package/dist-types/server/devMiddlewares.d.ts +2 -2
  27. package/dist-types/server/devServer.d.ts +3 -3
  28. package/dist-types/server/middlewares.d.ts +3 -3
  29. package/dist-types/server/socketServer.d.ts +22 -11
  30. package/dist-types/server/watchFiles.d.ts +2 -2
  31. package/dist-types/types/config.d.ts +13 -6
  32. package/dist-types/types/context.d.ts +14 -4
  33. package/dist-types/types/plugin.d.ts +1 -1
  34. package/dist-types/types/rsbuild.d.ts +8 -1
  35. package/package.json +5 -3
  36. package/dist-types/dev-middleware/index.d.ts +0 -53
  37. package/dist-types/dev-middleware/middleware.d.ts +0 -3
  38. package/dist-types/dev-middleware/utils/getFilenameFromUrl.d.ts +0 -7
  39. package/dist-types/dev-middleware/utils/getPaths.d.ts +0 -7
  40. package/dist-types/dev-middleware/utils/ready.d.ts +0 -2
  41. package/dist-types/dev-middleware/utils/setupHooks.d.ts +0 -3
  42. package/dist-types/dev-middleware/utils/setupOutputFileSystem.d.ts +0 -3
  43. package/dist-types/dev-middleware/utils/setupWriteToDisk.d.ts +0 -7
  44. package/dist-types/server/compilationMiddleware.d.ts +0 -36
  45. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/escapeHtml.d.ts +0 -0
  46. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/memorize.d.ts +0 -0
  47. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/parseTokenList.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"@jridgewell/trace-mapping","author":"Justin Ridgewell <justin@ridgewell.name>","version":"0.3.31","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1,19 +1,19 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 9712: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 1: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(494);
5
+ const loader = __nccwpck_require__(1827);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(7967).defaultGetLocalIdent;
8
+ __nccwpck_require__(2990).defaultGetLocalIdent;
9
9
  },
10
- 494: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 1827: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
- var _postcss = _interopRequireDefault(__nccwpck_require__(9409));
15
- var _plugins = __nccwpck_require__(5621);
16
- var _utils = __nccwpck_require__(7967);
14
+ var _postcss = _interopRequireDefault(__nccwpck_require__(1259));
15
+ var _plugins = __nccwpck_require__(6608);
16
+ var _utils = __nccwpck_require__(2990);
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
- 5621: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 6608: (__unused_webpack_module, exports, __nccwpck_require__) => {
240
240
  "use strict";
241
241
  Object.defineProperty(exports, "__esModule", { value: true });
242
242
  Object.defineProperty(exports, "icssParser", {
@@ -257,21 +257,21 @@
257
257
  return _postcssUrlParser.default;
258
258
  },
259
259
  });
260
- var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(6));
261
- var _postcssIcssParser = _interopRequireDefault(
262
- __nccwpck_require__(9527),
260
+ var _postcssImportParser = _interopRequireDefault(
261
+ __nccwpck_require__(5155),
263
262
  );
264
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(8962));
263
+ var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(718));
264
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7113));
265
265
  function _interopRequireDefault(obj) {
266
266
  return obj && obj.__esModule ? obj : { default: obj };
267
267
  }
268
268
  },
269
- 9527: (__unused_webpack_module, exports, __nccwpck_require__) => {
269
+ 718: (__unused_webpack_module, exports, __nccwpck_require__) => {
270
270
  "use strict";
271
271
  Object.defineProperty(exports, "__esModule", { value: true });
272
272
  exports["default"] = void 0;
273
273
  var _icssUtils = __nccwpck_require__(9028);
274
- var _utils = __nccwpck_require__(7967);
274
+ var _utils = __nccwpck_require__(2990);
275
275
  const plugin = (options = {}) => ({
276
276
  postcssPlugin: "postcss-icss-parser",
277
277
  async OnceExit(root) {
@@ -370,14 +370,14 @@
370
370
  plugin.postcss = true;
371
371
  var _default = (exports["default"] = plugin);
372
372
  },
373
- 6: (__unused_webpack_module, exports, __nccwpck_require__) => {
373
+ 5155: (__unused_webpack_module, exports, __nccwpck_require__) => {
374
374
  "use strict";
375
375
  Object.defineProperty(exports, "__esModule", { value: true });
376
376
  exports["default"] = void 0;
377
377
  var _postcssValueParser = _interopRequireDefault(
378
378
  __nccwpck_require__(2948),
379
379
  );
380
- var _utils = __nccwpck_require__(7967);
380
+ var _utils = __nccwpck_require__(2990);
381
381
  function _interopRequireDefault(obj) {
382
382
  return obj && obj.__esModule ? obj : { default: obj };
383
383
  }
@@ -682,14 +682,14 @@
682
682
  plugin.postcss = true;
683
683
  var _default = (exports["default"] = plugin);
684
684
  },
685
- 8962: (__unused_webpack_module, exports, __nccwpck_require__) => {
685
+ 7113: (__unused_webpack_module, exports, __nccwpck_require__) => {
686
686
  "use strict";
687
687
  Object.defineProperty(exports, "__esModule", { value: true });
688
688
  exports["default"] = void 0;
689
689
  var _postcssValueParser = _interopRequireDefault(
690
690
  __nccwpck_require__(2948),
691
691
  );
692
- var _utils = __nccwpck_require__(7967);
692
+ var _utils = __nccwpck_require__(2990);
693
693
  function _interopRequireDefault(obj) {
694
694
  return obj && obj.__esModule ? obj : { default: obj };
695
695
  }
@@ -1032,7 +1032,7 @@
1032
1032
  plugin.postcss = true;
1033
1033
  var _default = (exports["default"] = plugin);
1034
1034
  },
1035
- 7967: (__unused_webpack_module, exports, __nccwpck_require__) => {
1035
+ 2990: (__unused_webpack_module, exports, __nccwpck_require__) => {
1036
1036
  "use strict";
1037
1037
  Object.defineProperty(exports, "__esModule", { value: true });
1038
1038
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -8057,9 +8057,9 @@
8057
8057
  8823: (module, __unused_webpack_exports, __nccwpck_require__) => {
8058
8058
  module.exports = __nccwpck_require__(9023).deprecate;
8059
8059
  },
8060
- 9409: (module) => {
8060
+ 1259: (module) => {
8061
8061
  "use strict";
8062
- module.exports = require("../postcss");
8062
+ module.exports = require("../postcss/index.js");
8063
8063
  },
8064
8064
  6928: (module) => {
8065
8065
  "use strict";
@@ -8096,6 +8096,6 @@
8096
8096
  }
8097
8097
  if (typeof __nccwpck_require__ !== "undefined")
8098
8098
  __nccwpck_require__.ab = __dirname + "/";
8099
- var __webpack_exports__ = __nccwpck_require__(9712);
8099
+ var __webpack_exports__ = __nccwpck_require__(1);
8100
8100
  module.exports = __webpack_exports__;
8101
8101
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 269: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 990: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(430);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(359);
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
- 430: (module) => {
314
+ 359: (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
- 78: (module) => {
483
+ 5: (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
- 801: (module) => {
502
+ 516: (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
- 320: (module, __unused_webpack_exports, __nccwpck_require__) => {
523
+ 939: (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
- 301: (module) => {
549
+ 362: (module) => {
550
550
  const voidTags = [
551
551
  "area",
552
552
  "base",
@@ -614,19 +614,19 @@
614
614
  htmlTagObjectToString,
615
615
  };
616
616
  },
617
- 832: (module, __unused_webpack_exports, __nccwpck_require__) => {
617
+ 427: (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__(269);
623
+ const { CachedChildCompilation } = __nccwpck_require__(990);
624
624
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
625
- __nccwpck_require__(301);
626
- const prettyError = __nccwpck_require__(801);
627
- const chunkSorter = __nccwpck_require__(78);
625
+ __nccwpck_require__(362);
626
+ const prettyError = __nccwpck_require__(516);
627
+ const chunkSorter = __nccwpck_require__(5);
628
628
  const getHtmlRspackPluginHooks =
629
- __nccwpck_require__(320).getHtmlRspackPluginHooks;
629
+ __nccwpck_require__(939).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__(832);
1600
+ var __webpack_exports__ = __nccwpck_require__(427);
1601
1601
  module.exports = __webpack_exports__;
1602
1602
  })();
@@ -310,7 +310,7 @@
310
310
  const fs = __nccwpck_require__(896);
311
311
  const os = __nccwpck_require__(857);
312
312
  const path = __nccwpck_require__(928);
313
- const colors = __nccwpck_require__(717);
313
+ const colors = __nccwpck_require__(31);
314
314
  const childProcess = __nccwpck_require__(317);
315
315
  const guessEditor = __nccwpck_require__(346);
316
316
  const getArgumentsForPosition = __nccwpck_require__(421);
@@ -666,9 +666,9 @@
666
666
  .join(" ");
667
667
  };
668
668
  },
669
- 717: (module) => {
669
+ 31: (module) => {
670
670
  "use strict";
671
- module.exports = require("../picocolors");
671
+ module.exports = require("../picocolors/index.js");
672
672
  },
673
673
  317: (module) => {
674
674
  "use strict";
@@ -1,5 +1,5 @@
1
1
  import { Buffer as Buffer$1 } from 'node:buffer';
2
- import { PathLike as PathLike$1, symlink } from 'node:fs';
2
+ import { URL as URL$1 } from 'node:url';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import { Readable, Writable } from 'node:stream';
5
5
 
@@ -126,6 +126,11 @@ interface NestedDirectoryJSON<T extends DirectoryContent = DirectoryContent> {
126
126
  [key: string]: T | NestedDirectoryJSON;
127
127
  }
128
128
 
129
+ type PathLike$1 = string | Buffer$1 | URL$1;
130
+ declare namespace symlink {
131
+ type Type = 'dir' | 'file' | 'junction';
132
+ }
133
+
129
134
  declare const constants: {
130
135
  O_RDONLY: number;
131
136
  O_WRONLY: number;