@rsbuild/core 0.7.0-beta.9 → 0.7.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.
- package/compiled/connect/index.d.ts +90 -0
- package/compiled/connect/index.js +2427 -0
- package/compiled/connect/license +25 -0
- package/compiled/connect/package.json +1 -0
- package/compiled/css-loader/index.js +20 -20
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +10 -10
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/index.cjs +5131 -5117
- package/dist/index.js +5096 -5088
- package/dist-types/cli/init.d.ts +1 -1
- package/dist-types/createContext.d.ts +2 -2
- package/dist-types/createRsbuild.d.ts +5 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-types/internal.d.ts +1 -4
- package/dist-types/provider/initConfigs.d.ts +2 -2
- package/dist-types/provider/provider.d.ts +1 -1
- package/dist-types/server/compilerDevMiddleware.d.ts +1 -1
- package/dist-types/server/devServer.d.ts +44 -1
- package/dist-types/server/getDevMiddlewares.d.ts +2 -1
- package/dist-types/server/helper.d.ts +15 -0
- package/dist-types/server/httpServer.d.ts +2 -2
- package/dist-types/server/middlewares.d.ts +1 -1
- package/dist-types/server/prodServer.d.ts +5 -4
- package/dist-types/server/proxy.d.ts +2 -1
- package/dist-types/server/socketServer.d.ts +3 -3
- package/dist-types/types.d.ts +56 -1
- package/package.json +6 -4
- package/dist-types/plugins/index.d.ts +0 -29
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010 Sencha Inc.
|
|
4
|
+
Copyright (c) 2011 LearnBoost
|
|
5
|
+
Copyright (c) 2011-2014 TJ Holowaychuk
|
|
6
|
+
Copyright (c) 2015 Douglas Christopher Wilson
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
9
|
+
a copy of this software and associated documentation files (the
|
|
10
|
+
'Software'), to deal in the Software without restriction, including
|
|
11
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
12
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
13
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
14
|
+
the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be
|
|
17
|
+
included in all copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
22
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
23
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
24
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
25
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"connect","author":"TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)","version":"3.7.0","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 9106:
|
|
5
5
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
const loader = __nccwpck_require__(
|
|
10
|
+
const loader = __nccwpck_require__(1922);
|
|
11
11
|
module.exports = loader.default;
|
|
12
|
-
module.exports.defaultGetLocalIdent = __nccwpck_require__(
|
|
12
|
+
module.exports.defaultGetLocalIdent = __nccwpck_require__(3012).defaultGetLocalIdent;
|
|
13
13
|
|
|
14
14
|
/***/ }),
|
|
15
15
|
|
|
16
|
-
/***/
|
|
16
|
+
/***/ 1922:
|
|
17
17
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
18
18
|
|
|
19
19
|
"use strict";
|
|
@@ -26,9 +26,9 @@ exports["default"] = loader;
|
|
|
26
26
|
var _postcss = _interopRequireDefault(__nccwpck_require__(977));
|
|
27
27
|
var _package = _interopRequireDefault(__nccwpck_require__(5446));
|
|
28
28
|
var _semver = __nccwpck_require__(1280);
|
|
29
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
30
|
-
var _plugins = __nccwpck_require__(
|
|
31
|
-
var _utils = __nccwpck_require__(
|
|
29
|
+
var _options = _interopRequireDefault(__nccwpck_require__(6527));
|
|
30
|
+
var _plugins = __nccwpck_require__(2320);
|
|
31
|
+
var _utils = __nccwpck_require__(3012);
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
/*
|
|
34
34
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
@@ -211,7 +211,7 @@ async function loader(content, map, meta) {
|
|
|
211
211
|
|
|
212
212
|
/***/ }),
|
|
213
213
|
|
|
214
|
-
/***/
|
|
214
|
+
/***/ 2320:
|
|
215
215
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
216
216
|
|
|
217
217
|
"use strict";
|
|
@@ -238,14 +238,14 @@ Object.defineProperty(exports, "urlParser", ({
|
|
|
238
238
|
return _postcssUrlParser.default;
|
|
239
239
|
}
|
|
240
240
|
}));
|
|
241
|
-
var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(
|
|
242
|
-
var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(
|
|
243
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
241
|
+
var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(2019));
|
|
242
|
+
var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(7123));
|
|
243
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7562));
|
|
244
244
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
245
245
|
|
|
246
246
|
/***/ }),
|
|
247
247
|
|
|
248
|
-
/***/
|
|
248
|
+
/***/ 7123:
|
|
249
249
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
250
250
|
|
|
251
251
|
"use strict";
|
|
@@ -256,7 +256,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
256
256
|
}));
|
|
257
257
|
exports["default"] = void 0;
|
|
258
258
|
var _icssUtils = __nccwpck_require__(3275);
|
|
259
|
-
var _utils = __nccwpck_require__(
|
|
259
|
+
var _utils = __nccwpck_require__(3012);
|
|
260
260
|
const plugin = (options = {}) => {
|
|
261
261
|
return {
|
|
262
262
|
postcssPlugin: "postcss-icss-parser",
|
|
@@ -365,7 +365,7 @@ var _default = exports["default"] = plugin;
|
|
|
365
365
|
|
|
366
366
|
/***/ }),
|
|
367
367
|
|
|
368
|
-
/***/
|
|
368
|
+
/***/ 2019:
|
|
369
369
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
370
370
|
|
|
371
371
|
"use strict";
|
|
@@ -376,7 +376,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
376
376
|
}));
|
|
377
377
|
exports["default"] = void 0;
|
|
378
378
|
var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1036));
|
|
379
|
-
var _utils = __nccwpck_require__(
|
|
379
|
+
var _utils = __nccwpck_require__(3012);
|
|
380
380
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
381
381
|
function parseNode(atRule, key, options) {
|
|
382
382
|
// Convert only top-level @import
|
|
@@ -654,7 +654,7 @@ var _default = exports["default"] = plugin;
|
|
|
654
654
|
|
|
655
655
|
/***/ }),
|
|
656
656
|
|
|
657
|
-
/***/
|
|
657
|
+
/***/ 7562:
|
|
658
658
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
659
659
|
|
|
660
660
|
"use strict";
|
|
@@ -665,7 +665,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
665
665
|
}));
|
|
666
666
|
exports["default"] = void 0;
|
|
667
667
|
var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1036));
|
|
668
|
-
var _utils = __nccwpck_require__(
|
|
668
|
+
var _utils = __nccwpck_require__(3012);
|
|
669
669
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
670
670
|
const isUrlFunc = /url/i;
|
|
671
671
|
const isImageSetFunc = /^(?:-webkit-)?image-set$/i;
|
|
@@ -1017,7 +1017,7 @@ var _default = exports["default"] = plugin;
|
|
|
1017
1017
|
|
|
1018
1018
|
/***/ }),
|
|
1019
1019
|
|
|
1020
|
-
/***/
|
|
1020
|
+
/***/ 3012:
|
|
1021
1021
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1022
1022
|
|
|
1023
1023
|
"use strict";
|
|
@@ -7298,7 +7298,7 @@ module.exports = require("util");
|
|
|
7298
7298
|
|
|
7299
7299
|
/***/ }),
|
|
7300
7300
|
|
|
7301
|
-
/***/
|
|
7301
|
+
/***/ 6527:
|
|
7302
7302
|
/***/ ((module) => {
|
|
7303
7303
|
|
|
7304
7304
|
"use strict";
|
|
@@ -7356,7 +7356,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":
|
|
|
7356
7356
|
/******/ // startup
|
|
7357
7357
|
/******/ // Load entry module and return exports
|
|
7358
7358
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
7359
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
7359
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(9106);
|
|
7360
7360
|
/******/ module.exports = __webpack_exports__;
|
|
7361
7361
|
/******/
|
|
7362
7362
|
/******/ })()
|
|
@@ -463,7 +463,7 @@ module.exports.lilconfigSync = function lilconfigSync(name, options) {
|
|
|
463
463
|
|
|
464
464
|
/***/ }),
|
|
465
465
|
|
|
466
|
-
/***/
|
|
466
|
+
/***/ 850:
|
|
467
467
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
468
468
|
|
|
469
469
|
// @ts-check
|
|
@@ -472,9 +472,9 @@ const { resolve } = __nccwpck_require__(411)
|
|
|
472
472
|
const config = __nccwpck_require__(882)
|
|
473
473
|
const yaml = __nccwpck_require__(352)
|
|
474
474
|
|
|
475
|
-
const loadOptions = __nccwpck_require__(
|
|
476
|
-
const loadPlugins = __nccwpck_require__(
|
|
477
|
-
const req = __nccwpck_require__(
|
|
475
|
+
const loadOptions = __nccwpck_require__(830)
|
|
476
|
+
const loadPlugins = __nccwpck_require__(583)
|
|
477
|
+
const req = __nccwpck_require__(95)
|
|
478
478
|
|
|
479
479
|
const interopRequireDefault = obj =>
|
|
480
480
|
obj && obj.__esModule ? obj : { default: obj }
|
|
@@ -634,11 +634,11 @@ module.exports = rc
|
|
|
634
634
|
|
|
635
635
|
/***/ }),
|
|
636
636
|
|
|
637
|
-
/***/
|
|
637
|
+
/***/ 830:
|
|
638
638
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
639
639
|
|
|
640
640
|
// @ts-check
|
|
641
|
-
const req = __nccwpck_require__(
|
|
641
|
+
const req = __nccwpck_require__(95)
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* Load Options
|
|
@@ -689,11 +689,11 @@ module.exports = options
|
|
|
689
689
|
|
|
690
690
|
/***/ }),
|
|
691
691
|
|
|
692
|
-
/***/
|
|
692
|
+
/***/ 583:
|
|
693
693
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
694
694
|
|
|
695
695
|
// @ts-check
|
|
696
|
-
const req = __nccwpck_require__(
|
|
696
|
+
const req = __nccwpck_require__(95)
|
|
697
697
|
|
|
698
698
|
/**
|
|
699
699
|
* Plugin Loader
|
|
@@ -786,7 +786,7 @@ module.exports = plugins
|
|
|
786
786
|
|
|
787
787
|
/***/ }),
|
|
788
788
|
|
|
789
|
-
/***/
|
|
789
|
+
/***/ 95:
|
|
790
790
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
791
791
|
|
|
792
792
|
// @ts-check
|
|
@@ -974,7 +974,7 @@ module.exports = require("path");
|
|
|
974
974
|
/******/ // startup
|
|
975
975
|
/******/ // Load entry module and return exports
|
|
976
976
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
977
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
977
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(850);
|
|
978
978
|
/******/ module.exports = __webpack_exports__;
|
|
979
979
|
/******/
|
|
980
980
|
/******/ })()
|
|
@@ -7702,17 +7702,17 @@ module.exports.createColors = createColors
|
|
|
7702
7702
|
|
|
7703
7703
|
/***/ }),
|
|
7704
7704
|
|
|
7705
|
-
/***/
|
|
7705
|
+
/***/ 8933:
|
|
7706
7706
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
7707
7707
|
|
|
7708
7708
|
"use strict";
|
|
7709
7709
|
|
|
7710
7710
|
|
|
7711
|
-
module.exports = __nccwpck_require__(
|
|
7711
|
+
module.exports = __nccwpck_require__(1683)["default"];
|
|
7712
7712
|
|
|
7713
7713
|
/***/ }),
|
|
7714
7714
|
|
|
7715
|
-
/***/
|
|
7715
|
+
/***/ 1683:
|
|
7716
7716
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
7717
7717
|
|
|
7718
7718
|
"use strict";
|
|
@@ -7725,8 +7725,8 @@ __webpack_unused_export__ = ({
|
|
|
7725
7725
|
exports["default"] = loader;
|
|
7726
7726
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
7727
7727
|
var _package = _interopRequireDefault(__nccwpck_require__(5446));
|
|
7728
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
7729
|
-
var _utils = __nccwpck_require__(
|
|
7728
|
+
var _options = _interopRequireDefault(__nccwpck_require__(3712));
|
|
7729
|
+
var _utils = __nccwpck_require__(1280);
|
|
7730
7730
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
7731
7731
|
let hasExplicitDependencyOnPostCSS = false;
|
|
7732
7732
|
|
|
@@ -7787,7 +7787,7 @@ async function loader(content, sourceMap, meta) {
|
|
|
7787
7787
|
// Reuse PostCSS AST from other loaders
|
|
7788
7788
|
if (meta && meta.ast && meta.ast.type === "postcss" &&
|
|
7789
7789
|
// eslint-disable-next-line global-require
|
|
7790
|
-
(__nccwpck_require__(
|
|
7790
|
+
(__nccwpck_require__(7992).satisfies)(meta.ast.version, `^${_package.default.version}`)) {
|
|
7791
7791
|
({
|
|
7792
7792
|
root
|
|
7793
7793
|
} = meta.ast);
|
|
@@ -7892,7 +7892,7 @@ async function loader(content, sourceMap, meta) {
|
|
|
7892
7892
|
|
|
7893
7893
|
/***/ }),
|
|
7894
7894
|
|
|
7895
|
-
/***/
|
|
7895
|
+
/***/ 1280:
|
|
7896
7896
|
/***/ ((module, exports, __nccwpck_require__) => {
|
|
7897
7897
|
|
|
7898
7898
|
"use strict";
|
|
@@ -8586,7 +8586,7 @@ module.exports = require("@rsbuild/shared/jiti");
|
|
|
8586
8586
|
|
|
8587
8587
|
/***/ }),
|
|
8588
8588
|
|
|
8589
|
-
/***/
|
|
8589
|
+
/***/ 7992:
|
|
8590
8590
|
/***/ ((module) => {
|
|
8591
8591
|
|
|
8592
8592
|
"use strict";
|
|
@@ -9143,7 +9143,7 @@ function highlight(code, options = {}) {
|
|
|
9143
9143
|
|
|
9144
9144
|
/***/ }),
|
|
9145
9145
|
|
|
9146
|
-
/***/
|
|
9146
|
+
/***/ 3712:
|
|
9147
9147
|
/***/ ((module) => {
|
|
9148
9148
|
|
|
9149
9149
|
"use strict";
|
|
@@ -9271,7 +9271,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":
|
|
|
9271
9271
|
/******/ // startup
|
|
9272
9272
|
/******/ // Load entry module and return exports
|
|
9273
9273
|
/******/ // This entry module used 'module' so it can't be inlined
|
|
9274
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
9274
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(8933);
|
|
9275
9275
|
/******/ module.exports = __webpack_exports__;
|
|
9276
9276
|
/******/
|
|
9277
9277
|
/******/ })()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 9138:
|
|
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
|
-
/***/
|
|
108
|
+
/***/ 9036:
|
|
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__(
|
|
119
|
+
const helpers_1 = __nccwpck_require__(9138);
|
|
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__(
|
|
7754
|
+
const hooks_1 = __nccwpck_require__(9036);
|
|
7755
7755
|
Object.defineProperty(exports, "getCompilerHooks", ({ enumerable: true, get: function () { return hooks_1.getCompilerHooks; } }));
|
|
7756
7756
|
const emitCountMap = new Map();
|
|
7757
7757
|
const defaults = {
|