unplugin-vue-components 0.27.0 → 0.27.2
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 +3 -1
- package/dist/{chunk-SQHKCPM6.js → chunk-5LSX6IQN.js} +1 -8
- package/dist/{chunk-TSU3OFN5.js → chunk-DLVGSKLE.js} +3 -3
- package/dist/{chunk-5JVO2UWC.js → chunk-HMX3D6IV.js} +1 -2
- package/dist/{chunk-JGIUAMWP.cjs → chunk-JWQK2ERM.cjs} +25 -25
- package/dist/{chunk-5QHU6UOY.cjs → chunk-VPUTCXXP.cjs} +1 -8
- package/dist/{chunk-WJIU4Q36.cjs → chunk-W4CCXOOA.cjs} +1 -2
- package/dist/esbuild.cjs +4 -4
- package/dist/esbuild.js +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/nuxt.cjs +5 -5
- package/dist/nuxt.js +3 -3
- package/dist/resolvers.cjs +32 -33
- package/dist/resolvers.d.cts +2 -0
- package/dist/resolvers.d.ts +2 -0
- package/dist/resolvers.js +6 -7
- package/dist/rollup.cjs +4 -4
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.js +3 -3
- package/dist/{src-WIQNDB4Q.js → src-RBAWKBDF.js} +7 -13
- package/dist/{src-SFFAR3KJ.cjs → src-ZMUOH6GK.cjs} +7 -13
- package/dist/vite.cjs +4 -4
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +4 -4
- package/dist/webpack.js +3 -3
- package/package.json +19 -20
package/README.md
CHANGED
|
@@ -359,6 +359,7 @@ Components({
|
|
|
359
359
|
|
|
360
360
|
// Glob patterns to match file names to be detected as components.
|
|
361
361
|
// When specified, the `dirs` and `extensions` options will be ignored.
|
|
362
|
+
// If you want to exclude components being registered, use negative globs with leading `!`.
|
|
362
363
|
globs: ['src/components/*.{vue}'],
|
|
363
364
|
|
|
364
365
|
// search for subdirectories
|
|
@@ -396,7 +397,8 @@ Components({
|
|
|
396
397
|
// Allow for components to override other components with the same name
|
|
397
398
|
allowOverrides: false,
|
|
398
399
|
|
|
399
|
-
//
|
|
400
|
+
// Filters for transforming targets (components to insert the auto import)
|
|
401
|
+
// Note these are NOT about including/excluding components registered - use `globs` for that
|
|
400
402
|
include: [/\.vue$/, /\.vue\?vue/],
|
|
401
403
|
exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
402
404
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { parse } from "path";
|
|
3
3
|
import process from "process";
|
|
4
4
|
import { minimatch } from "minimatch";
|
|
5
|
-
import resolve from "resolve";
|
|
6
5
|
import { slash, toArray } from "@antfu/utils";
|
|
7
6
|
import {
|
|
8
7
|
getPackageInfo,
|
|
@@ -171,11 +170,6 @@ function shouldTransform(code) {
|
|
|
171
170
|
return false;
|
|
172
171
|
return true;
|
|
173
172
|
}
|
|
174
|
-
function resolveImportPath(importName) {
|
|
175
|
-
return resolve.sync(importName, {
|
|
176
|
-
preserveSymlinks: false
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
173
|
|
|
180
174
|
export {
|
|
181
175
|
DISABLE_COMMENT,
|
|
@@ -192,6 +186,5 @@ export {
|
|
|
192
186
|
getNameFromFilePath,
|
|
193
187
|
resolveAlias,
|
|
194
188
|
getPkgVersion,
|
|
195
|
-
shouldTransform
|
|
196
|
-
resolveImportPath
|
|
189
|
+
shouldTransform
|
|
197
190
|
};
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
resolveAlias,
|
|
11
11
|
shouldTransform,
|
|
12
12
|
stringifyComponentImport
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5LSX6IQN.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadProps,
|
|
16
16
|
__spreadValues
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HMX3D6IV.js";
|
|
18
18
|
|
|
19
19
|
// src/core/unplugin.ts
|
|
20
20
|
import { existsSync as existsSync2 } from "fs";
|
|
@@ -334,7 +334,7 @@ async function resolveVue22(code, s) {
|
|
|
334
334
|
sourceType: "module"
|
|
335
335
|
});
|
|
336
336
|
const nodes = [];
|
|
337
|
-
const { walk } = await import("./src-
|
|
337
|
+
const { walk } = await import("./src-RBAWKBDF.js");
|
|
338
338
|
walk(program, {
|
|
339
339
|
enter(node) {
|
|
340
340
|
if (node.type === "CallExpression")
|
|
@@ -20,8 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
21
21
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
22
22
|
}) : x)(function(x) {
|
|
23
|
-
if (typeof require !== "undefined")
|
|
24
|
-
return require.apply(this, arguments);
|
|
23
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
25
24
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
26
25
|
});
|
|
27
26
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkVPUTCXXPcjs = require('./chunk-VPUTCXXP.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkW4CCXOOAcjs = require('./chunk-W4CCXOOA.cjs');
|
|
18
18
|
|
|
19
19
|
// src/core/unplugin.ts
|
|
20
20
|
var _fs = require('fs');
|
|
@@ -178,7 +178,7 @@ function parseDeclaration(code) {
|
|
|
178
178
|
function stringifyComponentInfo(filepath, { from: path, as: name, name: importName }, importPathTransform) {
|
|
179
179
|
if (!name)
|
|
180
180
|
return void 0;
|
|
181
|
-
path =
|
|
181
|
+
path = _chunkVPUTCXXPcjs.getTransformedPath.call(void 0, path, importPathTransform);
|
|
182
182
|
const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
|
|
183
183
|
const entry = `typeof import('${_utils.slash.call(void 0, related)}')['${importName || "default"}']`;
|
|
184
184
|
return [name, entry];
|
|
@@ -190,7 +190,7 @@ function stringifyComponentsInfo(filepath, components, importPathTransform) {
|
|
|
190
190
|
}
|
|
191
191
|
function getDeclarationImports(ctx, filepath) {
|
|
192
192
|
const component = stringifyComponentsInfo(filepath, [
|
|
193
|
-
...Object.values(
|
|
193
|
+
...Object.values(_chunkW4CCXOOAcjs.__spreadValues.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, ctx.componentNameMap), ctx.componentCustomMap)),
|
|
194
194
|
...resolveTypeImports(ctx.options.types)
|
|
195
195
|
], ctx.options.importPathTransform);
|
|
196
196
|
const directive = stringifyComponentsInfo(
|
|
@@ -214,8 +214,8 @@ function getDeclaration(ctx, filepath, originalImports) {
|
|
|
214
214
|
if (!imports)
|
|
215
215
|
return;
|
|
216
216
|
const declarations = {
|
|
217
|
-
component: stringifyDeclarationImports(
|
|
218
|
-
directive: stringifyDeclarationImports(
|
|
217
|
+
component: stringifyDeclarationImports(_chunkW4CCXOOAcjs.__spreadValues.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, originalImports == null ? void 0 : originalImports.component), imports.component)),
|
|
218
|
+
directive: stringifyDeclarationImports(_chunkW4CCXOOAcjs.__spreadValues.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, originalImports == null ? void 0 : originalImports.directive), imports.directive))
|
|
219
219
|
};
|
|
220
220
|
let code = `/* eslint-disable */
|
|
221
221
|
// @ts-nocheck
|
|
@@ -296,12 +296,12 @@ async function transformComponent(code, transformer2, s, ctx, sfcPath) {
|
|
|
296
296
|
const results = transformer2 === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s);
|
|
297
297
|
for (const { rawName, replace } of results) {
|
|
298
298
|
debug2(`| ${rawName}`);
|
|
299
|
-
const name =
|
|
299
|
+
const name = _chunkVPUTCXXPcjs.pascalCase.call(void 0, rawName);
|
|
300
300
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
301
301
|
const component = await ctx.findComponent(name, "component", [sfcPath]);
|
|
302
302
|
if (component) {
|
|
303
303
|
const varName = `__unplugin_components_${no}`;
|
|
304
|
-
s.prepend(`${
|
|
304
|
+
s.prepend(`${_chunkVPUTCXXPcjs.stringifyComponentImport.call(void 0, _chunkW4CCXOOAcjs.__spreadProps.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, component), { as: varName }), ctx)};
|
|
305
305
|
`);
|
|
306
306
|
no += 1;
|
|
307
307
|
replace(varName);
|
|
@@ -334,7 +334,7 @@ async function resolveVue22(code, s) {
|
|
|
334
334
|
sourceType: "module"
|
|
335
335
|
});
|
|
336
336
|
const nodes = [];
|
|
337
|
-
const { walk } = await Promise.resolve().then(() => require("./src-
|
|
337
|
+
const { walk } = await Promise.resolve().then(() => require("./src-ZMUOH6GK.cjs"));
|
|
338
338
|
walk(program, {
|
|
339
339
|
enter(node) {
|
|
340
340
|
if (node.type === "CallExpression")
|
|
@@ -406,13 +406,13 @@ async function transformDirective(code, transformer2, s, ctx, sfcPath) {
|
|
|
406
406
|
const results = await (transformer2 === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
|
|
407
407
|
for (const { rawName, replace } of results) {
|
|
408
408
|
debug3(`| ${rawName}`);
|
|
409
|
-
const name = `${
|
|
409
|
+
const name = `${_chunkVPUTCXXPcjs.DIRECTIVE_IMPORT_PREFIX}${_chunkVPUTCXXPcjs.pascalCase.call(void 0, rawName)}`;
|
|
410
410
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
411
411
|
const directive = await ctx.findComponent(name, "directive", [sfcPath]);
|
|
412
412
|
if (!directive)
|
|
413
413
|
continue;
|
|
414
414
|
const varName = `__unplugin_directives_${no}`;
|
|
415
|
-
s.prepend(`${
|
|
415
|
+
s.prepend(`${_chunkVPUTCXXPcjs.stringifyComponentImport.call(void 0, _chunkW4CCXOOAcjs.__spreadProps.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, directive), { as: varName }), ctx)};
|
|
416
416
|
`);
|
|
417
417
|
no += 1;
|
|
418
418
|
replace(varName);
|
|
@@ -431,7 +431,7 @@ function transformer(ctx, transformer2) {
|
|
|
431
431
|
await transformComponent(code, transformer2, s, ctx, sfcPath);
|
|
432
432
|
if (ctx.options.directives)
|
|
433
433
|
await transformDirective(code, transformer2, s, ctx, sfcPath);
|
|
434
|
-
s.prepend(
|
|
434
|
+
s.prepend(_chunkVPUTCXXPcjs.DISABLE_COMMENT);
|
|
435
435
|
const result = { code: s.toString() };
|
|
436
436
|
if (ctx.sourcemap)
|
|
437
437
|
result.map = s.generateMap({ source: id, includeContent: true, hires: "boundary" });
|
|
@@ -476,7 +476,7 @@ var Context = class {
|
|
|
476
476
|
this.transformer = transformer(this, name || "vue3");
|
|
477
477
|
}
|
|
478
478
|
transform(code, id) {
|
|
479
|
-
const { path, query } =
|
|
479
|
+
const { path, query } = _chunkVPUTCXXPcjs.parseId.call(void 0, id);
|
|
480
480
|
return this.transformer(code, id, path, query);
|
|
481
481
|
}
|
|
482
482
|
setupViteServer(server) {
|
|
@@ -488,14 +488,14 @@ var Context = class {
|
|
|
488
488
|
setupWatcher(watcher) {
|
|
489
489
|
const { globs } = this.options;
|
|
490
490
|
watcher.on("unlink", (path) => {
|
|
491
|
-
if (!
|
|
491
|
+
if (!_chunkVPUTCXXPcjs.matchGlobs.call(void 0, path, globs))
|
|
492
492
|
return;
|
|
493
493
|
path = _utils.slash.call(void 0, path);
|
|
494
494
|
this.removeComponents(path);
|
|
495
495
|
this.onUpdate(path);
|
|
496
496
|
});
|
|
497
497
|
watcher.on("add", (path) => {
|
|
498
|
-
if (!
|
|
498
|
+
if (!_chunkVPUTCXXPcjs.matchGlobs.call(void 0, path, globs))
|
|
499
499
|
return;
|
|
500
500
|
path = _utils.slash.call(void 0, path);
|
|
501
501
|
this.addComponents(path);
|
|
@@ -508,14 +508,14 @@ var Context = class {
|
|
|
508
508
|
setupWatcherWebpack(watcher, emitUpdate) {
|
|
509
509
|
const { globs } = this.options;
|
|
510
510
|
watcher.on("unlink", (path) => {
|
|
511
|
-
if (!
|
|
511
|
+
if (!_chunkVPUTCXXPcjs.matchGlobs.call(void 0, path, globs))
|
|
512
512
|
return;
|
|
513
513
|
path = _utils.slash.call(void 0, path);
|
|
514
514
|
this.removeComponents(path);
|
|
515
515
|
emitUpdate(path, "unlink");
|
|
516
516
|
});
|
|
517
517
|
watcher.on("add", (path) => {
|
|
518
|
-
if (!
|
|
518
|
+
if (!_chunkVPUTCXXPcjs.matchGlobs.call(void 0, path, globs))
|
|
519
519
|
return;
|
|
520
520
|
path = _utils.slash.call(void 0, path);
|
|
521
521
|
this.addComponents(path);
|
|
@@ -571,7 +571,7 @@ var Context = class {
|
|
|
571
571
|
updates: []
|
|
572
572
|
};
|
|
573
573
|
const timestamp = +/* @__PURE__ */ new Date();
|
|
574
|
-
const name =
|
|
574
|
+
const name = _chunkVPUTCXXPcjs.pascalCase.call(void 0, _chunkVPUTCXXPcjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
575
575
|
Object.entries(this._componentUsageMap).forEach(([key, values]) => {
|
|
576
576
|
if (values.has(name)) {
|
|
577
577
|
const r = `/${_utils.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
|
|
@@ -589,7 +589,7 @@ var Context = class {
|
|
|
589
589
|
updateComponentNameMap() {
|
|
590
590
|
this._componentNameMap = {};
|
|
591
591
|
Array.from(this._componentPaths).forEach((path) => {
|
|
592
|
-
const name =
|
|
592
|
+
const name = _chunkVPUTCXXPcjs.pascalCase.call(void 0, _chunkVPUTCXXPcjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
593
593
|
if (this._componentNameMap[name] && !this.options.allowOverrides) {
|
|
594
594
|
console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`);
|
|
595
595
|
return;
|
|
@@ -607,7 +607,7 @@ var Context = class {
|
|
|
607
607
|
for (const resolver of this.options.resolvers) {
|
|
608
608
|
if (resolver.type !== type)
|
|
609
609
|
continue;
|
|
610
|
-
const result = await resolver.resolve(type === "directive" ? name.slice(
|
|
610
|
+
const result = await resolver.resolve(type === "directive" ? name.slice(_chunkVPUTCXXPcjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
|
|
611
611
|
if (!result)
|
|
612
612
|
continue;
|
|
613
613
|
if (typeof result === "string") {
|
|
@@ -616,9 +616,9 @@ var Context = class {
|
|
|
616
616
|
from: result
|
|
617
617
|
};
|
|
618
618
|
} else {
|
|
619
|
-
info =
|
|
619
|
+
info = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {
|
|
620
620
|
as: name
|
|
621
|
-
},
|
|
621
|
+
}, _chunkVPUTCXXPcjs.normalizeComponentInfo.call(void 0, result));
|
|
622
622
|
}
|
|
623
623
|
if (type === "component")
|
|
624
624
|
this.addCustomComponents(info);
|
|
@@ -630,7 +630,7 @@ var Context = class {
|
|
|
630
630
|
}
|
|
631
631
|
normalizePath(path) {
|
|
632
632
|
var _a, _b, _c;
|
|
633
|
-
return
|
|
633
|
+
return _chunkVPUTCXXPcjs.resolveAlias.call(void 0, path, ((_b = (_a = this.viteConfig) == null ? void 0 : _a.resolve) == null ? void 0 : _b.alias) || ((_c = this.viteConfig) == null ? void 0 : _c.alias) || []);
|
|
634
634
|
}
|
|
635
635
|
relative(path) {
|
|
636
636
|
if (path.startsWith("/") && !path.startsWith(this.root))
|
|
@@ -679,7 +679,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
679
679
|
return await ctx.findComponent(name, "component", filename ? [filename] : []);
|
|
680
680
|
},
|
|
681
681
|
stringifyImport(info) {
|
|
682
|
-
return
|
|
682
|
+
return _chunkVPUTCXXPcjs.stringifyComponentImport.call(void 0, info, ctx);
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
685
|
return {
|
|
@@ -690,7 +690,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
690
690
|
return filter(id);
|
|
691
691
|
},
|
|
692
692
|
async transform(code, id) {
|
|
693
|
-
if (!
|
|
693
|
+
if (!_chunkVPUTCXXPcjs.shouldTransform.call(void 0, code))
|
|
694
694
|
return null;
|
|
695
695
|
try {
|
|
696
696
|
const result = await ctx.transform(code, id);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var _path = require('path');
|
|
3
3
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
4
4
|
var _minimatch = require('minimatch');
|
|
5
|
-
var _resolve = require('resolve'); var _resolve2 = _interopRequireDefault(_resolve);
|
|
6
5
|
var _utils = require('@antfu/utils');
|
|
7
6
|
|
|
8
7
|
|
|
@@ -171,12 +170,6 @@ function shouldTransform(code) {
|
|
|
171
170
|
return false;
|
|
172
171
|
return true;
|
|
173
172
|
}
|
|
174
|
-
function resolveImportPath(importName) {
|
|
175
|
-
return _resolve2.default.sync(importName, {
|
|
176
|
-
preserveSymlinks: false
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
173
|
|
|
181
174
|
|
|
182
175
|
|
|
@@ -194,4 +187,4 @@ function resolveImportPath(importName) {
|
|
|
194
187
|
|
|
195
188
|
|
|
196
189
|
|
|
197
|
-
exports.DISABLE_COMMENT = DISABLE_COMMENT; exports.DIRECTIVE_IMPORT_PREFIX = DIRECTIVE_IMPORT_PREFIX; exports.isSSR = isSSR; exports.pascalCase = pascalCase; exports.camelCase = camelCase; exports.kebabCase = kebabCase; exports.parseId = parseId; exports.matchGlobs = matchGlobs; exports.getTransformedPath = getTransformedPath; exports.normalizeComponentInfo = normalizeComponentInfo; exports.stringifyComponentImport = stringifyComponentImport; exports.getNameFromFilePath = getNameFromFilePath; exports.resolveAlias = resolveAlias; exports.getPkgVersion = getPkgVersion; exports.shouldTransform = shouldTransform;
|
|
190
|
+
exports.DISABLE_COMMENT = DISABLE_COMMENT; exports.DIRECTIVE_IMPORT_PREFIX = DIRECTIVE_IMPORT_PREFIX; exports.isSSR = isSSR; exports.pascalCase = pascalCase; exports.camelCase = camelCase; exports.kebabCase = kebabCase; exports.parseId = parseId; exports.matchGlobs = matchGlobs; exports.getTransformedPath = getTransformedPath; exports.normalizeComponentInfo = normalizeComponentInfo; exports.stringifyComponentImport = stringifyComponentImport; exports.getNameFromFilePath = getNameFromFilePath; exports.resolveAlias = resolveAlias; exports.getPkgVersion = getPkgVersion; exports.shouldTransform = shouldTransform;
|
|
@@ -20,8 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
21
21
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
22
22
|
}) : x)(function(x) {
|
|
23
|
-
if (typeof require !== "undefined")
|
|
24
|
-
return require.apply(this, arguments);
|
|
23
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
25
24
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
26
25
|
});
|
|
27
26
|
|
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-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/esbuild.ts
|
|
9
|
-
var esbuild_default =
|
|
9
|
+
var esbuild_default = _chunkJWQK2ERMcjs.unplugin_default.esbuild;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = esbuild_default;
|
package/dist/esbuild.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/esbuild.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkVPUTCXXPcjs = require('./chunk-VPUTCXXP.cjs');
|
|
9
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
10
10
|
require('./chunk-ZBPRDZS4.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.camelCase =
|
|
16
|
+
exports.camelCase = _chunkVPUTCXXPcjs.camelCase; exports.default = _chunkJWQK2ERMcjs.unplugin_default; exports.kebabCase = _chunkVPUTCXXPcjs.kebabCase; exports.pascalCase = _chunkVPUTCXXPcjs.pascalCase;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
4
|
import {
|
|
5
5
|
camelCase,
|
|
6
6
|
kebabCase,
|
|
7
7
|
pascalCase
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-5LSX6IQN.js";
|
|
9
|
+
import "./chunk-HMX3D6IV.js";
|
|
10
10
|
import "./chunk-6F4PWJZI.js";
|
|
11
11
|
export {
|
|
12
12
|
camelCase,
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/nuxt.ts
|
|
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, _chunkJWQK2ERMcjs.unplugin_default.webpack(options));
|
|
13
|
+
_kit.addVitePlugin.call(void 0, _chunkJWQK2ERMcjs.unplugin_default.vite(options));
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
package/dist/nuxt.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/nuxt.ts
|
package/dist/resolvers.cjs
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkVPUTCXXPcjs = require('./chunk-VPUTCXXP.cjs');
|
|
7
8
|
|
|
8
|
-
var _chunk5QHU6UOYcjs = require('./chunk-5QHU6UOY.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
var _chunkWJIU4Q36cjs = require('./chunk-WJIU4Q36.cjs');
|
|
12
|
+
var _chunkW4CCXOOAcjs = require('./chunk-W4CCXOOA.cjs');
|
|
14
13
|
|
|
15
14
|
// src/core/resolvers/antdv.ts
|
|
16
15
|
var matchComponents = [
|
|
@@ -222,7 +221,7 @@ function getStyleDir(compName) {
|
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
if (!styleDir)
|
|
225
|
-
styleDir =
|
|
224
|
+
styleDir = _chunkVPUTCXXPcjs.kebabCase.call(void 0, compName);
|
|
226
225
|
return styleDir;
|
|
227
226
|
}
|
|
228
227
|
function getSideEffects(compName, options) {
|
|
@@ -402,7 +401,7 @@ function resolveComponent(name, options) {
|
|
|
402
401
|
from: "@element-plus/icons-vue"
|
|
403
402
|
};
|
|
404
403
|
}
|
|
405
|
-
const partialName =
|
|
404
|
+
const partialName = _chunkVPUTCXXPcjs.kebabCase.call(void 0, name.slice(2));
|
|
406
405
|
const { version, ssr, nightly } = options;
|
|
407
406
|
if (compare(version, "1.1.0-beta.1", ">=") || nightly) {
|
|
408
407
|
return {
|
|
@@ -448,9 +447,9 @@ function ElementPlusResolver(options = {}) {
|
|
|
448
447
|
async function resolveOptions() {
|
|
449
448
|
if (optionsResolved)
|
|
450
449
|
return optionsResolved;
|
|
451
|
-
optionsResolved =
|
|
450
|
+
optionsResolved = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {
|
|
452
451
|
ssr: false,
|
|
453
|
-
version: await
|
|
452
|
+
version: await _chunkVPUTCXXPcjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
|
|
454
453
|
importStyle: "css",
|
|
455
454
|
directives: true,
|
|
456
455
|
exclude: void 0,
|
|
@@ -465,9 +464,8 @@ function ElementPlusResolver(options = {}) {
|
|
|
465
464
|
resolve: async (name) => {
|
|
466
465
|
const options2 = await resolveOptions();
|
|
467
466
|
if ([...options2.noStylesComponents, ...noStylesComponents].includes(name))
|
|
468
|
-
return resolveComponent(name,
|
|
469
|
-
else
|
|
470
|
-
return resolveComponent(name, options2);
|
|
467
|
+
return resolveComponent(name, _chunkW4CCXOOAcjs.__spreadProps.call(void 0, _chunkW4CCXOOAcjs.__spreadValues.call(void 0, {}, options2), { importStyle: false }));
|
|
468
|
+
else return resolveComponent(name, options2);
|
|
471
469
|
}
|
|
472
470
|
},
|
|
473
471
|
{
|
|
@@ -504,7 +502,7 @@ function ElementUiResolver(options = {}) {
|
|
|
504
502
|
return;
|
|
505
503
|
if (/^El[A-Z]/.test(name)) {
|
|
506
504
|
const compName = name.slice(2);
|
|
507
|
-
const partialName =
|
|
505
|
+
const partialName = _chunkVPUTCXXPcjs.kebabCase.call(void 0, compName);
|
|
508
506
|
if (partialName === "collapse-transition") {
|
|
509
507
|
return {
|
|
510
508
|
from: `element-ui/lib/transitions/${partialName}`
|
|
@@ -619,11 +617,11 @@ function IduxResolver(options = {}) {
|
|
|
619
617
|
const packageName = getPackageName(name);
|
|
620
618
|
if (!packageName)
|
|
621
619
|
return;
|
|
622
|
-
const resolvedVersion = await
|
|
620
|
+
const resolvedVersion = await _chunkVPUTCXXPcjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
|
|
623
621
|
let dirname = specialComponents[name];
|
|
624
622
|
if (!dirname) {
|
|
625
623
|
const nameIndex = packageName === "pro" ? 2 : 1;
|
|
626
|
-
dirname =
|
|
624
|
+
dirname = _chunkVPUTCXXPcjs.kebabCase.call(void 0, name).split("-")[nameIndex];
|
|
627
625
|
}
|
|
628
626
|
const path = `${scope}/${packageName}/${dirname}`;
|
|
629
627
|
const sideEffects = packageName === "cdk" ? void 0 : getSideEffects4(resolvedVersion, path, importStyle, importStyleTheme);
|
|
@@ -828,10 +826,10 @@ function PrimeVueResolver(options = {}) {
|
|
|
828
826
|
}
|
|
829
827
|
|
|
830
828
|
// src/core/resolvers/vant.ts
|
|
831
|
-
var moduleType =
|
|
829
|
+
var moduleType = _chunkVPUTCXXPcjs.isSSR ? "lib" : "es";
|
|
832
830
|
function getSideEffects5(dirName, options) {
|
|
833
831
|
const { importStyle = true } = options;
|
|
834
|
-
if (!importStyle ||
|
|
832
|
+
if (!importStyle || _chunkVPUTCXXPcjs.isSSR)
|
|
835
833
|
return;
|
|
836
834
|
if (importStyle === "less")
|
|
837
835
|
return `vant/${moduleType}/${dirName}/style/less`;
|
|
@@ -848,7 +846,7 @@ function VantResolver(options = {}) {
|
|
|
848
846
|
return {
|
|
849
847
|
name: partialName,
|
|
850
848
|
from: `vant/${moduleType}`,
|
|
851
|
-
sideEffects: getSideEffects5(
|
|
849
|
+
sideEffects: getSideEffects5(_chunkVPUTCXXPcjs.kebabCase.call(void 0, partialName), options)
|
|
852
850
|
};
|
|
853
851
|
}
|
|
854
852
|
}
|
|
@@ -871,9 +869,9 @@ function getResolved(name, options) {
|
|
|
871
869
|
const sideEffects = [];
|
|
872
870
|
if (importStyle || importCss) {
|
|
873
871
|
if (importStyle === "less" || importLess)
|
|
874
|
-
sideEffects.push(`${path}/es/${
|
|
872
|
+
sideEffects.push(`${path}/es/${_chunkVPUTCXXPcjs.kebabCase.call(void 0, name)}/style/less`);
|
|
875
873
|
else
|
|
876
|
-
sideEffects.push(`${path}/es/${
|
|
874
|
+
sideEffects.push(`${path}/es/${_chunkVPUTCXXPcjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
|
|
877
875
|
}
|
|
878
876
|
return {
|
|
879
877
|
from: path,
|
|
@@ -909,13 +907,14 @@ function VarletUIResolver(options = {}) {
|
|
|
909
907
|
|
|
910
908
|
// src/core/resolvers/veui.ts
|
|
911
909
|
var _path = require('path');
|
|
910
|
+
var _mlly = require('mlly');
|
|
912
911
|
var VEUI_PACKAGE_NAME = "veui";
|
|
913
912
|
var components3;
|
|
914
913
|
function VeuiResolver(options = {}) {
|
|
915
914
|
const { alias = VEUI_PACKAGE_NAME } = options;
|
|
916
915
|
if (!components3) {
|
|
917
916
|
try {
|
|
918
|
-
const componentsData =
|
|
917
|
+
const componentsData = _chunkW4CCXOOAcjs.__require.call(void 0, `${alias}/components.json`);
|
|
919
918
|
components3 = new Set(componentsData.map(({ name }) => name));
|
|
920
919
|
} catch (e) {
|
|
921
920
|
throw new Error("[unplugin-vue-components:veui] VEUI is not installed");
|
|
@@ -935,15 +934,15 @@ function VeuiResolver(options = {}) {
|
|
|
935
934
|
};
|
|
936
935
|
}
|
|
937
936
|
var formatters = {
|
|
938
|
-
"kebab-case":
|
|
939
|
-
"camelCase":
|
|
940
|
-
"PascalCase":
|
|
937
|
+
"kebab-case": _chunkVPUTCXXPcjs.kebabCase,
|
|
938
|
+
"camelCase": _chunkVPUTCXXPcjs.camelCase,
|
|
939
|
+
"PascalCase": _chunkVPUTCXXPcjs.pascalCase
|
|
941
940
|
};
|
|
942
941
|
var peerPaths = /* @__PURE__ */ new Map();
|
|
943
942
|
function assertPeerPath(peerPath) {
|
|
944
943
|
if (!peerPaths.has(peerPath)) {
|
|
945
944
|
try {
|
|
946
|
-
|
|
945
|
+
_mlly.resolvePathSync.call(void 0, peerPath);
|
|
947
946
|
peerPaths.set(peerPath, true);
|
|
948
947
|
} catch (e) {
|
|
949
948
|
peerPaths.set(peerPath, false);
|
|
@@ -997,12 +996,12 @@ function getCompDir(compName) {
|
|
|
997
996
|
for (let i = 0; i < total; i++) {
|
|
998
997
|
const matcher = matchComponents2[i];
|
|
999
998
|
if (compName.match(matcher.pattern)) {
|
|
1000
|
-
compPath = `${matcher.compDir}/${
|
|
999
|
+
compPath = `${matcher.compDir}/${_chunkVPUTCXXPcjs.kebabCase.call(void 0, compName)}.vue`;
|
|
1001
1000
|
break;
|
|
1002
1001
|
}
|
|
1003
1002
|
}
|
|
1004
1003
|
if (!compPath)
|
|
1005
|
-
compPath =
|
|
1004
|
+
compPath = _chunkVPUTCXXPcjs.kebabCase.call(void 0, compName);
|
|
1006
1005
|
return compPath;
|
|
1007
1006
|
}
|
|
1008
1007
|
function ViewUiResolver() {
|
|
@@ -1153,7 +1152,7 @@ function getSideEffects8(name, filename) {
|
|
|
1153
1152
|
function componentsResolver(name, { ssr }) {
|
|
1154
1153
|
if (!name.match(/^D[A-Z]/))
|
|
1155
1154
|
return;
|
|
1156
|
-
const resolveId =
|
|
1155
|
+
const resolveId = _chunkVPUTCXXPcjs.kebabCase.call(void 0, name = name.slice(1));
|
|
1157
1156
|
return {
|
|
1158
1157
|
name,
|
|
1159
1158
|
sideEffects: getSideEffects8(resolveId, "style.css"),
|
|
@@ -1161,7 +1160,7 @@ function componentsResolver(name, { ssr }) {
|
|
|
1161
1160
|
};
|
|
1162
1161
|
}
|
|
1163
1162
|
function directivesResolver(name, { ssr }) {
|
|
1164
|
-
const resolveId =
|
|
1163
|
+
const resolveId = _chunkVPUTCXXPcjs.kebabCase.call(void 0, name);
|
|
1165
1164
|
return {
|
|
1166
1165
|
name: `${name}Directive`,
|
|
1167
1166
|
sideEffects: getSideEffects8(resolveId, "style.css"),
|
|
@@ -1169,7 +1168,7 @@ function directivesResolver(name, { ssr }) {
|
|
|
1169
1168
|
};
|
|
1170
1169
|
}
|
|
1171
1170
|
function DevUiResolver(options = {}) {
|
|
1172
|
-
const config =
|
|
1171
|
+
const config = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, { directives: true, importStyle: true, ssr: false }, options);
|
|
1173
1172
|
const resolvers = [
|
|
1174
1173
|
{
|
|
1175
1174
|
type: "component",
|
|
@@ -1328,7 +1327,7 @@ var matchComponents3 = [
|
|
|
1328
1327
|
function getComponentStyleDir(importName, importStyle) {
|
|
1329
1328
|
if (["ConfigProvider", "Icon"].includes(importName))
|
|
1330
1329
|
return void 0;
|
|
1331
|
-
let componentDir =
|
|
1330
|
+
let componentDir = _chunkVPUTCXXPcjs.kebabCase.call(void 0, importName);
|
|
1332
1331
|
for (const item of matchComponents3) {
|
|
1333
1332
|
if (item.pattern.test(importName)) {
|
|
1334
1333
|
componentDir = item.componentDir;
|
|
@@ -1366,7 +1365,7 @@ function ArcoResolver(options = {}) {
|
|
|
1366
1365
|
resolve: (name) => {
|
|
1367
1366
|
var _a;
|
|
1368
1367
|
if (canResolveIcons(options.resolveIcons)) {
|
|
1369
|
-
const iconPrefix =
|
|
1368
|
+
const iconPrefix = _chunkVPUTCXXPcjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
|
|
1370
1369
|
const newNameRegexp = new RegExp(`^${iconPrefix}Icon`);
|
|
1371
1370
|
if (newNameRegexp.test(name)) {
|
|
1372
1371
|
debug("found icon component name %s", name);
|
|
@@ -1606,7 +1605,7 @@ var COMPONENT_ALIASES = {
|
|
|
1606
1605
|
BTimepicker: "BFormTimepicker"
|
|
1607
1606
|
};
|
|
1608
1607
|
function BootstrapVueResolver(_options = {}) {
|
|
1609
|
-
const options =
|
|
1608
|
+
const options = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, { directives: true }, _options);
|
|
1610
1609
|
const resolvers = [{
|
|
1611
1610
|
type: "component",
|
|
1612
1611
|
resolve: (name) => {
|
|
@@ -1634,7 +1633,7 @@ function BootstrapVueResolver(_options = {}) {
|
|
|
1634
1633
|
return resolvers;
|
|
1635
1634
|
}
|
|
1636
1635
|
function BootstrapVueNextResolver(_options = {}) {
|
|
1637
|
-
const options =
|
|
1636
|
+
const options = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, { directives: true }, _options);
|
|
1638
1637
|
const resolvers = [{
|
|
1639
1638
|
type: "component",
|
|
1640
1639
|
resolve: (name) => {
|
|
@@ -1654,7 +1653,7 @@ function BootstrapVueNextResolver(_options = {}) {
|
|
|
1654
1653
|
return resolvers;
|
|
1655
1654
|
}
|
|
1656
1655
|
function BootstrapVue3Resolver(_options = {}) {
|
|
1657
|
-
const options =
|
|
1656
|
+
const options = _chunkW4CCXOOAcjs.__spreadValues.call(void 0, { directives: true }, _options);
|
|
1658
1657
|
const resolvers = [{
|
|
1659
1658
|
type: "component",
|
|
1660
1659
|
resolve: (name) => {
|
package/dist/resolvers.d.cts
CHANGED
|
@@ -526,6 +526,8 @@ declare function BootstrapVueResolver(_options?: BootstrapVueResolverOptions): C
|
|
|
526
526
|
* Resolver for BootstrapVueNext
|
|
527
527
|
*
|
|
528
528
|
* @link https://github.com/bootstrap-vue/bootstrap-vue-next
|
|
529
|
+
*
|
|
530
|
+
* @deprecated use `import { BootstrapVueNextResolver } from 'bootstrap-vue-next'` instead
|
|
529
531
|
*/
|
|
530
532
|
declare function BootstrapVueNextResolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
|
|
531
533
|
/**
|
package/dist/resolvers.d.ts
CHANGED
|
@@ -526,6 +526,8 @@ declare function BootstrapVueResolver(_options?: BootstrapVueResolverOptions): C
|
|
|
526
526
|
* Resolver for BootstrapVueNext
|
|
527
527
|
*
|
|
528
528
|
* @link https://github.com/bootstrap-vue/bootstrap-vue-next
|
|
529
|
+
*
|
|
530
|
+
* @deprecated use `import { BootstrapVueNextResolver } from 'bootstrap-vue-next'` instead
|
|
529
531
|
*/
|
|
530
532
|
declare function BootstrapVueNextResolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
|
|
531
533
|
/**
|
package/dist/resolvers.js
CHANGED
|
@@ -3,14 +3,13 @@ import {
|
|
|
3
3
|
getPkgVersion,
|
|
4
4
|
isSSR,
|
|
5
5
|
kebabCase,
|
|
6
|
-
pascalCase
|
|
7
|
-
|
|
8
|
-
} from "./chunk-SQHKCPM6.js";
|
|
6
|
+
pascalCase
|
|
7
|
+
} from "./chunk-5LSX6IQN.js";
|
|
9
8
|
import {
|
|
10
9
|
__require,
|
|
11
10
|
__spreadProps,
|
|
12
11
|
__spreadValues
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HMX3D6IV.js";
|
|
14
13
|
|
|
15
14
|
// src/core/resolvers/antdv.ts
|
|
16
15
|
var matchComponents = [
|
|
@@ -466,8 +465,7 @@ function ElementPlusResolver(options = {}) {
|
|
|
466
465
|
const options2 = await resolveOptions();
|
|
467
466
|
if ([...options2.noStylesComponents, ...noStylesComponents].includes(name))
|
|
468
467
|
return resolveComponent(name, __spreadProps(__spreadValues({}, options2), { importStyle: false }));
|
|
469
|
-
else
|
|
470
|
-
return resolveComponent(name, options2);
|
|
468
|
+
else return resolveComponent(name, options2);
|
|
471
469
|
}
|
|
472
470
|
},
|
|
473
471
|
{
|
|
@@ -909,6 +907,7 @@ function VarletUIResolver(options = {}) {
|
|
|
909
907
|
|
|
910
908
|
// src/core/resolvers/veui.ts
|
|
911
909
|
import { join, normalize } from "path";
|
|
910
|
+
import { resolvePathSync } from "mlly";
|
|
912
911
|
var VEUI_PACKAGE_NAME = "veui";
|
|
913
912
|
var components3;
|
|
914
913
|
function VeuiResolver(options = {}) {
|
|
@@ -943,7 +942,7 @@ var peerPaths = /* @__PURE__ */ new Map();
|
|
|
943
942
|
function assertPeerPath(peerPath) {
|
|
944
943
|
if (!peerPaths.has(peerPath)) {
|
|
945
944
|
try {
|
|
946
|
-
|
|
945
|
+
resolvePathSync(peerPath);
|
|
947
946
|
peerPaths.set(peerPath, true);
|
|
948
947
|
} catch (e) {
|
|
949
948
|
peerPaths.set(peerPath, false);
|
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-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/rollup.ts
|
|
9
|
-
var rollup_default =
|
|
9
|
+
var rollup_default = _chunkJWQK2ERMcjs.unplugin_default.rollup;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = rollup_default;
|
package/dist/rollup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/rollup.ts
|
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-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/rspack.ts
|
|
9
|
-
var rspack_default =
|
|
9
|
+
var rspack_default = _chunkJWQK2ERMcjs.unplugin_default.rspack;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = rspack_default;
|
package/dist/rspack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/rspack.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-HMX3D6IV.js";
|
|
2
2
|
|
|
3
3
|
// node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
4
4
|
var WalkerBase = class {
|
|
@@ -95,10 +95,8 @@ var SyncWalker = class extends WalkerBase {
|
|
|
95
95
|
this.should_skip = _should_skip;
|
|
96
96
|
this.should_remove = _should_remove;
|
|
97
97
|
this.replacement = _replacement;
|
|
98
|
-
if (skipped)
|
|
99
|
-
|
|
100
|
-
if (removed)
|
|
101
|
-
return null;
|
|
98
|
+
if (skipped) return node;
|
|
99
|
+
if (removed) return null;
|
|
102
100
|
}
|
|
103
101
|
let key;
|
|
104
102
|
for (key in node) {
|
|
@@ -138,8 +136,7 @@ var SyncWalker = class extends WalkerBase {
|
|
|
138
136
|
const removed = this.should_remove;
|
|
139
137
|
this.replacement = _replacement;
|
|
140
138
|
this.should_remove = _should_remove;
|
|
141
|
-
if (removed)
|
|
142
|
-
return null;
|
|
139
|
+
if (removed) return null;
|
|
143
140
|
}
|
|
144
141
|
}
|
|
145
142
|
return node;
|
|
@@ -199,10 +196,8 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
199
196
|
this.should_skip = _should_skip;
|
|
200
197
|
this.should_remove = _should_remove;
|
|
201
198
|
this.replacement = _replacement;
|
|
202
|
-
if (skipped)
|
|
203
|
-
|
|
204
|
-
if (removed)
|
|
205
|
-
return null;
|
|
199
|
+
if (skipped) return node;
|
|
200
|
+
if (removed) return null;
|
|
206
201
|
}
|
|
207
202
|
let key;
|
|
208
203
|
for (key in node) {
|
|
@@ -242,8 +237,7 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
242
237
|
const removed = this.should_remove;
|
|
243
238
|
this.replacement = _replacement;
|
|
244
239
|
this.should_remove = _should_remove;
|
|
245
|
-
if (removed)
|
|
246
|
-
return null;
|
|
240
|
+
if (removed) return null;
|
|
247
241
|
}
|
|
248
242
|
}
|
|
249
243
|
return node;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-W4CCXOOA.cjs');
|
|
2
2
|
|
|
3
3
|
// node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
4
4
|
var WalkerBase = class {
|
|
@@ -95,10 +95,8 @@ var SyncWalker = class extends WalkerBase {
|
|
|
95
95
|
this.should_skip = _should_skip;
|
|
96
96
|
this.should_remove = _should_remove;
|
|
97
97
|
this.replacement = _replacement;
|
|
98
|
-
if (skipped)
|
|
99
|
-
|
|
100
|
-
if (removed)
|
|
101
|
-
return null;
|
|
98
|
+
if (skipped) return node;
|
|
99
|
+
if (removed) return null;
|
|
102
100
|
}
|
|
103
101
|
let key;
|
|
104
102
|
for (key in node) {
|
|
@@ -138,8 +136,7 @@ var SyncWalker = class extends WalkerBase {
|
|
|
138
136
|
const removed = this.should_remove;
|
|
139
137
|
this.replacement = _replacement;
|
|
140
138
|
this.should_remove = _should_remove;
|
|
141
|
-
if (removed)
|
|
142
|
-
return null;
|
|
139
|
+
if (removed) return null;
|
|
143
140
|
}
|
|
144
141
|
}
|
|
145
142
|
return node;
|
|
@@ -199,10 +196,8 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
199
196
|
this.should_skip = _should_skip;
|
|
200
197
|
this.should_remove = _should_remove;
|
|
201
198
|
this.replacement = _replacement;
|
|
202
|
-
if (skipped)
|
|
203
|
-
|
|
204
|
-
if (removed)
|
|
205
|
-
return null;
|
|
199
|
+
if (skipped) return node;
|
|
200
|
+
if (removed) return null;
|
|
206
201
|
}
|
|
207
202
|
let key;
|
|
208
203
|
for (key in node) {
|
|
@@ -242,8 +237,7 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
242
237
|
const removed = this.should_remove;
|
|
243
238
|
this.replacement = _replacement;
|
|
244
239
|
this.should_remove = _should_remove;
|
|
245
|
-
if (removed)
|
|
246
|
-
return null;
|
|
240
|
+
if (removed) return null;
|
|
247
241
|
}
|
|
248
242
|
}
|
|
249
243
|
return node;
|
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-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/vite.ts
|
|
9
|
-
var vite_default =
|
|
9
|
+
var vite_default = _chunkJWQK2ERMcjs.unplugin_default.vite;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = vite_default;
|
package/dist/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/vite.ts
|
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-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJWQK2ERMcjs = require('./chunk-JWQK2ERM.cjs');
|
|
4
|
+
require('./chunk-VPUTCXXP.cjs');
|
|
5
|
+
require('./chunk-W4CCXOOA.cjs');
|
|
6
6
|
require('./chunk-ZBPRDZS4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/webpack.ts
|
|
9
|
-
var webpack_default =
|
|
9
|
+
var webpack_default = _chunkJWQK2ERMcjs.unplugin_default.webpack;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.default = webpack_default;
|
package/dist/webpack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DLVGSKLE.js";
|
|
4
|
+
import "./chunk-5LSX6IQN.js";
|
|
5
|
+
import "./chunk-HMX3D6IV.js";
|
|
6
6
|
import "./chunk-6F4PWJZI.js";
|
|
7
7
|
|
|
8
8
|
// src/webpack.ts
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.27.
|
|
5
|
-
"packageManager": "pnpm@9.0
|
|
4
|
+
"version": "0.27.2",
|
|
5
|
+
"packageManager": "pnpm@9.4.0",
|
|
6
6
|
"description": "Components auto importing for Vue",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -93,39 +93,38 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@antfu/utils": "^0.7.
|
|
96
|
+
"@antfu/utils": "^0.7.10",
|
|
97
97
|
"@rollup/pluginutils": "^5.1.0",
|
|
98
98
|
"chokidar": "^3.6.0",
|
|
99
|
-
"debug": "^4.3.
|
|
99
|
+
"debug": "^4.3.5",
|
|
100
100
|
"fast-glob": "^3.3.2",
|
|
101
101
|
"local-pkg": "^0.5.0",
|
|
102
102
|
"magic-string": "^0.30.10",
|
|
103
|
-
"minimatch": "^9.0.
|
|
104
|
-
"
|
|
103
|
+
"minimatch": "^9.0.5",
|
|
104
|
+
"mlly": "^1.7.1",
|
|
105
105
|
"unplugin": "^1.10.1"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@antfu/eslint-config": "^2.
|
|
109
|
-
"@babel/parser": "^7.24.
|
|
110
|
-
"@babel/types": "^7.24.
|
|
111
|
-
"@nuxt/kit": "^3.
|
|
108
|
+
"@antfu/eslint-config": "^2.21.1",
|
|
109
|
+
"@babel/parser": "^7.24.7",
|
|
110
|
+
"@babel/types": "^7.24.7",
|
|
111
|
+
"@nuxt/kit": "^3.12.2",
|
|
112
112
|
"@types/debug": "^4.1.12",
|
|
113
113
|
"@types/minimatch": "^5.1.2",
|
|
114
|
-
"@types/node": "^20.
|
|
115
|
-
"@types/resolve": "^1.20.6",
|
|
114
|
+
"@types/node": "^20.14.9",
|
|
116
115
|
"bumpp": "^9.4.1",
|
|
117
116
|
"compare-versions": "^6.1.0",
|
|
118
|
-
"element-plus": "^2.7.
|
|
119
|
-
"eslint": "^9.
|
|
120
|
-
"eslint-plugin-format": "^0.1.
|
|
117
|
+
"element-plus": "^2.7.6",
|
|
118
|
+
"eslint": "^9.5.0",
|
|
119
|
+
"eslint-plugin-format": "^0.1.2",
|
|
121
120
|
"esno": "^4.7.0",
|
|
122
121
|
"estree-walker": "^3.0.3",
|
|
123
122
|
"pathe": "^1.1.2",
|
|
124
|
-
"rollup": "^4.
|
|
125
|
-
"tsup": "^8.0
|
|
126
|
-
"typescript": "^5.
|
|
127
|
-
"vite": "^5.
|
|
128
|
-
"vitest": "^1.
|
|
123
|
+
"rollup": "^4.18.0",
|
|
124
|
+
"tsup": "^8.1.0",
|
|
125
|
+
"typescript": "^5.5.2",
|
|
126
|
+
"vite": "^5.3.1",
|
|
127
|
+
"vitest": "^1.6.0",
|
|
129
128
|
"vue": "3.2.45"
|
|
130
129
|
}
|
|
131
130
|
}
|