@rsbuild/core 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (98) hide show
  1. package/compiled/autoprefixer/index.d.ts +95 -0
  2. package/compiled/autoprefixer/index.js +10217 -0
  3. package/compiled/autoprefixer/license +20 -0
  4. package/compiled/autoprefixer/package.json +1 -0
  5. package/compiled/browserslist/index.d.ts +201 -0
  6. package/compiled/browserslist/index.js +2017 -0
  7. package/compiled/browserslist/license +20 -0
  8. package/compiled/browserslist/package.json +1 -0
  9. package/compiled/chokidar/index.d.ts +198 -0
  10. package/compiled/chokidar/index.js +6692 -0
  11. package/compiled/chokidar/license +21 -0
  12. package/compiled/chokidar/package.json +1 -0
  13. package/compiled/css-loader/index.js +20 -20
  14. package/compiled/gzip-size/index.d.ts +1 -0
  15. package/compiled/gzip-size/index.js +242 -0
  16. package/compiled/gzip-size/package.json +1 -0
  17. package/compiled/http-proxy-middleware/index.d.ts +315 -0
  18. package/compiled/http-proxy-middleware/index.js +7503 -0
  19. package/compiled/http-proxy-middleware/license +22 -0
  20. package/compiled/http-proxy-middleware/package.json +1 -0
  21. package/compiled/launch-editor-middleware/index.js +9 -9
  22. package/compiled/postcss-loader/index.js +8 -8
  23. package/compiled/rspack-chain/index.d.ts +600 -0
  24. package/compiled/rspack-chain/index.js +2192 -0
  25. package/compiled/rspack-chain/license +373 -0
  26. package/compiled/rspack-chain/package.json +1 -0
  27. package/compiled/rspack-manifest-plugin/index.js +4 -4
  28. package/compiled/webpack-bundle-analyzer/index.d.ts +160 -0
  29. package/compiled/webpack-bundle-analyzer/index.js +14968 -0
  30. package/compiled/webpack-bundle-analyzer/license +20 -0
  31. package/compiled/webpack-bundle-analyzer/package.json +1 -0
  32. package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
  33. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
  34. package/compiled/webpack-merge/index.d.ts +31 -0
  35. package/compiled/webpack-merge/index.js +1239 -0
  36. package/compiled/webpack-merge/license +20 -0
  37. package/compiled/webpack-merge/package.json +1 -0
  38. package/compiled/ws/index.js +295 -110
  39. package/compiled/ws/package.json +1 -1
  40. package/dist/index.cjs +915 -2539
  41. package/dist/index.js +1033 -2701
  42. package/dist-types/cli/commands.d.ts +1 -1
  43. package/dist-types/config.d.ts +1 -1
  44. package/dist-types/configChain.d.ts +158 -2
  45. package/dist-types/constants.d.ts +1 -0
  46. package/dist-types/createContext.d.ts +1 -2
  47. package/dist-types/helpers.d.ts +7 -4
  48. package/dist-types/index.d.ts +2 -2
  49. package/dist-types/initHooks.d.ts +1 -1
  50. package/dist-types/initPlugins.d.ts +1 -2
  51. package/dist-types/internal.d.ts +1 -1
  52. package/dist-types/loader/transformLoader.d.ts +1 -1
  53. package/dist-types/mergeConfig.d.ts +1 -1
  54. package/dist-types/pluginManager.d.ts +1 -1
  55. package/dist-types/plugins/css.d.ts +1 -2
  56. package/dist-types/plugins/html.d.ts +1 -2
  57. package/dist-types/plugins/minimize.d.ts +1 -2
  58. package/dist-types/provider/build.d.ts +1 -1
  59. package/dist-types/provider/createCompiler.d.ts +1 -2
  60. package/dist-types/provider/initConfigs.d.ts +1 -2
  61. package/dist-types/provider/inspectConfig.d.ts +1 -1
  62. package/dist-types/provider/rspackConfig.d.ts +2 -2
  63. package/dist-types/rspack/HtmlBasicPlugin.d.ts +1 -1
  64. package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +1 -1
  65. package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +1 -1
  66. package/dist-types/rspack/preload/helpers/doesChunkBelongToHtml.d.ts +1 -1
  67. package/dist-types/rspack/preload/helpers/extractChunks.d.ts +1 -1
  68. package/dist-types/server/compilerDevMiddleware.d.ts +1 -1
  69. package/dist-types/server/devMiddleware.d.ts +4 -1
  70. package/dist-types/server/devServer.d.ts +1 -2
  71. package/dist-types/server/environment.d.ts +1 -1
  72. package/dist-types/server/getDevMiddlewares.d.ts +1 -1
  73. package/dist-types/server/helper.d.ts +1 -2
  74. package/dist-types/server/httpServer.d.ts +1 -1
  75. package/dist-types/server/middlewares.d.ts +1 -1
  76. package/dist-types/server/prodServer.d.ts +1 -2
  77. package/dist-types/server/proxy.d.ts +3 -3
  78. package/dist-types/server/socketServer.d.ts +1 -1
  79. package/dist-types/server/watchFiles.d.ts +1 -1
  80. package/dist-types/types/config/dev.d.ts +85 -0
  81. package/dist-types/types/config/html.d.ts +107 -0
  82. package/dist-types/types/config/index.d.ts +134 -0
  83. package/dist-types/types/config/output.d.ts +301 -0
  84. package/dist-types/types/config/performance.d.ts +122 -0
  85. package/dist-types/types/config/security.d.ts +18 -0
  86. package/dist-types/types/config/server.d.ts +106 -0
  87. package/dist-types/types/config/source.d.ts +79 -0
  88. package/dist-types/types/config/tools.d.ts +86 -0
  89. package/dist-types/types/context.d.ts +38 -0
  90. package/dist-types/types/hooks.d.ts +125 -0
  91. package/dist-types/types/index.d.ts +9 -0
  92. package/dist-types/types/plugin.d.ts +194 -0
  93. package/dist-types/{types.d.ts → types/rsbuild.d.ts} +56 -33
  94. package/dist-types/types/rspack.d.ts +28 -0
  95. package/dist-types/types/stats.d.ts +17 -0
  96. package/dist-types/types/thirdParty.d.ts +169 -0
  97. package/dist-types/types/utils.d.ts +14 -0
  98. package/package.json +20 -5
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Steven Chim
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1 @@
1
+ {"name":"http-proxy-middleware","author":"Steven Chim","version":"2.0.6","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -355,7 +355,7 @@ module.exports = function guessEditor (specifiedEditor) {
355
355
  const fs = __nccwpck_require__(147)
356
356
  const os = __nccwpck_require__(37)
357
357
  const path = __nccwpck_require__(17)
358
- const colors = __nccwpck_require__(802)
358
+ const colors = __nccwpck_require__(146)
359
359
  const childProcess = __nccwpck_require__(81)
360
360
 
361
361
  const guessEditor = __nccwpck_require__(641)
@@ -786,14 +786,6 @@ module.exports = function quote(xs) {
786
786
  };
787
787
 
788
788
 
789
- /***/ }),
790
-
791
- /***/ 802:
792
- /***/ ((module) => {
793
-
794
- "use strict";
795
- module.exports = require("@rsbuild/shared/picocolors");
796
-
797
789
  /***/ }),
