@rsbuild/core 2.0.0-rc.0 → 2.0.0-rc.2

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/connect-next/package.json +1 -1
  2. package/compiled/css-loader/index.js +2 -2
  3. package/compiled/html-rspack-plugin/index.js +14 -14
  4. package/compiled/http-proxy-middleware/index.d.ts +180 -386
  5. package/compiled/http-proxy-middleware/package.json +1 -1
  6. package/compiled/postcss/index.js +1 -1
  7. package/compiled/postcss/lib/at-rule.d.ts +0 -1
  8. package/compiled/postcss/lib/comment.d.ts +0 -1
  9. package/compiled/postcss/lib/container.d.ts +1 -6
  10. package/compiled/postcss/lib/css-syntax-error.d.ts +0 -1
  11. package/compiled/postcss/lib/declaration.d.ts +0 -1
  12. package/compiled/postcss/lib/document.d.ts +0 -1
  13. package/compiled/postcss/lib/fromJSON.d.ts +1 -1
  14. package/compiled/postcss/lib/input.d.ts +0 -1
  15. package/compiled/postcss/lib/lazy-result.d.ts +3 -4
  16. package/compiled/postcss/lib/list.d.ts +1 -1
  17. package/compiled/postcss/lib/no-work-result.d.ts +0 -1
  18. package/compiled/postcss/lib/node.d.ts +0 -1
  19. package/compiled/postcss/lib/parse.d.ts +1 -1
  20. package/compiled/postcss/lib/postcss.d.ts +1 -3
  21. package/compiled/postcss/lib/previous-map.d.ts +0 -1
  22. package/compiled/postcss/lib/processor.d.ts +0 -1
  23. package/compiled/postcss/lib/result.d.ts +0 -1
  24. package/compiled/postcss/lib/root.d.ts +0 -1
  25. package/compiled/postcss/lib/rule.d.ts +12 -12
  26. package/compiled/postcss/lib/stringifier.d.ts +0 -1
  27. package/compiled/postcss/lib/stringify.d.ts +1 -1
  28. package/compiled/postcss/lib/warning.d.ts +0 -1
  29. package/compiled/postcss/license +1 -1
  30. package/compiled/postcss/package.json +1 -1
  31. package/compiled/postcss-loader/index.js +6 -6
  32. package/compiled/rspack-chain/package.json +1 -1
  33. package/compiled/rspack-chain/types/index.d.ts +38 -115
  34. package/dist/1~rslib-runtime.js +1 -1
  35. package/dist/{552.js → 753.js} +143 -196
  36. package/dist/client/hmr.js +23 -10
  37. package/dist/connect-next.js +636 -26
  38. package/dist/connect-next.js.LICENSE.txt +14 -1
  39. package/dist/http-proxy-middleware.js +1169 -1226
  40. package/dist/http-proxy-middleware.js.LICENSE.txt +0 -35
  41. package/dist/index.js +1 -1
  42. package/dist/launch-editor-middleware.js +6 -6
  43. package/dist/manifest-plugin.js +8 -8
  44. package/dist/memfs.js +16 -56
  45. package/dist/tinyglobby.js +279 -127
  46. package/dist/ws.js +2 -2
  47. package/dist-types/client/hmr.d.ts +1 -1
  48. package/dist-types/helpers/index.d.ts +1 -1
  49. package/dist-types/helpers/url.d.ts +1 -1
  50. package/dist-types/pluginHelper.d.ts +1 -8
  51. package/dist-types/server/devServer.d.ts +9 -7
  52. package/dist-types/server/socketServer.d.ts +16 -4
  53. package/dist-types/types/config.d.ts +9 -3
  54. package/dist-types/types/rspack.d.ts +1 -1
  55. package/package.json +11 -11
  56. package/dist/debug.js +0 -503
  57. package/dist-types/plugins/esm.d.ts +0 -2
  58. /package/dist/{552.js.LICENSE.txt → 753.js.LICENSE.txt} +0 -0
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 413: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 171: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(702);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(968);
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
- 702: (module) => {
314
+ 968: (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
- 830: (module) => {
483
+ 248: (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
- 329: (module) => {
502
+ 263: (module) => {
503
503
  "use strict";
504
504
  module.exports = function (err) {
505
505
  return {
@@ -523,7 +523,7 @@
523
523
  };
524
524
  };
525
525
  },
526
- 616: (module, __unused_webpack_exports, __nccwpck_require__) => {
526
+ 550: (module, __unused_webpack_exports, __nccwpck_require__) => {
527
527
  "use strict";
528
528
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(159);
529
529
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -549,7 +549,7 @@
549
549
  }
550
550
  module.exports = { getHtmlRspackPluginHooks };
551
551
  },
552
- 101: (module) => {
552
+ 203: (module) => {
553
553
  const voidTags = [
554
554
  "area",
555
555
  "base",
@@ -617,19 +617,19 @@
617
617
  htmlTagObjectToString,
618
618
  };
619
619
  },
620
- 128: (module, __unused_webpack_exports, __nccwpck_require__) => {
620
+ 810: (module, __unused_webpack_exports, __nccwpck_require__) => {
621
621
  "use strict";
622
622
  const promisify = __nccwpck_require__(23).promisify;
623
623
  const vm = __nccwpck_require__(154);
624
624
  const fs = __nccwpck_require__(896);
625
625
  const path = __nccwpck_require__(928);
626
- const { CachedChildCompilation } = __nccwpck_require__(413);
626
+ const { CachedChildCompilation } = __nccwpck_require__(171);
627
627
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
628
- __nccwpck_require__(101);
629
- const prettyError = __nccwpck_require__(329);
630
- const chunkSorter = __nccwpck_require__(830);
628
+ __nccwpck_require__(203);
629
+ const prettyError = __nccwpck_require__(263);
630
+ const chunkSorter = __nccwpck_require__(248);
631
631
  const getHtmlRspackPluginHooks =
632
- __nccwpck_require__(616).getHtmlRspackPluginHooks;
632
+ __nccwpck_require__(550).getHtmlRspackPluginHooks;
633
633
  const WITH_PLACEHOLDER = "function __with_placeholder__";
634
634
  class HtmlRspackPlugin {
635
635
  constructor(userOptions = {}) {
@@ -2398,6 +2398,6 @@
2398
2398
  }
2399
2399
  if (typeof __nccwpck_require__ !== "undefined")
2400
2400
  __nccwpck_require__.ab = __dirname + "/";
2401
- var __webpack_exports__ = __nccwpck_require__(128);
2401
+ var __webpack_exports__ = __nccwpck_require__(810);
2402
2402
  module.exports = __webpack_exports__;
2403
2403
  })();