unplugin-vue-components 28.4.0 → 28.4.1
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/README.md +2 -2
- package/dist/{chunk-Z44OFZ6M.cjs → chunk-34OWILDZ.cjs} +47 -43
- package/dist/{chunk-CYD4VYHZ.cjs → chunk-6XRV7GTU.cjs} +2 -2
- package/dist/{chunk-UZ5LIG7M.js → chunk-GDTH3WEN.js} +2 -2
- package/dist/{chunk-GDXMSVFX.js → chunk-HW27BU5T.js} +8 -4
- package/dist/esbuild.cjs +3 -3
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/nuxt.cjs +4 -4
- package/dist/nuxt.js +2 -2
- package/dist/resolvers.cjs +24 -24
- package/dist/resolvers.js +1 -1
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +3 -3
- package/dist/webpack.js +2 -2
- package/package.json +25 -23
package/README.md
CHANGED
|
@@ -341,7 +341,7 @@ export default {
|
|
|
341
341
|
|
|
342
342
|
// `customLoaderMatcher` is depreacted, use `include` instead
|
|
343
343
|
- customLoaderMatcher: id => id.endsWith('.md'),
|
|
344
|
-
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
|
344
|
+
+ include: [/\.vue$/, /\.vue\?vue/, /\.vue\.[tj]sx?\?vue/, /\.md$/],
|
|
345
345
|
}),
|
|
346
346
|
],
|
|
347
347
|
}
|
|
@@ -401,7 +401,7 @@ Components({
|
|
|
401
401
|
|
|
402
402
|
// Filters for transforming targets (components to insert the auto import)
|
|
403
403
|
// Note these are NOT about including/excluding components registered - use `globs` or `excludeNames` for that
|
|
404
|
-
include: [/\.vue$/, /\.vue\?vue/],
|
|
404
|
+
include: [/\.vue$/, /\.vue\?vue/, /\.vue\.[tj]sx?\?vue/],
|
|
405
405
|
exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
406
406
|
|
|
407
407
|
// Filters for component names that will not be imported
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
|
|
19
19
|
|
|
20
20
|
// src/core/unplugin.ts
|
|
21
21
|
var _fs = require('fs');
|
|
@@ -57,7 +57,7 @@ var TypeImportPresets = [
|
|
|
57
57
|
|
|
58
58
|
// src/core/type-imports/detect.ts
|
|
59
59
|
function detectTypeImports() {
|
|
60
|
-
return TypeImportPresets.map((i) => _localpkg.isPackageExists.call(void 0, i.from) ? i : void 0).filter(
|
|
60
|
+
return TypeImportPresets.map((i) => _localpkg.isPackageExists.call(void 0, i.from) ? i : void 0).filter(_chunk6XRV7GTUcjs.notNullish);
|
|
61
61
|
}
|
|
62
62
|
function resolveTypeImports(imports) {
|
|
63
63
|
return imports.flatMap((i) => i.names.map((n) => ({ from: i.from, name: n, as: n })));
|
|
@@ -88,14 +88,14 @@ function parseDeclaration(code) {
|
|
|
88
88
|
function stringifyComponentInfo(filepath, { from: path, as: name, name: importName }, importPathTransform) {
|
|
89
89
|
if (!name)
|
|
90
90
|
return void 0;
|
|
91
|
-
path =
|
|
91
|
+
path = _chunk6XRV7GTUcjs.getTransformedPath.call(void 0, path, importPathTransform);
|
|
92
92
|
const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
|
|
93
|
-
const entry = `typeof import('${
|
|
93
|
+
const entry = `typeof import('${_chunk6XRV7GTUcjs.slash.call(void 0, related)}')['${importName || "default"}']`;
|
|
94
94
|
return [name, entry];
|
|
95
95
|
}
|
|
96
96
|
function stringifyComponentsInfo(filepath, components, importPathTransform) {
|
|
97
97
|
return Object.fromEntries(
|
|
98
|
-
components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(
|
|
98
|
+
components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(_chunk6XRV7GTUcjs.notNullish)
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
function getDeclarationImports(ctx, filepath) {
|
|
@@ -205,22 +205,22 @@ var defaultOptions = {
|
|
|
205
205
|
allowOverrides: false
|
|
206
206
|
};
|
|
207
207
|
function normalizeResolvers(resolvers) {
|
|
208
|
-
return
|
|
208
|
+
return _chunk6XRV7GTUcjs.toArray.call(void 0, resolvers).flat().map((r) => typeof r === "function" ? { resolve: r, type: "component" } : r);
|
|
209
209
|
}
|
|
210
210
|
function resolveGlobsExclude(root, glob) {
|
|
211
211
|
const excludeReg = /^!/;
|
|
212
|
-
return
|
|
212
|
+
return _chunk6XRV7GTUcjs.slash.call(void 0, `${excludeReg.test(glob) ? "!" : ""}${_path.resolve.call(void 0, root, glob.replace(excludeReg, ""))}`);
|
|
213
213
|
}
|
|
214
214
|
function resolveOptions(options, root) {
|
|
215
215
|
const resolved = Object.assign({}, defaultOptions, options);
|
|
216
216
|
resolved.resolvers = normalizeResolvers(resolved.resolvers);
|
|
217
|
-
resolved.extensions =
|
|
217
|
+
resolved.extensions = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.extensions);
|
|
218
218
|
if (resolved.globs) {
|
|
219
|
-
resolved.globs =
|
|
219
|
+
resolved.globs = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.globs).map((glob) => resolveGlobsExclude(root, glob));
|
|
220
220
|
resolved.resolvedDirs = [];
|
|
221
221
|
} else {
|
|
222
222
|
const extsGlob = resolved.extensions.length === 1 ? resolved.extensions : `{${resolved.extensions.join(",")}}`;
|
|
223
|
-
resolved.dirs =
|
|
223
|
+
resolved.dirs = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.dirs);
|
|
224
224
|
const globs = resolved.dirs.map((i) => resolveGlobsExclude(root, i));
|
|
225
225
|
resolved.resolvedDirs = globs.filter((i) => !i.startsWith("!"));
|
|
226
226
|
resolved.globs = globs.map((i) => {
|
|
@@ -229,14 +229,12 @@ function resolveOptions(options, root) {
|
|
|
229
229
|
prefix = "!";
|
|
230
230
|
i = i.slice(1);
|
|
231
231
|
}
|
|
232
|
-
return resolved.deep ? prefix +
|
|
232
|
+
return resolved.deep ? prefix + _chunk6XRV7GTUcjs.slash.call(void 0, _path.join.call(void 0, i, `**/*.${extsGlob}`)) : prefix + _chunk6XRV7GTUcjs.slash.call(void 0, _path.join.call(void 0, i, `*.${extsGlob}`));
|
|
233
233
|
});
|
|
234
234
|
if (!resolved.extensions.length)
|
|
235
235
|
throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
resolved.globsExclude = [`**/node_modules/**`];
|
|
239
|
-
resolved.globsExclude = _chunkCYD4VYHZcjs.toArray.call(void 0, resolved.globsExclude || []).map((i) => resolveGlobsExclude(root, i));
|
|
237
|
+
resolved.globsExclude = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.globsExclude || []).map((i) => resolveGlobsExclude(root, i));
|
|
240
238
|
resolved.globs = resolved.globs.filter((i) => {
|
|
241
239
|
if (!i.startsWith("!"))
|
|
242
240
|
return true;
|
|
@@ -313,12 +311,12 @@ async function transformComponent(code, transformer2, s, ctx, sfcPath) {
|
|
|
313
311
|
const results = transformer2 === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s, ctx.options.transformerUserResolveFunctions);
|
|
314
312
|
for (const { rawName, replace } of results) {
|
|
315
313
|
debug2(`| ${rawName}`);
|
|
316
|
-
const name =
|
|
314
|
+
const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, rawName);
|
|
317
315
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
318
316
|
const component = await ctx.findComponent(name, "component", [sfcPath]);
|
|
319
317
|
if (component) {
|
|
320
318
|
const varName = `__unplugin_components_${no}`;
|
|
321
|
-
s.prepend(`${
|
|
319
|
+
s.prepend(`${_chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, { ...component, as: varName }, ctx)};
|
|
322
320
|
`);
|
|
323
321
|
no += 1;
|
|
324
322
|
replace(varName);
|
|
@@ -424,13 +422,13 @@ async function transformDirective(code, transformer2, s, ctx, sfcPath) {
|
|
|
424
422
|
const results = await (transformer2 === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
|
|
425
423
|
for (const { rawName, replace } of results) {
|
|
426
424
|
debug3(`| ${rawName}`);
|
|
427
|
-
const name = `${
|
|
425
|
+
const name = `${_chunk6XRV7GTUcjs.DIRECTIVE_IMPORT_PREFIX}${_chunk6XRV7GTUcjs.pascalCase.call(void 0, rawName)}`;
|
|
428
426
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
429
427
|
const directive = await ctx.findComponent(name, "directive", [sfcPath]);
|
|
430
428
|
if (!directive)
|
|
431
429
|
continue;
|
|
432
430
|
const varName = `__unplugin_directives_${no}`;
|
|
433
|
-
s.prepend(`${
|
|
431
|
+
s.prepend(`${_chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, { ...directive, as: varName }, ctx)};
|
|
434
432
|
`);
|
|
435
433
|
no += 1;
|
|
436
434
|
replace(varName);
|
|
@@ -449,7 +447,7 @@ function transformer(ctx, transformer2) {
|
|
|
449
447
|
await transformComponent(code, transformer2, s, ctx, sfcPath);
|
|
450
448
|
if (ctx.options.directives)
|
|
451
449
|
await transformDirective(code, transformer2, s, ctx, sfcPath);
|
|
452
|
-
s.prepend(
|
|
450
|
+
s.prepend(_chunk6XRV7GTUcjs.DISABLE_COMMENT);
|
|
453
451
|
const result = { code: s.toString() };
|
|
454
452
|
if (ctx.sourcemap)
|
|
455
453
|
result.map = s.generateMap({ source: id, includeContent: true, hires: "boundary" });
|
|
@@ -469,7 +467,7 @@ var Context = (_class = class {
|
|
|
469
467
|
constructor(rawOptions) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);
|
|
470
468
|
this.rawOptions = rawOptions;
|
|
471
469
|
this.options = resolveOptions(rawOptions, this.root);
|
|
472
|
-
this.generateDeclaration =
|
|
470
|
+
this.generateDeclaration = _chunk6XRV7GTUcjs.throttle.call(void 0, 500, this._generateDeclaration.bind(this), { noLeading: false });
|
|
473
471
|
this.setTransformer(this.options.transformer);
|
|
474
472
|
}
|
|
475
473
|
|
|
@@ -495,7 +493,7 @@ var Context = (_class = class {
|
|
|
495
493
|
this.transformer = transformer(this, name || "vue3");
|
|
496
494
|
}
|
|
497
495
|
transform(code, id) {
|
|
498
|
-
const { path, query } =
|
|
496
|
+
const { path, query } = _chunk6XRV7GTUcjs.parseId.call(void 0, id);
|
|
499
497
|
return this.transformer(code, id, path, query);
|
|
500
498
|
}
|
|
501
499
|
setupViteServer(server) {
|
|
@@ -507,16 +505,16 @@ var Context = (_class = class {
|
|
|
507
505
|
setupWatcher(watcher) {
|
|
508
506
|
const { globs } = this.options;
|
|
509
507
|
watcher.on("unlink", (path) => {
|
|
510
|
-
if (!
|
|
508
|
+
if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
|
|
511
509
|
return;
|
|
512
|
-
path =
|
|
510
|
+
path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
|
|
513
511
|
this.removeComponents(path);
|
|
514
512
|
this.onUpdate(path);
|
|
515
513
|
});
|
|
516
514
|
watcher.on("add", (path) => {
|
|
517
|
-
if (!
|
|
515
|
+
if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
|
|
518
516
|
return;
|
|
519
|
-
path =
|
|
517
|
+
path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
|
|
520
518
|
this.addComponents(path);
|
|
521
519
|
this.onUpdate(path);
|
|
522
520
|
});
|
|
@@ -527,16 +525,16 @@ var Context = (_class = class {
|
|
|
527
525
|
setupWatcherWebpack(watcher, emitUpdate) {
|
|
528
526
|
const { globs } = this.options;
|
|
529
527
|
watcher.on("unlink", (path) => {
|
|
530
|
-
if (!
|
|
528
|
+
if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
|
|
531
529
|
return;
|
|
532
|
-
path =
|
|
530
|
+
path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
|
|
533
531
|
this.removeComponents(path);
|
|
534
532
|
emitUpdate(path, "unlink");
|
|
535
533
|
});
|
|
536
534
|
watcher.on("add", (path) => {
|
|
537
|
-
if (!
|
|
535
|
+
if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
|
|
538
536
|
return;
|
|
539
|
-
path =
|
|
537
|
+
path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
|
|
540
538
|
this.addComponents(path);
|
|
541
539
|
emitUpdate(path, "add");
|
|
542
540
|
});
|
|
@@ -556,7 +554,7 @@ var Context = (_class = class {
|
|
|
556
554
|
addComponents(paths) {
|
|
557
555
|
debug5.components("add", paths);
|
|
558
556
|
const size = this._componentPaths.size;
|
|
559
|
-
|
|
557
|
+
_chunk6XRV7GTUcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.add(p));
|
|
560
558
|
if (this._componentPaths.size !== size) {
|
|
561
559
|
this.updateComponentNameMap();
|
|
562
560
|
return true;
|
|
@@ -574,7 +572,7 @@ var Context = (_class = class {
|
|
|
574
572
|
removeComponents(paths) {
|
|
575
573
|
debug5.components("remove", paths);
|
|
576
574
|
const size = this._componentPaths.size;
|
|
577
|
-
|
|
575
|
+
_chunk6XRV7GTUcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.delete(p));
|
|
578
576
|
if (this._componentPaths.size !== size) {
|
|
579
577
|
this.updateComponentNameMap();
|
|
580
578
|
return true;
|
|
@@ -590,10 +588,10 @@ var Context = (_class = class {
|
|
|
590
588
|
updates: []
|
|
591
589
|
};
|
|
592
590
|
const timestamp = +/* @__PURE__ */ new Date();
|
|
593
|
-
const name =
|
|
591
|
+
const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, _chunk6XRV7GTUcjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
594
592
|
Object.entries(this._componentUsageMap).forEach(([key, values]) => {
|
|
595
593
|
if (values.has(name)) {
|
|
596
|
-
const r = `/${
|
|
594
|
+
const r = `/${_chunk6XRV7GTUcjs.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
|
|
597
595
|
payload.updates.push({
|
|
598
596
|
acceptedPath: r,
|
|
599
597
|
path: r,
|
|
@@ -608,8 +606,8 @@ var Context = (_class = class {
|
|
|
608
606
|
updateComponentNameMap() {
|
|
609
607
|
this._componentNameMap = {};
|
|
610
608
|
Array.from(this._componentPaths).forEach((path) => {
|
|
611
|
-
const name =
|
|
612
|
-
if (
|
|
609
|
+
const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, _chunk6XRV7GTUcjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
610
|
+
if (_chunk6XRV7GTUcjs.isExclude.call(void 0, name, this.options.excludeNames)) {
|
|
613
611
|
debug5.components("exclude", name);
|
|
614
612
|
return;
|
|
615
613
|
}
|
|
@@ -630,7 +628,7 @@ var Context = (_class = class {
|
|
|
630
628
|
for (const resolver of this.options.resolvers) {
|
|
631
629
|
if (resolver.type !== type)
|
|
632
630
|
continue;
|
|
633
|
-
const result = await resolver.resolve(type === "directive" ? name.slice(
|
|
631
|
+
const result = await resolver.resolve(type === "directive" ? name.slice(_chunk6XRV7GTUcjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
|
|
634
632
|
if (!result)
|
|
635
633
|
continue;
|
|
636
634
|
if (typeof result === "string") {
|
|
@@ -641,7 +639,7 @@ var Context = (_class = class {
|
|
|
641
639
|
} else {
|
|
642
640
|
info = {
|
|
643
641
|
as: name,
|
|
644
|
-
...
|
|
642
|
+
..._chunk6XRV7GTUcjs.normalizeComponentInfo.call(void 0, result)
|
|
645
643
|
};
|
|
646
644
|
}
|
|
647
645
|
if (type === "component")
|
|
@@ -653,12 +651,12 @@ var Context = (_class = class {
|
|
|
653
651
|
return void 0;
|
|
654
652
|
}
|
|
655
653
|
normalizePath(path) {
|
|
656
|
-
return
|
|
654
|
+
return _chunk6XRV7GTUcjs.resolveAlias.call(void 0, path, _optionalChain([this, 'access', _31 => _31.viteConfig, 'optionalAccess', _32 => _32.resolve, 'optionalAccess', _33 => _33.alias]) || _optionalChain([this, 'access', _34 => _34.viteConfig, 'optionalAccess', _35 => _35.alias]) || []);
|
|
657
655
|
}
|
|
658
656
|
relative(path) {
|
|
659
657
|
if (path.startsWith("/") && !path.startsWith(this.root))
|
|
660
|
-
return
|
|
661
|
-
return
|
|
658
|
+
return _chunk6XRV7GTUcjs.slash.call(void 0, path.slice(1));
|
|
659
|
+
return _chunk6XRV7GTUcjs.slash.call(void 0, _path.relative.call(void 0, this.root, path));
|
|
662
660
|
}
|
|
663
661
|
__init10() {this._searched = false}
|
|
664
662
|
/**
|
|
@@ -697,7 +695,13 @@ var Context = (_class = class {
|
|
|
697
695
|
var PLUGIN_NAME = "unplugin:webpack";
|
|
698
696
|
var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
699
697
|
const filter = _unpluginutils.createFilter.call(void 0,
|
|
700
|
-
options.include || [
|
|
698
|
+
options.include || [
|
|
699
|
+
/\.vue$/,
|
|
700
|
+
/\.vue\?vue/,
|
|
701
|
+
/\.vue\.[tj]sx?\?vue/,
|
|
702
|
+
// for vue-loader with experimentalInlineMatchResource enabled
|
|
703
|
+
/\.vue\?v=/
|
|
704
|
+
],
|
|
701
705
|
options.exclude || [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/]
|
|
702
706
|
);
|
|
703
707
|
const ctx = new Context(options);
|
|
@@ -706,7 +710,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
706
710
|
return await ctx.findComponent(name, "component", filename ? [filename] : []);
|
|
707
711
|
},
|
|
708
712
|
stringifyImport(info) {
|
|
709
|
-
return
|
|
713
|
+
return _chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, info, ctx);
|
|
710
714
|
}
|
|
711
715
|
};
|
|
712
716
|
return {
|
|
@@ -717,7 +721,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
717
721
|
return filter(id);
|
|
718
722
|
},
|
|
719
723
|
async transform(code, id) {
|
|
720
|
-
if (!
|
|
724
|
+
if (!_chunk6XRV7GTUcjs.shouldTransform.call(void 0, code))
|
|
721
725
|
return null;
|
|
722
726
|
try {
|
|
723
727
|
const result = await ctx.transform(code, id);
|
|
@@ -216,7 +216,7 @@ var require_brace_expansion = _chunk3HT76LNNcjs.__commonJS.call(void 0, {
|
|
|
216
216
|
var _path = require('path');
|
|
217
217
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
218
218
|
|
|
219
|
-
// node_modules/.pnpm/@antfu+utils@9.
|
|
219
|
+
// node_modules/.pnpm/@antfu+utils@9.1.0/node_modules/@antfu/utils/dist/index.mjs
|
|
220
220
|
function toArray(array) {
|
|
221
221
|
array = _nullishCoalesce(array, () => ( []));
|
|
222
222
|
return Array.isArray(array) ? array : [array];
|
|
@@ -224,10 +224,10 @@ function toArray(array) {
|
|
|
224
224
|
function notNullish(v) {
|
|
225
225
|
return v != null;
|
|
226
226
|
}
|
|
227
|
-
var VOID = Symbol("p-void");
|
|
228
227
|
function slash(str) {
|
|
229
228
|
return str.replace(/\\/g, "/");
|
|
230
229
|
}
|
|
230
|
+
var VOID = Symbol("p-void");
|
|
231
231
|
function throttle$1(delay, callback, options) {
|
|
232
232
|
var _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;
|
|
233
233
|
var timeoutID;
|
|
@@ -216,7 +216,7 @@ var require_brace_expansion = __commonJS({
|
|
|
216
216
|
import { parse } from "node:path";
|
|
217
217
|
import process2 from "node:process";
|
|
218
218
|
|
|
219
|
-
// node_modules/.pnpm/@antfu+utils@9.
|
|
219
|
+
// node_modules/.pnpm/@antfu+utils@9.1.0/node_modules/@antfu/utils/dist/index.mjs
|
|
220
220
|
function toArray(array) {
|
|
221
221
|
array = array ?? [];
|
|
222
222
|
return Array.isArray(array) ? array : [array];
|
|
@@ -224,10 +224,10 @@ function toArray(array) {
|
|
|
224
224
|
function notNullish(v) {
|
|
225
225
|
return v != null;
|
|
226
226
|
}
|
|
227
|
-
var VOID = Symbol("p-void");
|
|
228
227
|
function slash(str) {
|
|
229
228
|
return str.replace(/\\/g, "/");
|
|
230
229
|
}
|
|
230
|
+
var VOID = Symbol("p-void");
|
|
231
231
|
function throttle$1(delay, callback, options) {
|
|
232
232
|
var _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;
|
|
233
233
|
var timeoutID;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
stringifyComponentImport,
|
|
16
16
|
throttle,
|
|
17
17
|
toArray
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GDTH3WEN.js";
|
|
19
19
|
|
|
20
20
|
// src/core/unplugin.ts
|
|
21
21
|
import { existsSync as existsSync2 } from "node:fs";
|
|
@@ -234,8 +234,6 @@ function resolveOptions(options, root) {
|
|
|
234
234
|
if (!resolved.extensions.length)
|
|
235
235
|
throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
236
236
|
}
|
|
237
|
-
if (!resolved.globsExclude)
|
|
238
|
-
resolved.globsExclude = [`**/node_modules/**`];
|
|
239
237
|
resolved.globsExclude = toArray(resolved.globsExclude || []).map((i) => resolveGlobsExclude(root, i));
|
|
240
238
|
resolved.globs = resolved.globs.filter((i) => {
|
|
241
239
|
if (!i.startsWith("!"))
|
|
@@ -697,7 +695,13 @@ var Context = class {
|
|
|
697
695
|
var PLUGIN_NAME = "unplugin:webpack";
|
|
698
696
|
var unplugin_default = createUnplugin((options = {}) => {
|
|
699
697
|
const filter = createFilter(
|
|
700
|
-
options.include || [
|
|
698
|
+
options.include || [
|
|
699
|
+
/\.vue$/,
|
|
700
|
+
/\.vue\?vue/,
|
|
701
|
+
/\.vue\.[tj]sx?\?vue/,
|
|
702
|
+
// for vue-loader with experimentalInlineMatchResource enabled
|
|
703
|
+
/\.vue\?v=/
|
|
704
|
+
],
|
|
701
705
|
options.exclude || [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/]
|
|
702
706
|
);
|
|
703
707
|
const ctx = new Context(options);
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/esbuild.ts
|
|
9
|
-
var esbuild_default =
|
|
9
|
+
var esbuild_default = _chunk34OWILDZcjs.unplugin_default.esbuild;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = esbuild_default;
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
|
|
9
9
|
require('./chunk-3HT76LNN.cjs');
|
|
10
10
|
require('./chunk-ZBPRDZS4.cjs');
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ require('./chunk-ZBPRDZS4.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.camelCase =
|
|
16
|
+
exports.camelCase = _chunk6XRV7GTUcjs.camelCase; exports.default = _chunk34OWILDZcjs.unplugin_default; exports.kebabCase = _chunk6XRV7GTUcjs.kebabCase; exports.pascalCase = _chunk6XRV7GTUcjs.pascalCase;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HW27BU5T.js";
|
|
4
4
|
import {
|
|
5
5
|
camelCase,
|
|
6
6
|
kebabCase,
|
|
7
7
|
pascalCase
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GDTH3WEN.js";
|
|
9
9
|
import "./chunk-QGM4M3NI.js";
|
|
10
10
|
import "./chunk-6F4PWJZI.js";
|
|
11
11
|
export {
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
@@ -9,8 +9,8 @@ require('./chunk-ZBPRDZS4.cjs');
|
|
|
9
9
|
var _kit = require('@nuxt/kit');
|
|
10
10
|
var nuxt_default = _kit.defineNuxtModule.call(void 0, {
|
|
11
11
|
setup(options) {
|
|
12
|
-
_kit.addWebpackPlugin.call(void 0,
|
|
13
|
-
_kit.addVitePlugin.call(void 0,
|
|
12
|
+
_kit.addWebpackPlugin.call(void 0, _chunk34OWILDZcjs.unplugin_default.webpack(options));
|
|
13
|
+
_kit.addVitePlugin.call(void 0, _chunk34OWILDZcjs.unplugin_default.vite(options));
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
package/dist/nuxt.js
CHANGED
package/dist/resolvers.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunk3HT76LNNcjs = require('./chunk-3HT76LNN.cjs');
|
|
@@ -220,7 +220,7 @@ function getStyleDir(compName) {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
if (!styleDir)
|
|
223
|
-
styleDir =
|
|
223
|
+
styleDir = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
|
|
224
224
|
return styleDir;
|
|
225
225
|
}
|
|
226
226
|
function getSideEffects(compName, options) {
|
|
@@ -405,7 +405,7 @@ var matchComponents2 = [
|
|
|
405
405
|
function getComponentStyleDir(importName, importStyle) {
|
|
406
406
|
if (["ConfigProvider", "Icon"].includes(importName))
|
|
407
407
|
return void 0;
|
|
408
|
-
let componentDir =
|
|
408
|
+
let componentDir = _chunk6XRV7GTUcjs.kebabCase.call(void 0, importName);
|
|
409
409
|
for (const item of matchComponents2) {
|
|
410
410
|
if (item.pattern.test(importName)) {
|
|
411
411
|
componentDir = item.componentDir;
|
|
@@ -441,7 +441,7 @@ function ArcoResolver(options = {}) {
|
|
|
441
441
|
type: "component",
|
|
442
442
|
resolve: (name) => {
|
|
443
443
|
if (canResolveIcons(options.resolveIcons)) {
|
|
444
|
-
const iconPrefix =
|
|
444
|
+
const iconPrefix = _chunk6XRV7GTUcjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
|
|
445
445
|
const newNameRegexp = new RegExp(`^${iconPrefix}Icon`);
|
|
446
446
|
if (newNameRegexp.test(name)) {
|
|
447
447
|
debug("found icon component name %s", name);
|
|
@@ -454,7 +454,7 @@ function ArcoResolver(options = {}) {
|
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
if (name.match(/^A[A-Z]/) && !
|
|
457
|
+
if (name.match(/^A[A-Z]/) && !_chunk6XRV7GTUcjs.isExclude.call(void 0, name, options.exclude)) {
|
|
458
458
|
const importStyle = _nullishCoalesce(options.importStyle, () => ( "css"));
|
|
459
459
|
const importName = name.slice(1);
|
|
460
460
|
const config = {
|
|
@@ -618,7 +618,7 @@ function getSideEffects2(name, filename) {
|
|
|
618
618
|
function componentsResolver(name, { ssr }) {
|
|
619
619
|
if (!name.match(/^D[A-Z]/))
|
|
620
620
|
return;
|
|
621
|
-
const resolveId =
|
|
621
|
+
const resolveId = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name = name.slice(1));
|
|
622
622
|
return {
|
|
623
623
|
name,
|
|
624
624
|
sideEffects: getSideEffects2(resolveId, "style.css"),
|
|
@@ -626,7 +626,7 @@ function componentsResolver(name, { ssr }) {
|
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
628
|
function directivesResolver(name, { ssr }) {
|
|
629
|
-
const resolveId =
|
|
629
|
+
const resolveId = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name);
|
|
630
630
|
return {
|
|
631
631
|
name: `${name}Directive`,
|
|
632
632
|
sideEffects: getSideEffects2(resolveId, "style.css"),
|
|
@@ -767,7 +767,7 @@ function resolveComponent(name, options) {
|
|
|
767
767
|
from: "@element-plus/icons-vue"
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
|
-
const partialName =
|
|
770
|
+
const partialName = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name.slice(2));
|
|
771
771
|
const { version, ssr, nightly } = options;
|
|
772
772
|
if (compare(version, "1.1.0-beta.1", ">=") || nightly) {
|
|
773
773
|
return {
|
|
@@ -815,7 +815,7 @@ function ElementPlusResolver(options = {}) {
|
|
|
815
815
|
return optionsResolved;
|
|
816
816
|
optionsResolved = {
|
|
817
817
|
ssr: false,
|
|
818
|
-
version: await
|
|
818
|
+
version: await _chunk6XRV7GTUcjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
|
|
819
819
|
importStyle: "css",
|
|
820
820
|
directives: true,
|
|
821
821
|
exclude: void 0,
|
|
@@ -869,7 +869,7 @@ function ElementUiResolver(options = {}) {
|
|
|
869
869
|
return;
|
|
870
870
|
if (/^El[A-Z]/.test(name)) {
|
|
871
871
|
const compName = name.slice(2);
|
|
872
|
-
const partialName =
|
|
872
|
+
const partialName = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
|
|
873
873
|
if (partialName === "collapse-transition") {
|
|
874
874
|
return {
|
|
875
875
|
from: `element-ui/lib/transitions/${partialName}`
|
|
@@ -984,11 +984,11 @@ function IduxResolver(options = {}) {
|
|
|
984
984
|
const packageName = getPackageName(name);
|
|
985
985
|
if (!packageName)
|
|
986
986
|
return;
|
|
987
|
-
const resolvedVersion = await
|
|
987
|
+
const resolvedVersion = await _chunk6XRV7GTUcjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
|
|
988
988
|
let dirname = specialComponents[name];
|
|
989
989
|
if (!dirname) {
|
|
990
990
|
const nameIndex = packageName === "pro" ? 2 : 1;
|
|
991
|
-
dirname =
|
|
991
|
+
dirname = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name).split("-")[nameIndex];
|
|
992
992
|
}
|
|
993
993
|
const path = `${scope}/${packageName}/${dirname}`;
|
|
994
994
|
const sideEffects = packageName === "cdk" ? void 0 : getSideEffects5(resolvedVersion, path, importStyle, importStyleTheme);
|
|
@@ -1251,7 +1251,7 @@ function getSideEffects6(importName, options) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
function resolveComponent2(importName, options) {
|
|
1253
1253
|
let name;
|
|
1254
|
-
if (
|
|
1254
|
+
if (_chunk6XRV7GTUcjs.isExclude.call(void 0, importName, options.exclude))
|
|
1255
1255
|
return void 0;
|
|
1256
1256
|
if (options.resolveIcons && importName.match(iconsRE)) {
|
|
1257
1257
|
name = importName;
|
|
@@ -1450,7 +1450,7 @@ function TDesignResolver(options = {}) {
|
|
|
1450
1450
|
resolve: (name) => {
|
|
1451
1451
|
const { library = "vue", exclude } = options;
|
|
1452
1452
|
const importFrom = options.esm ? "/esm" : "";
|
|
1453
|
-
if (
|
|
1453
|
+
if (_chunk6XRV7GTUcjs.isExclude.call(void 0, name, exclude))
|
|
1454
1454
|
return;
|
|
1455
1455
|
if (options.resolveIcons && name.match(/[a-z]Icon$/)) {
|
|
1456
1456
|
return {
|
|
@@ -1476,10 +1476,10 @@ function TDesignResolver(options = {}) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
// src/core/resolvers/vant.ts
|
|
1479
|
-
var moduleType =
|
|
1479
|
+
var moduleType = _chunk6XRV7GTUcjs.isSSR ? "lib" : "es";
|
|
1480
1480
|
function getSideEffects7(dirName, options) {
|
|
1481
1481
|
const { importStyle = true } = options;
|
|
1482
|
-
if (!importStyle ||
|
|
1482
|
+
if (!importStyle || _chunk6XRV7GTUcjs.isSSR)
|
|
1483
1483
|
return;
|
|
1484
1484
|
if (importStyle === "less")
|
|
1485
1485
|
return `vant/${moduleType}/${dirName}/style/less`;
|
|
@@ -1496,7 +1496,7 @@ function VantResolver(options = {}) {
|
|
|
1496
1496
|
return {
|
|
1497
1497
|
name: partialName,
|
|
1498
1498
|
from: `vant/${moduleType}`,
|
|
1499
|
-
sideEffects: getSideEffects7(
|
|
1499
|
+
sideEffects: getSideEffects7(_chunk6XRV7GTUcjs.kebabCase.call(void 0, partialName), options)
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
@@ -1519,9 +1519,9 @@ function getResolved(name, options) {
|
|
|
1519
1519
|
const sideEffects = [];
|
|
1520
1520
|
if (importStyle || importCss) {
|
|
1521
1521
|
if (importStyle === "less" || importLess)
|
|
1522
|
-
sideEffects.push(`${path}/es/${
|
|
1522
|
+
sideEffects.push(`${path}/es/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, name)}/style/less`);
|
|
1523
1523
|
else
|
|
1524
|
-
sideEffects.push(`${path}/es/${
|
|
1524
|
+
sideEffects.push(`${path}/es/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
|
|
1525
1525
|
}
|
|
1526
1526
|
return {
|
|
1527
1527
|
from: path,
|
|
@@ -1584,9 +1584,9 @@ function VeuiResolver(options = {}) {
|
|
|
1584
1584
|
};
|
|
1585
1585
|
}
|
|
1586
1586
|
var formatters = {
|
|
1587
|
-
"kebab-case":
|
|
1588
|
-
"camelCase":
|
|
1589
|
-
"PascalCase":
|
|
1587
|
+
"kebab-case": _chunk6XRV7GTUcjs.kebabCase,
|
|
1588
|
+
"camelCase": _chunk6XRV7GTUcjs.camelCase,
|
|
1589
|
+
"PascalCase": _chunk6XRV7GTUcjs.pascalCase
|
|
1590
1590
|
};
|
|
1591
1591
|
var peerPaths = /* @__PURE__ */ new Map();
|
|
1592
1592
|
function assertPeerPath(peerPath) {
|
|
@@ -1646,12 +1646,12 @@ function getCompDir(compName) {
|
|
|
1646
1646
|
for (let i = 0; i < total; i++) {
|
|
1647
1647
|
const matcher = matchComponents4[i];
|
|
1648
1648
|
if (compName.match(matcher.pattern)) {
|
|
1649
|
-
compPath = `${matcher.compDir}/${
|
|
1649
|
+
compPath = `${matcher.compDir}/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, compName)}.vue`;
|
|
1650
1650
|
break;
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
if (!compPath)
|
|
1654
|
-
compPath =
|
|
1654
|
+
compPath = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
|
|
1655
1655
|
return compPath;
|
|
1656
1656
|
}
|
|
1657
1657
|
function ViewUiResolver() {
|
package/dist/resolvers.js
CHANGED
package/dist/rollup.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/rollup.ts
|
|
9
|
-
var rollup_default =
|
|
9
|
+
var rollup_default = _chunk34OWILDZcjs.unplugin_default.rollup;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = rollup_default;
|
package/dist/rollup.js
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/rspack.ts
|
|
9
|
-
var rspack_default =
|
|
9
|
+
var rspack_default = _chunk34OWILDZcjs.unplugin_default.rspack;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = rspack_default;
|
package/dist/rspack.js
CHANGED
package/dist/types.d.cts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/vite.ts
|
|
9
|
-
var vite_default =
|
|
9
|
+
var vite_default = _chunk34OWILDZcjs.unplugin_default.vite;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = vite_default;
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
|
|
4
|
+
require('./chunk-6XRV7GTU.cjs');
|
|
5
5
|
require('./chunk-3HT76LNN.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/webpack.ts
|
|
9
|
-
var webpack_default =
|
|
9
|
+
var webpack_default = _chunk34OWILDZcjs.unplugin_default.webpack;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = webpack_default;
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "28.4.
|
|
4
|
+
"version": "28.4.1",
|
|
5
|
+
"packageManager": "pnpm@10.5.2",
|
|
5
6
|
"description": "Components auto importing for Vue",
|
|
6
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
8
|
"license": "MIT",
|
|
@@ -67,6 +68,17 @@
|
|
|
67
68
|
"engines": {
|
|
68
69
|
"node": ">=14"
|
|
69
70
|
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "tsup",
|
|
73
|
+
"dev": "tsup --watch src",
|
|
74
|
+
"example:build": "npm -C examples/vite-vue3 run build",
|
|
75
|
+
"example:dev": "npm -C examples/vite-vue3 run dev",
|
|
76
|
+
"prepublishOnly": "npm run build",
|
|
77
|
+
"lint": "eslint .",
|
|
78
|
+
"release": "bumpp && npm publish",
|
|
79
|
+
"test": "vitest",
|
|
80
|
+
"test:update": "vitest --u"
|
|
81
|
+
},
|
|
70
82
|
"peerDependencies": {
|
|
71
83
|
"@babel/parser": "^7.15.8",
|
|
72
84
|
"@nuxt/kit": "^3.2.2",
|
|
@@ -86,45 +98,35 @@
|
|
|
86
98
|
"local-pkg": "^1.0.0",
|
|
87
99
|
"magic-string": "^0.30.17",
|
|
88
100
|
"mlly": "^1.7.4",
|
|
89
|
-
"tinyglobby": "^0.2.
|
|
101
|
+
"tinyglobby": "^0.2.12",
|
|
90
102
|
"unplugin": "^2.2.0",
|
|
91
103
|
"unplugin-utils": "^0.2.4"
|
|
92
104
|
},
|
|
93
105
|
"devDependencies": {
|
|
94
|
-
"@antfu/eslint-config": "^4.
|
|
95
|
-
"@antfu/utils": "^9.
|
|
106
|
+
"@antfu/eslint-config": "^4.3.0",
|
|
107
|
+
"@antfu/utils": "^9.1.0",
|
|
96
108
|
"@babel/parser": "^7.26.9",
|
|
97
109
|
"@babel/types": "^7.26.9",
|
|
98
110
|
"@nuxt/kit": "^3.15.4",
|
|
99
111
|
"@nuxt/schema": "^3.15.4",
|
|
100
112
|
"@types/debug": "^4.1.12",
|
|
101
113
|
"@types/minimatch": "^5.1.2",
|
|
102
|
-
"@types/node": "^22.13.
|
|
114
|
+
"@types/node": "^22.13.5",
|
|
103
115
|
"bumpp": "^10.0.3",
|
|
104
116
|
"compare-versions": "^6.1.1",
|
|
105
|
-
"element-plus": "^2.9.
|
|
106
|
-
"eslint": "^9.
|
|
117
|
+
"element-plus": "^2.9.5",
|
|
118
|
+
"eslint": "^9.21.0",
|
|
107
119
|
"eslint-plugin-format": "^1.0.1",
|
|
108
120
|
"esno": "^4.8.0",
|
|
109
121
|
"estree-walker": "^3.0.3",
|
|
110
122
|
"minimatch": "^10.0.1",
|
|
111
123
|
"pathe": "^2.0.3",
|
|
112
|
-
"rollup": "^4.34.
|
|
113
|
-
"tsup": "^8.
|
|
124
|
+
"rollup": "^4.34.8",
|
|
125
|
+
"tsup": "^8.4.0",
|
|
114
126
|
"typescript": "^5.7.3",
|
|
115
|
-
"vite": "^6.
|
|
116
|
-
"vitest": "^3.0.
|
|
127
|
+
"vite": "^6.2.0",
|
|
128
|
+
"vitest": "^3.0.7",
|
|
117
129
|
"vue": "3.2.45",
|
|
118
|
-
"vue-tsc": "^2.2.
|
|
119
|
-
},
|
|
120
|
-
"scripts": {
|
|
121
|
-
"build": "tsup",
|
|
122
|
-
"dev": "tsup --watch src",
|
|
123
|
-
"example:build": "npm -C examples/vite-vue3 run build",
|
|
124
|
-
"example:dev": "npm -C examples/vite-vue3 run dev",
|
|
125
|
-
"lint": "eslint .",
|
|
126
|
-
"release": "bumpp && npm publish",
|
|
127
|
-
"test": "vitest",
|
|
128
|
-
"test:update": "vitest --u"
|
|
130
|
+
"vue-tsc": "^2.2.4"
|
|
129
131
|
}
|
|
130
|
-
}
|
|
132
|
+
}
|