798
790
 
799
791
  /***/ 81:
@@ -828,6 +820,14 @@ module.exports = require("path");
828
820
 
829
821
  /***/ }),
830
822
 
823
+ /***/ 146:
824
+ /***/ ((module) => {
825
+
826
+ "use strict";
827
+ module.exports = require("picocolors");
828
+
829
+ /***/ }),
830
+
831
831
  /***/ 310:
832
832
  /***/ ((module) => {
833
833
 
@@ -7709,17 +7709,17 @@ module.exports.createColors = createColors
7709
7709
 
7710
7710
  /***/ }),
7711
7711
 
7712
- /***/ 6741:
7712
+ /***/ 1036:
7713
7713
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
7714
7714
 
7715
7715
  "use strict";
7716
7716
 
7717
7717
 
7718
- module.exports = __nccwpck_require__(9557)["default"];
7718
+ module.exports = __nccwpck_require__(9677)["default"];
7719
7719
 
7720
7720
  /***/ }),
7721
7721
 
7722
- /***/ 9557:
7722
+ /***/ 9677:
7723
7723
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7724
7724
 
7725
7725
  "use strict";
@@ -7732,8 +7732,8 @@ __webpack_unused_export__ = ({
7732
7732
  exports["default"] = loader;
7733
7733
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
7734
7734
  var _package = _interopRequireDefault(__nccwpck_require__(7972));
7735
- var _options = _interopRequireDefault(__nccwpck_require__(9758));
7736
- var _utils = __nccwpck_require__(2620);
7735
+ var _options = _interopRequireDefault(__nccwpck_require__(2428));
7736
+ var _utils = __nccwpck_require__(5495);
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
- /***/ 2620:
7902
+ /***/ 5495:
7903
7903
  /***/ ((module, exports, __nccwpck_require__) => {
7904
7904
 
7905
7905
  "use strict";
@@ -9150,7 +9150,7 @@ function highlight(code, options = {}) {
9150
9150
 
9151
9151
  /***/ }),
9152
9152
 
9153
- /***/ 9758:
9153
+ /***/ 2428:
9154
9154
  /***/ ((module) => {
9155
9155
 
9156
9156
  "use strict";
@@ -9278,7 +9278,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.39","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__(6741);
9281
+ /******/ var __webpack_exports__ = __nccwpck_require__(1036);
9282
9282
  /******/ module.exports = __webpack_exports__;
9283
9283
  /******/
9284
9284
  /******/ })()