@rsbuild/core 1.3.9 → 1.3.11
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 +18 -20
- package/compiled/html-rspack-plugin/index.d.ts +51 -46
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/tinyglobby/index.js +50 -43
- package/compiled/tinyglobby/package.json +1 -1
- package/dist/index.cjs +150 -80
- package/dist/index.js +93 -61
- package/dist-types/configChain.d.ts +2 -2
- package/dist-types/index.d.ts +1 -1
- package/dist-types/plugins/inlineChunk.d.ts +5 -1
- package/dist-types/rspack/{preload/HtmlPreloadOrPrefetchPlugin.d.ts → resource-hints/HtmlResourceHintsPlugin.d.ts} +4 -4
- package/dist-types/rspack/{preload/helpers → resource-hints}/doesChunkBelongToHtml.d.ts +4 -4
- package/dist-types/rspack/{preload/helpers → resource-hints}/extractChunks.d.ts +2 -7
- package/dist-types/rspack/{preload/helpers/determineAsValue.d.ts → resource-hints/getResourceType.d.ts} +3 -3
- package/dist-types/types/config.d.ts +56 -16
- package/package.json +6 -6
- package/dist-types/rspack/preload/helpers/index.d.ts +0 -4
- package/dist-types/rspack/preload/helpers/type.d.ts +0 -13
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
459: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.callback = exports.promise = void 0;
|
|
7
|
-
const walker_1 = __nccwpck_require__(
|
|
7
|
+
const walker_1 = __nccwpck_require__(645);
|
|
8
8
|
function promise(root, options) {
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
10
10
|
callback(root, options, (err, output) => {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
exports.callback = callback;
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
963: (__unused_webpack_module, exports) => {
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.Counter = void 0;
|
|
26
26
|
class Counter {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
exports.Counter = Counter;
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
693: (__unused_webpack_module, exports) => {
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
49
|
exports.build = void 0;
|
|
50
50
|
const getArray = (paths) => paths;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
exports.build = build;
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
140: (__unused_webpack_module, exports) => {
|
|
58
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
59
|
exports.build = void 0;
|
|
60
60
|
const groupFiles = (groups, directory, files) => {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
exports.build = build;
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
97: (__unused_webpack_module, exports) => {
|
|
70
70
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71
71
|
exports.build = void 0;
|
|
72
72
|
const onlyCountsSync = (state) => state.counts;
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
}
|
|
110
110
|
exports.build = build;
|
|
111
111
|
},
|
|
112
|
-
|
|
112
|
+
541: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
113
113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
114
114
|
exports.build =
|
|
115
115
|
exports.joinDirectoryPath =
|
|
116
116
|
exports.joinPathWithBasePath =
|
|
117
117
|
void 0;
|
|
118
118
|
const path_1 = __nccwpck_require__(928);
|
|
119
|
-
const utils_1 = __nccwpck_require__(
|
|
119
|
+
const utils_1 = __nccwpck_require__(281);
|
|
120
120
|
function joinPathWithBasePath(filename, directoryPath) {
|
|
121
121
|
return directoryPath + filename;
|
|
122
122
|
}
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
exports.build = build;
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
143: (__unused_webpack_module, exports) => {
|
|
157
157
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
158
158
|
exports.build = void 0;
|
|
159
159
|
function pushDirectoryWithRelativePath(root) {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
exports.build = build;
|
|
192
192
|
},
|
|
193
|
-
|
|
193
|
+
368: (__unused_webpack_module, exports) => {
|
|
194
194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
195
195
|
exports.build = void 0;
|
|
196
196
|
const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
exports.build = build;
|
|
222
222
|
},
|
|
223
|
-
|
|
223
|
+
267: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
224
224
|
var __importDefault =
|
|
225
225
|
(this && this.__importDefault) ||
|
|
226
226
|
function (mod) {
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
return state.visited.includes(resolved + state.options.pathSeparator);
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
-
|
|
294
|
+
642: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
295
295
|
var __importDefault =
|
|
296
296
|
(this && this.__importDefault) ||
|
|
297
297
|
function (mod) {
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
}
|
|
348
348
|
exports.build = build;
|
|
349
349
|
},
|
|
350
|
-
|
|
350
|
+
388: (__unused_webpack_module, exports) => {
|
|
351
351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
352
352
|
exports.Queue = void 0;
|
|
353
353
|
class Queue {
|
|
@@ -365,17 +365,17 @@
|
|
|
365
365
|
}
|
|
366
366
|
exports.Queue = Queue;
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
192: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
369
369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
370
370
|
exports.sync = void 0;
|
|
371
|
-
const walker_1 = __nccwpck_require__(
|
|
371
|
+
const walker_1 = __nccwpck_require__(645);
|
|
372
372
|
function sync(root, options) {
|
|
373
373
|
const walker = new walker_1.Walker(root, options);
|
|
374
374
|
return walker.start();
|
|
375
375
|
}
|
|
376
376
|
exports.sync = sync;
|
|
377
377
|
},
|
|
378
|
-
|
|
378
|
+
645: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
379
379
|
var __createBinding =
|
|
380
380
|
(this && this.__createBinding) ||
|
|
381
381
|
(Object.create
|
|
@@ -431,17 +431,17 @@
|
|
|
431
431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
432
432
|
exports.Walker = void 0;
|
|
433
433
|
const path_1 = __nccwpck_require__(928);
|
|
434
|
-
const utils_1 = __nccwpck_require__(
|
|
435
|
-
const joinPath = __importStar(__nccwpck_require__(
|
|
436
|
-
const pushDirectory = __importStar(__nccwpck_require__(
|
|
437
|
-
const pushFile = __importStar(__nccwpck_require__(
|
|
438
|
-
const getArray = __importStar(__nccwpck_require__(
|
|
439
|
-
const groupFiles = __importStar(__nccwpck_require__(
|
|
440
|
-
const resolveSymlink = __importStar(__nccwpck_require__(
|
|
441
|
-
const invokeCallback = __importStar(__nccwpck_require__(
|
|
442
|
-
const walkDirectory = __importStar(__nccwpck_require__(
|
|
443
|
-
const queue_1 = __nccwpck_require__(
|
|
444
|
-
const counter_1 = __nccwpck_require__(
|
|
434
|
+
const utils_1 = __nccwpck_require__(281);
|
|
435
|
+
const joinPath = __importStar(__nccwpck_require__(541));
|
|
436
|
+
const pushDirectory = __importStar(__nccwpck_require__(143));
|
|
437
|
+
const pushFile = __importStar(__nccwpck_require__(368));
|
|
438
|
+
const getArray = __importStar(__nccwpck_require__(693));
|
|
439
|
+
const groupFiles = __importStar(__nccwpck_require__(140));
|
|
440
|
+
const resolveSymlink = __importStar(__nccwpck_require__(267));
|
|
441
|
+
const invokeCallback = __importStar(__nccwpck_require__(97));
|
|
442
|
+
const walkDirectory = __importStar(__nccwpck_require__(642));
|
|
443
|
+
const queue_1 = __nccwpck_require__(388);
|
|
444
|
+
const counter_1 = __nccwpck_require__(963);
|
|
445
445
|
class Walker {
|
|
446
446
|
root;
|
|
447
447
|
isSynchronous;
|
|
@@ -462,7 +462,9 @@
|
|
|
462
462
|
);
|
|
463
463
|
this.root = (0, utils_1.normalizePath)(root, options);
|
|
464
464
|
this.state = {
|
|
465
|
-
root:
|
|
465
|
+
root: (0, utils_1.isRootDirectory)(this.root)
|
|
466
|
+
? this.root
|
|
467
|
+
: this.root.slice(0, -1),
|
|
466
468
|
paths: [""].slice(0, 0),
|
|
467
469
|
groups: [],
|
|
468
470
|
counts: new counter_1.Counter(),
|
|
@@ -582,11 +584,11 @@
|
|
|
582
584
|
}
|
|
583
585
|
exports.Walker = Walker;
|
|
584
586
|
},
|
|
585
|
-
|
|
587
|
+
250: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
586
588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
587
589
|
exports.APIBuilder = void 0;
|
|
588
|
-
const async_1 = __nccwpck_require__(
|
|
589
|
-
const sync_1 = __nccwpck_require__(
|
|
590
|
+
const async_1 = __nccwpck_require__(459);
|
|
591
|
+
const sync_1 = __nccwpck_require__(192);
|
|
590
592
|
class APIBuilder {
|
|
591
593
|
root;
|
|
592
594
|
options;
|
|
@@ -606,11 +608,11 @@
|
|
|
606
608
|
}
|
|
607
609
|
exports.APIBuilder = APIBuilder;
|
|
608
610
|
},
|
|
609
|
-
|
|
611
|
+
256: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
610
612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
611
613
|
exports.Builder = void 0;
|
|
612
614
|
const path_1 = __nccwpck_require__(928);
|
|
613
|
-
const api_builder_1 = __nccwpck_require__(
|
|
615
|
+
const api_builder_1 = __nccwpck_require__(250);
|
|
614
616
|
var pm = null;
|
|
615
617
|
try {
|
|
616
618
|
__nccwpck_require__.ab + "index1.js";
|
|
@@ -731,7 +733,7 @@
|
|
|
731
733
|
}
|
|
732
734
|
exports.Builder = Builder;
|
|
733
735
|
},
|
|
734
|
-
|
|
736
|
+
648: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
735
737
|
var __createBinding =
|
|
736
738
|
(this && this.__createBinding) ||
|
|
737
739
|
(Object.create
|
|
@@ -769,21 +771,22 @@
|
|
|
769
771
|
};
|
|
770
772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
771
773
|
exports.fdir = void 0;
|
|
772
|
-
const builder_1 = __nccwpck_require__(
|
|
774
|
+
const builder_1 = __nccwpck_require__(256);
|
|
773
775
|
Object.defineProperty(exports, "fdir", {
|
|
774
776
|
enumerable: true,
|
|
775
777
|
get: function () {
|
|
776
778
|
return builder_1.Builder;
|
|
777
779
|
},
|
|
778
780
|
});
|
|
779
|
-
__exportStar(__nccwpck_require__(
|
|
781
|
+
__exportStar(__nccwpck_require__(205), exports);
|
|
780
782
|
},
|
|
781
|
-
|
|
783
|
+
205: (__unused_webpack_module, exports) => {
|
|
782
784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
783
785
|
},
|
|
784
|
-
|
|
786
|
+
281: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
785
787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
786
788
|
exports.normalizePath =
|
|
789
|
+
exports.isRootDirectory =
|
|
787
790
|
exports.convertSlashes =
|
|
788
791
|
exports.cleanPath =
|
|
789
792
|
void 0;
|
|
@@ -803,6 +806,10 @@
|
|
|
803
806
|
return path.replace(SLASHES_REGEX, separator);
|
|
804
807
|
}
|
|
805
808
|
exports.convertSlashes = convertSlashes;
|
|
809
|
+
function isRootDirectory(path) {
|
|
810
|
+
return path === "/" || /^[a-z]:\\$/i.test(path);
|
|
811
|
+
}
|
|
812
|
+
exports.isRootDirectory = isRootDirectory;
|
|
806
813
|
function normalizePath(path, options) {
|
|
807
814
|
const { resolvePaths, normalizePath, pathSeparator } = options;
|
|
808
815
|
const pathNeedsCleaning =
|
|
@@ -2401,7 +2408,7 @@
|
|
|
2401
2408
|
return last;
|
|
2402
2409
|
};
|
|
2403
2410
|
},
|
|
2404
|
-
|
|
2411
|
+
83: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2405
2412
|
var __create = Object.create;
|
|
2406
2413
|
var __defProp = Object.defineProperty;
|
|
2407
2414
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2445,7 +2452,7 @@
|
|
|
2445
2452
|
});
|
|
2446
2453
|
module.exports = __toCommonJS(index_exports);
|
|
2447
2454
|
var import_node_path = __toESM(__nccwpck_require__(928));
|
|
2448
|
-
var import_fdir = __nccwpck_require__(
|
|
2455
|
+
var import_fdir = __nccwpck_require__(648);
|
|
2449
2456
|
var import_picomatch2 = __toESM(__nccwpck_require__(976));
|
|
2450
2457
|
var import_picomatch = __toESM(__nccwpck_require__(976));
|
|
2451
2458
|
var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
@@ -2599,7 +2606,7 @@
|
|
|
2599
2606
|
props.commonPath = newCommonPath;
|
|
2600
2607
|
props.root =
|
|
2601
2608
|
newCommonPath.length > 0
|
|
2602
|
-
?
|
|
2609
|
+
? import_node_path.default.posix.join(cwd, ...newCommonPath)
|
|
2603
2610
|
: cwd;
|
|
2604
2611
|
}
|
|
2605
2612
|
return result;
|
|
@@ -2656,7 +2663,7 @@
|
|
|
2656
2663
|
}
|
|
2657
2664
|
function processPath(path2, cwd, root, isDirectory, absolute) {
|
|
2658
2665
|
const relativePath = absolute
|
|
2659
|
-
? path2.slice(root.length + 1) || "."
|
|
2666
|
+
? path2.slice(root === "/" ? 1 : root.length + 1) || "."
|
|
2660
2667
|
: path2;
|
|
2661
2668
|
if (root === cwd) {
|
|
2662
2669
|
return isDirectory && relativePath !== "."
|
|
@@ -2868,6 +2875,6 @@
|
|
|
2868
2875
|
}
|
|
2869
2876
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
2870
2877
|
__nccwpck_require__.ab = __dirname + "/";
|
|
2871
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
2878
|
+
var __webpack_exports__ = __nccwpck_require__(83);
|
|
2872
2879
|
module.exports = __webpack_exports__;
|
|
2873
2880
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"tinyglobby","author":"Superchupu","version":"0.2.
|
|
1
|
+
{"name":"tinyglobby","author":"Superchupu","version":"0.2.13","funding":{"url":"https://github.com/sponsors/SuperchupuDev"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|