@rsbuild/core 1.2.6 → 1.2.8
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/css-loader/index.js +41 -41
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss/index.js +107 -105
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rsbuild-dev-middleware/index.js +25 -25
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/style-loader/index.js +10 -10
- package/dist/index.cjs +81 -66
- package/dist/index.js +81 -66
- package/dist-types/createRsbuild.d.ts +3 -0
- package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +3 -3
- package/dist-types/rspack/preload/helpers/doesChunkBelongToHtml.d.ts +2 -2
- package/dist-types/server/getDevMiddlewares.d.ts +3 -2
- package/dist-types/server/runner/basic.d.ts +6 -0
- package/dist-types/server/runner/index.d.ts +6 -4
- package/dist-types/server/runner/type.d.ts +7 -1
- package/dist-types/server/watchFiles.d.ts +3 -2
- package/dist-types/types/config.d.ts +11 -3
- package/dist-types/types/hooks.d.ts +8 -0
- package/dist-types/types/plugin.d.ts +138 -66
- package/dist-types/types/rsbuild.d.ts +96 -29
- package/package.json +4 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
6033: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(5635);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(3198).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
5635: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(9409));
|
|
15
|
-
var _plugins = __nccwpck_require__(
|
|
16
|
-
var _utils = __nccwpck_require__(
|
|
15
|
+
var _plugins = __nccwpck_require__(5920);
|
|
16
|
+
var _utils = __nccwpck_require__(3198);
|
|
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
|
-
|
|
239
|
+
5920: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
240
240
|
"use strict";
|
|
241
241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
242
242
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -258,22 +258,22 @@
|
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
var _postcssImportParser = _interopRequireDefault(
|
|
261
|
-
__nccwpck_require__(
|
|
261
|
+
__nccwpck_require__(8755),
|
|
262
262
|
);
|
|
263
263
|
var _postcssIcssParser = _interopRequireDefault(
|
|
264
|
-
__nccwpck_require__(
|
|
264
|
+
__nccwpck_require__(6110),
|
|
265
265
|
);
|
|
266
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
266
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(9865));
|
|
267
267
|
function _interopRequireDefault(obj) {
|
|
268
268
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
6110: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
272
272
|
"use strict";
|
|
273
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
274
274
|
exports["default"] = void 0;
|
|
275
|
-
var _icssUtils = __nccwpck_require__(
|
|
276
|
-
var _utils = __nccwpck_require__(
|
|
275
|
+
var _icssUtils = __nccwpck_require__(5032);
|
|
276
|
+
var _utils = __nccwpck_require__(3198);
|
|
277
277
|
const plugin = (options = {}) => ({
|
|
278
278
|
postcssPlugin: "postcss-icss-parser",
|
|
279
279
|
async OnceExit(root) {
|
|
@@ -372,14 +372,14 @@
|
|
|
372
372
|
plugin.postcss = true;
|
|
373
373
|
var _default = (exports["default"] = plugin);
|
|
374
374
|
},
|
|
375
|
-
|
|
375
|
+
8755: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
376
376
|
"use strict";
|
|
377
377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
378
378
|
exports["default"] = void 0;
|
|
379
379
|
var _postcssValueParser = _interopRequireDefault(
|
|
380
380
|
__nccwpck_require__(2948),
|
|
381
381
|
);
|
|
382
|
-
var _utils = __nccwpck_require__(
|
|
382
|
+
var _utils = __nccwpck_require__(3198);
|
|
383
383
|
function _interopRequireDefault(obj) {
|
|
384
384
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
385
385
|
}
|
|
@@ -684,14 +684,14 @@
|
|
|
684
684
|
plugin.postcss = true;
|
|
685
685
|
var _default = (exports["default"] = plugin);
|
|
686
686
|
},
|
|
687
|
-
|
|
687
|
+
9865: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
688
688
|
"use strict";
|
|
689
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
690
690
|
exports["default"] = void 0;
|
|
691
691
|
var _postcssValueParser = _interopRequireDefault(
|
|
692
692
|
__nccwpck_require__(2948),
|
|
693
693
|
);
|
|
694
|
-
var _utils = __nccwpck_require__(
|
|
694
|
+
var _utils = __nccwpck_require__(3198);
|
|
695
695
|
function _interopRequireDefault(obj) {
|
|
696
696
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
697
697
|
}
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
plugin.postcss = true;
|
|
1035
1035
|
var _default = (exports["default"] = plugin);
|
|
1036
1036
|
},
|
|
1037
|
-
|
|
1037
|
+
3198: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1038
1038
|
"use strict";
|
|
1039
1039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1040
1040
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -1067,16 +1067,16 @@
|
|
|
1067
1067
|
var _url = __nccwpck_require__(7016);
|
|
1068
1068
|
var _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
1069
1069
|
var _postcssModulesValues = _interopRequireDefault(
|
|
1070
|
-
__nccwpck_require__(
|
|
1070
|
+
__nccwpck_require__(7708),
|
|
1071
1071
|
);
|
|
1072
1072
|
var _postcssModulesLocalByDefault = _interopRequireDefault(
|
|
1073
|
-
__nccwpck_require__(
|
|
1073
|
+
__nccwpck_require__(2323),
|
|
1074
1074
|
);
|
|
1075
1075
|
var _postcssModulesExtractImports = _interopRequireDefault(
|
|
1076
|
-
__nccwpck_require__(
|
|
1076
|
+
__nccwpck_require__(2516),
|
|
1077
1077
|
);
|
|
1078
1078
|
var _postcssModulesScope = _interopRequireDefault(
|
|
1079
|
-
__nccwpck_require__(
|
|
1079
|
+
__nccwpck_require__(9591),
|
|
1080
1080
|
);
|
|
1081
1081
|
function _interopRequireDefault(obj) {
|
|
1082
1082
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -2269,7 +2269,7 @@
|
|
|
2269
2269
|
cssesc.version = "3.0.0";
|
|
2270
2270
|
module.exports = cssesc;
|
|
2271
2271
|
},
|
|
2272
|
-
|
|
2272
|
+
4437: (module) => {
|
|
2273
2273
|
const createImports = (imports, postcss, mode = "rule") =>
|
|
2274
2274
|
Object.keys(imports).map((path) => {
|
|
2275
2275
|
const aliases = imports[path];
|
|
@@ -2321,7 +2321,7 @@
|
|
|
2321
2321
|
];
|
|
2322
2322
|
module.exports = createICSSRules;
|
|
2323
2323
|
},
|
|
2324
|
-
|
|
2324
|
+
5687: (module) => {
|
|
2325
2325
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
2326
2326
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
2327
2327
|
const getDeclsObject = (rule) => {
|
|
@@ -2379,11 +2379,11 @@
|
|
|
2379
2379
|
};
|
|
2380
2380
|
module.exports = extractICSS;
|
|
2381
2381
|
},
|
|
2382
|
-
|
|
2383
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2384
|
-
const replaceSymbols = __nccwpck_require__(
|
|
2385
|
-
const extractICSS = __nccwpck_require__(
|
|
2386
|
-
const createICSSRules = __nccwpck_require__(
|
|
2382
|
+
5032: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2383
|
+
const replaceValueSymbols = __nccwpck_require__(6406);
|
|
2384
|
+
const replaceSymbols = __nccwpck_require__(5575);
|
|
2385
|
+
const extractICSS = __nccwpck_require__(5687);
|
|
2386
|
+
const createICSSRules = __nccwpck_require__(4437);
|
|
2387
2387
|
module.exports = {
|
|
2388
2388
|
replaceValueSymbols,
|
|
2389
2389
|
replaceSymbols,
|
|
@@ -2391,8 +2391,8 @@
|
|
|
2391
2391
|
createICSSRules,
|
|
2392
2392
|
};
|
|
2393
2393
|
},
|
|
2394
|
-
|
|
2395
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2394
|
+
5575: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2395
|
+
const replaceValueSymbols = __nccwpck_require__(6406);
|
|
2396
2396
|
const replaceSymbols = (css, replacements) => {
|
|
2397
2397
|
css.walk((node) => {
|
|
2398
2398
|
if (node.type === "decl" && node.value) {
|
|
@@ -2415,7 +2415,7 @@
|
|
|
2415
2415
|
};
|
|
2416
2416
|
module.exports = replaceSymbols;
|
|
2417
2417
|
},
|
|
2418
|
-
|
|
2418
|
+
6406: (module) => {
|
|
2419
2419
|
const matchValueName = /[$]?[\w-]+/g;
|
|
2420
2420
|
const replaceValueSymbols = (value, replacements) => {
|
|
2421
2421
|
let matches;
|
|
@@ -2433,8 +2433,8 @@
|
|
|
2433
2433
|
};
|
|
2434
2434
|
module.exports = replaceValueSymbols;
|
|
2435
2435
|
},
|
|
2436
|
-
|
|
2437
|
-
const topologicalSort = __nccwpck_require__(
|
|
2436
|
+
2516: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2437
|
+
const topologicalSort = __nccwpck_require__(8039);
|
|
2438
2438
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
2439
2439
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
|
2440
2440
|
const VISITED_MARKER = 1;
|
|
@@ -2580,7 +2580,7 @@
|
|
|
2580
2580
|
};
|
|
2581
2581
|
module.exports.postcss = true;
|
|
2582
2582
|
},
|
|
2583
|
-
|
|
2583
|
+
8039: (module) => {
|
|
2584
2584
|
const PERMANENT_MARKER = 2;
|
|
2585
2585
|
const TEMPORARY_MARKER = 1;
|
|
2586
2586
|
function createError(node, graph) {
|
|
@@ -2629,11 +2629,11 @@
|
|
|
2629
2629
|
}
|
|
2630
2630
|
module.exports = topologicalSort;
|
|
2631
2631
|
},
|
|
2632
|
-
|
|
2632
|
+
2323: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2633
2633
|
"use strict";
|
|
2634
2634
|
const selectorParser = __nccwpck_require__(7230);
|
|
2635
2635
|
const valueParser = __nccwpck_require__(2948);
|
|
2636
|
-
const { extractICSS } = __nccwpck_require__(
|
|
2636
|
+
const { extractICSS } = __nccwpck_require__(5032);
|
|
2637
2637
|
const isSpacing = (node) =>
|
|
2638
2638
|
node.type === "combinator" && node.value === " ";
|
|
2639
2639
|
function normalizeNodeArray(nodes) {
|
|
@@ -3144,7 +3144,7 @@
|
|
|
3144
3144
|
};
|
|
3145
3145
|
module.exports.postcss = true;
|
|
3146
3146
|
},
|
|
3147
|
-
|
|
3147
|
+
9591: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3148
3148
|
"use strict";
|
|
3149
3149
|
const selectorParser = __nccwpck_require__(7230);
|
|
3150
3150
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3451,9 +3451,9 @@
|
|
|
3451
3451
|
};
|
|
3452
3452
|
module.exports = plugin;
|
|
3453
3453
|
},
|
|
3454
|
-
|
|
3454
|
+
7708: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3455
3455
|
"use strict";
|
|
3456
|
-
const ICSSUtils = __nccwpck_require__(
|
|
3456
|
+
const ICSSUtils = __nccwpck_require__(5032);
|
|
3457
3457
|
const matchImports =
|
|
3458
3458
|
/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
3459
3459
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
@@ -7984,6 +7984,6 @@
|
|
|
7984
7984
|
}
|
|
7985
7985
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
7986
7986
|
__nccwpck_require__.ab = __dirname + "/";
|
|
7987
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
7987
|
+
var __webpack_exports__ = __nccwpck_require__(6033);
|
|
7988
7988
|
module.exports = __webpack_exports__;
|
|
7989
7989
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
516: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(481);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
}
|
|
305
305
|
module.exports = { CachedChildCompilation };
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
481: (module) => {
|
|
308
308
|
"use strict";
|
|
309
309
|
class HtmlWebpackChildCompiler {
|
|
310
310
|
constructor(templates) {
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
module.exports = { HtmlWebpackChildCompiler };
|
|
475
475
|
},
|
|
476
|
-
|
|
476
|
+
327: (module) => {
|
|
477
477
|
"use strict";
|
|
478
478
|
module.exports = {};
|
|
479
479
|
module.exports.none = (chunks) => chunks;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
};
|
|
493
493
|
module.exports.auto = module.exports.none;
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
130: (module) => {
|
|
496
496
|
"use strict";
|
|
497
497
|
module.exports = function (err) {
|
|
498
498
|
return {
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
},
|
|
516
|
-
|
|
516
|
+
641: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
517
517
|
"use strict";
|
|
518
518
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
|
|
519
519
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
}
|
|
540
540
|
module.exports = { getHtmlRspackPluginHooks };
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
248: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
181: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
611
611
|
"use strict";
|
|
612
612
|
const promisify = __nccwpck_require__(23).promisify;
|
|
613
613
|
const vm = __nccwpck_require__(154);
|
|
614
614
|
const fs = __nccwpck_require__(896);
|
|
615
615
|
const path = __nccwpck_require__(928);
|
|
616
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
616
|
+
const { CachedChildCompilation } = __nccwpck_require__(516);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(248);
|
|
619
|
+
const prettyError = __nccwpck_require__(130);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(327);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(641).getHtmlRspackPluginHooks;
|
|
623
623
|
class HtmlRspackPlugin {
|
|
624
624
|
constructor(userOptions = {}) {
|
|
625
625
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1578,6 +1578,6 @@
|
|
|
1578
1578
|
}
|
|
1579
1579
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1580
1580
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1581
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1581
|
+
var __webpack_exports__ = __nccwpck_require__(181);
|
|
1582
1582
|
module.exports = __webpack_exports__;
|
|
1583
1583
|
})();
|