@rsbuild/core 1.2.0-beta.1 → 1.2.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/chokidar/index.js +21 -21
- package/compiled/connect/index.js +49 -49
- package/compiled/connect-history-api-fallback/index.js +4 -4
- package/compiled/cors/index.js +6 -6
- package/compiled/css-loader/index.js +171 -171
- package/compiled/html-rspack-plugin/index.js +24 -24
- package/compiled/http-proxy-middleware/index.js +145 -145
- package/compiled/jiti/index.js +22 -22
- package/compiled/launch-editor-middleware/index.js +36 -36
- package/compiled/on-finished/index.js +6 -6
- package/compiled/open/index.js +19 -19
- package/compiled/picocolors/index.js +2 -2
- package/compiled/postcss/index.js +152 -152
- package/compiled/postcss-load-config/index.js +26 -26
- package/compiled/postcss-loader/index.js +15 -15
- package/compiled/rsbuild-dev-middleware/index.js +140 -140
- package/compiled/rspack-chain/index.js +85 -85
- package/compiled/rspack-manifest-plugin/index.js +12 -12
- package/compiled/sirv/index.js +18 -18
- package/compiled/style-loader/index.js +13 -13
- package/compiled/tinyglobby/index.js +70 -70
- package/compiled/webpack-bundle-analyzer/index.js +197 -197
- package/compiled/webpack-merge/index.js +29 -29
- package/compiled/ws/index.js +81 -81
- package/dist/index.cjs +153 -142
- package/dist/index.js +153 -142
- package/dist-types/configChain.d.ts +2 -0
- package/dist-types/helpers/path.d.ts +6 -0
- package/dist-types/plugins/css.d.ts +2 -1
- package/dist-types/types/config.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
4
|
-
const path = __nccwpck_require__(
|
|
5
|
-
const fs = __nccwpck_require__(
|
|
6
|
-
const os = __nccwpck_require__(
|
|
3
|
+
957: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
|
+
const path = __nccwpck_require__(928);
|
|
5
|
+
const fs = __nccwpck_require__(896);
|
|
6
|
+
const os = __nccwpck_require__(857);
|
|
7
7
|
const fsReadFileAsync = fs.promises.readFile;
|
|
8
8
|
function getDefaultSearchPlaces(name, sync) {
|
|
9
9
|
return [
|
|
@@ -368,12 +368,12 @@
|
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
370
|
},
|
|
371
|
-
|
|
372
|
-
const { resolve } = __nccwpck_require__(
|
|
373
|
-
const config = __nccwpck_require__(
|
|
374
|
-
const loadOptions = __nccwpck_require__(
|
|
375
|
-
const loadPlugins = __nccwpck_require__(
|
|
376
|
-
const req = __nccwpck_require__(
|
|
371
|
+
426: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
372
|
+
const { resolve } = __nccwpck_require__(760);
|
|
373
|
+
const config = __nccwpck_require__(957);
|
|
374
|
+
const loadOptions = __nccwpck_require__(268);
|
|
375
|
+
const loadPlugins = __nccwpck_require__(810);
|
|
376
|
+
const req = __nccwpck_require__(346);
|
|
377
377
|
const interopRequireDefault = (obj) =>
|
|
378
378
|
obj && obj.__esModule ? obj : { default: obj };
|
|
379
379
|
async function processResult(ctx, result) {
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
if (!yaml) {
|
|
414
414
|
try {
|
|
415
415
|
yaml = await Promise.resolve().then(
|
|
416
|
-
__nccwpck_require__.t.bind(__nccwpck_require__,
|
|
416
|
+
__nccwpck_require__.t.bind(__nccwpck_require__, 160, 23),
|
|
417
417
|
);
|
|
418
418
|
} catch (e) {
|
|
419
419
|
throw new Error(
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
* @requires ./plugins
|
|
488
488
|
*/ module.exports = rc;
|
|
489
489
|
},
|
|
490
|
-
|
|
491
|
-
const req = __nccwpck_require__(
|
|
490
|
+
268: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
491
|
+
const req = __nccwpck_require__(346);
|
|
492
492
|
async function options(config, file) {
|
|
493
493
|
if (config.parser && typeof config.parser === "string") {
|
|
494
494
|
try {
|
|
@@ -521,8 +521,8 @@
|
|
|
521
521
|
}
|
|
522
522
|
module.exports = options;
|
|
523
523
|
},
|
|
524
|
-
|
|
525
|
-
const req = __nccwpck_require__(
|
|
524
|
+
810: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
525
|
+
const req = __nccwpck_require__(346);
|
|
526
526
|
async function load(plugin, options, file) {
|
|
527
527
|
try {
|
|
528
528
|
if (
|
|
@@ -577,9 +577,9 @@
|
|
|
577
577
|
}
|
|
578
578
|
module.exports = plugins;
|
|
579
579
|
},
|
|
580
|
-
|
|
581
|
-
const { createRequire } = __nccwpck_require__(
|
|
582
|
-
const { pathToFileURL } = __nccwpck_require__(
|
|
580
|
+
346: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
581
|
+
const { createRequire } = __nccwpck_require__(995);
|
|
582
|
+
const { pathToFileURL } = __nccwpck_require__(136);
|
|
583
583
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
|
584
584
|
let tsx;
|
|
585
585
|
let jiti;
|
|
@@ -621,31 +621,31 @@
|
|
|
621
621
|
}
|
|
622
622
|
module.exports = req;
|
|
623
623
|
},
|
|
624
|
-
|
|
624
|
+
896: (module) => {
|
|
625
625
|
"use strict";
|
|
626
626
|
module.exports = require("fs");
|
|
627
627
|
},
|
|
628
|
-
|
|
628
|
+
995: (module) => {
|
|
629
629
|
"use strict";
|
|
630
630
|
module.exports = require("node:module");
|
|
631
631
|
},
|
|
632
|
-
|
|
632
|
+
760: (module) => {
|
|
633
633
|
"use strict";
|
|
634
634
|
module.exports = require("node:path");
|
|
635
635
|
},
|
|
636
|
-
|
|
636
|
+
136: (module) => {
|
|
637
637
|
"use strict";
|
|
638
638
|
module.exports = require("node:url");
|
|
639
639
|
},
|
|
640
|
-
|
|
640
|
+
857: (module) => {
|
|
641
641
|
"use strict";
|
|
642
642
|
module.exports = require("os");
|
|
643
643
|
},
|
|
644
|
-
|
|
644
|
+
928: (module) => {
|
|
645
645
|
"use strict";
|
|
646
646
|
module.exports = require("path");
|
|
647
647
|
},
|
|
648
|
-
|
|
648
|
+
160: (module) => {
|
|
649
649
|
"use strict";
|
|
650
650
|
module.exports = require("yaml");
|
|
651
651
|
},
|
|
@@ -734,6 +734,6 @@
|
|
|
734
734
|
})();
|
|
735
735
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
736
736
|
__nccwpck_require__.ab = __dirname + "/";
|
|
737
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
737
|
+
var __webpack_exports__ = __nccwpck_require__(426);
|
|
738
738
|
module.exports = __webpack_exports__;
|
|
739
739
|
})();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
924: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(434)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
434: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = loader;
|
|
11
|
-
var _path = _interopRequireDefault(__nccwpck_require__(
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
11
|
+
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
+
var _utils = __nccwpck_require__(627);
|
|
13
13
|
function _interopRequireDefault(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
15
15
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
callback(null, result.css, map, { ast });
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
627: (module, exports, __nccwpck_require__) => {
|
|
183
183
|
module = __nccwpck_require__.nmd(module);
|
|
184
184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
185
185
|
exports.exec = exec;
|
|
@@ -191,9 +191,9 @@
|
|
|
191
191
|
exports.normalizeSourceMapAfterPostcss = normalizeSourceMapAfterPostcss;
|
|
192
192
|
exports.reportError = reportError;
|
|
193
193
|
exports.warningFactory = warningFactory;
|
|
194
|
-
var _path = _interopRequireDefault(__nccwpck_require__(
|
|
195
|
-
var _url = _interopRequireDefault(__nccwpck_require__(
|
|
196
|
-
var _module = _interopRequireDefault(__nccwpck_require__(
|
|
194
|
+
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
195
|
+
var _url = _interopRequireDefault(__nccwpck_require__(16));
|
|
196
|
+
var _module = _interopRequireDefault(__nccwpck_require__(339));
|
|
197
197
|
var _cosmiconfig = {};
|
|
198
198
|
function _interopRequireDefault(obj) {
|
|
199
199
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
};
|
|
310
310
|
if (!tsLoader) {
|
|
311
311
|
const opts = { interopDefault: true };
|
|
312
|
-
const jiti = __nccwpck_require__(
|
|
312
|
+
const jiti = __nccwpck_require__(966)(__filename, opts);
|
|
313
313
|
tsLoader = (filepath) => jiti(filepath);
|
|
314
314
|
}
|
|
315
315
|
loaders[".cts"] = tsLoader;
|
|
@@ -669,16 +669,16 @@
|
|
|
669
669
|
return obj;
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
|
-
|
|
672
|
+
966: (module) => {
|
|
673
673
|
module.exports = require("../jiti");
|
|
674
674
|
},
|
|
675
|
-
|
|
675
|
+
339: (module) => {
|
|
676
676
|
module.exports = require("module");
|
|
677
677
|
},
|
|
678
|
-
|
|
678
|
+
928: (module) => {
|
|
679
679
|
module.exports = require("path");
|
|
680
680
|
},
|
|
681
|
-
|
|
681
|
+
16: (module) => {
|
|
682
682
|
module.exports = require("url");
|
|
683
683
|
},
|
|
684
684
|
};
|
|
@@ -716,6 +716,6 @@
|
|
|
716
716
|
})();
|
|
717
717
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
718
718
|
__nccwpck_require__.ab = __dirname + "/";
|
|
719
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
719
|
+
var __webpack_exports__ = __nccwpck_require__(924);
|
|
720
720
|
module.exports = __webpack_exports__;
|
|
721
721
|
})();
|