@rsbuild/core 1.3.9 → 1.3.10
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/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/tinyglobby/index.js +50 -43
- package/compiled/tinyglobby/package.json +1 -1
- package/dist/index.cjs +151 -80
- package/dist/index.js +94 -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 +5 -5
- package/dist-types/rspack/preload/helpers/index.d.ts +0 -4
- package/dist-types/rspack/preload/helpers/type.d.ts +0 -13
|
@@ -4,8 +4,6 @@ import { Compiler, Compilation } from '@rspack/core';
|
|
|
4
4
|
declare class HtmlRspackPlugin {
|
|
5
5
|
constructor(options?: HtmlRspackPlugin.Options);
|
|
6
6
|
|
|
7
|
-
userOptions: HtmlRspackPlugin.Options;
|
|
8
|
-
|
|
9
7
|
/** Current HtmlRspackPlugin Major */
|
|
10
8
|
version: number;
|
|
11
9
|
|
|
@@ -196,55 +194,62 @@ declare namespace HtmlRspackPlugin {
|
|
|
196
194
|
webpackConfig: any;
|
|
197
195
|
}
|
|
198
196
|
|
|
199
|
-
interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}>;
|
|
197
|
+
interface AlterAssetTagsData {
|
|
198
|
+
assetTags: {
|
|
199
|
+
scripts: HtmlTagObject[];
|
|
200
|
+
styles: HtmlTagObject[];
|
|
201
|
+
meta: HtmlTagObject[];
|
|
202
|
+
};
|
|
203
|
+
publicPath: string;
|
|
204
|
+
outputName: string;
|
|
205
|
+
plugin: HtmlRspackPlugin;
|
|
206
|
+
}
|
|
210
207
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
interface AlterAssetTagGroupsData {
|
|
209
|
+
headTags: HtmlTagObject[];
|
|
210
|
+
bodyTags: HtmlTagObject[];
|
|
211
|
+
outputName: string;
|
|
212
|
+
publicPath: string;
|
|
213
|
+
plugin: HtmlRspackPlugin;
|
|
214
|
+
}
|
|
218
215
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
216
|
+
interface AfterTemplateExecutionData {
|
|
217
|
+
html: string;
|
|
218
|
+
headTags: HtmlTagObject[];
|
|
219
|
+
bodyTags: HtmlTagObject[];
|
|
220
|
+
outputName: string;
|
|
221
|
+
plugin: HtmlRspackPlugin;
|
|
222
|
+
}
|
|
226
223
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
224
|
+
interface BeforeAssetTagGenerationData {
|
|
225
|
+
assets: {
|
|
226
|
+
publicPath: string;
|
|
227
|
+
js: Array<string>;
|
|
228
|
+
css: Array<string>;
|
|
229
|
+
favicon?: string;
|
|
230
|
+
};
|
|
231
|
+
outputName: string;
|
|
232
|
+
plugin: HtmlRspackPlugin;
|
|
233
|
+
}
|
|
237
234
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
interface BeforeEmitData {
|
|
236
|
+
html: string;
|
|
237
|
+
outputName: string;
|
|
238
|
+
plugin: HtmlRspackPlugin;
|
|
239
|
+
}
|
|
243
240
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
interface AfterEmitData {
|
|
242
|
+
outputName: string;
|
|
243
|
+
plugin: HtmlRspackPlugin;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
interface Hooks {
|
|
247
|
+
alterAssetTags: AsyncSeriesWaterfallHook<AlterAssetTagsData>;
|
|
248
|
+
alterAssetTagGroups: AsyncSeriesWaterfallHook<AlterAssetTagGroupsData>;
|
|
249
|
+
afterTemplateExecution: AsyncSeriesWaterfallHook<AfterTemplateExecutionData>;
|
|
250
|
+
beforeAssetTagGeneration: AsyncSeriesWaterfallHook<BeforeAssetTagGenerationData>;
|
|
251
|
+
beforeEmit: AsyncSeriesWaterfallHook<BeforeEmitData>;
|
|
252
|
+
afterEmit: AsyncSeriesWaterfallHook<AfterEmitData>;
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
740: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(441);
|
|
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
|
+
441: (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
|
+
367: (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
|
+
178: (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
|
+
585: (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
|
+
704: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
381: (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__(740);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(704);
|
|
619
|
+
const prettyError = __nccwpck_require__(178);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(367);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(585).getHtmlRspackPluginHooks;
|
|
623
623
|
class HtmlRspackPlugin {
|
|
624
624
|
constructor(userOptions = {}) {
|
|
625
625
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1586,6 +1586,6 @@
|
|
|
1586
1586
|
}
|
|
1587
1587
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1588
1588
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1589
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1589
|
+
var __webpack_exports__ = __nccwpck_require__(381);
|
|
1590
1590
|
module.exports = __webpack_exports__;
|
|
1591
1591
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.
|
|
1
|
+
{"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.5","funding":{"type":"opencollective","url":"https://opencollective.com/html-webpack-plugin"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -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"}
|