unplugin-vue-components 0.17.11 → 0.17.16
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 +24 -2
- package/dist/{chunk-CB6M22NE.js → chunk-3KCE575X.js} +18 -18
- package/dist/{chunk-VGL64D3T.js → chunk-42OWKG5W.js} +1 -1
- package/dist/{chunk-BPS23YOY.mjs → chunk-L5BL2OCJ.mjs} +7 -7
- package/dist/{chunk-IDYWJDFZ.mjs → chunk-V5TNASXD.mjs} +3 -3
- package/dist/esbuild.d.ts +9 -0
- package/dist/esbuild.js +13 -0
- package/dist/esbuild.mjs +12 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/nuxt.js +4 -4
- package/dist/nuxt.mjs +2 -2
- package/dist/resolvers.d.ts +14 -2
- package/dist/resolvers.js +89 -42
- package/dist/resolvers.mjs +72 -25
- package/dist/rollup.js +3 -3
- package/dist/rollup.mjs +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vite.js +3 -3
- package/dist/vite.mjs +2 -2
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +2 -2
- package/esbuild.d.ts +2 -0
- package/package.json +28 -23
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ On-demand components auto importing for Vue.
|
|
|
8
8
|
|
|
9
9
|
- 💚 Supports both Vue 2 and Vue 3 out-of-the-box.
|
|
10
10
|
- ✨ Supports both components and directives.
|
|
11
|
-
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
|
|
11
|
+
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
|
|
12
12
|
- 🏝 Tree-shakable, only registers the components you use.
|
|
13
13
|
- 🪐 Folder names as namespaces.
|
|
14
14
|
- 🦾 Full TypeScript support.
|
|
@@ -104,6 +104,25 @@ module.exports = {
|
|
|
104
104
|
|
|
105
105
|
<br></details>
|
|
106
106
|
|
|
107
|
+
<details>
|
|
108
|
+
<summary>esbuild</summary><br>
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
// esbuild.config.js
|
|
112
|
+
import { build } from 'esbuild'
|
|
113
|
+
|
|
114
|
+
build({
|
|
115
|
+
/* ... */
|
|
116
|
+
plugins: [
|
|
117
|
+
require('unplugin-vue-components/esbuild')({
|
|
118
|
+
/* options */
|
|
119
|
+
}),
|
|
120
|
+
],
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
<br></details>
|
|
125
|
+
|
|
107
126
|
## Usage
|
|
108
127
|
|
|
109
128
|
Use components in templates as you would usually do, it will import components on demand, and there is no `import` and `component registration` required anymore! If you register the parent component asynchronously (or lazy route), the auto-imported components will be code-split along with their parent.
|
|
@@ -171,6 +190,7 @@ Supported Resolvers:
|
|
|
171
190
|
- [Element UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/element-ui.ts)
|
|
172
191
|
- [Headless UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/headless-ui.ts)
|
|
173
192
|
- [IDux](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/idux.ts)
|
|
193
|
+
- [Inkline](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/inkline.ts)
|
|
174
194
|
- [Naive UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/naive-ui.ts)
|
|
175
195
|
- [Prime Vue](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts)
|
|
176
196
|
- [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
|
|
@@ -180,10 +200,12 @@ Supported Resolvers:
|
|
|
180
200
|
- [Vuetify](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vuetify.ts)
|
|
181
201
|
- [VueUse Components](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vueuse.ts)
|
|
182
202
|
- [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
|
|
203
|
+
- [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
|
|
183
204
|
|
|
184
205
|
```ts
|
|
185
206
|
// vite.config.js
|
|
186
|
-
import
|
|
207
|
+
import Components from 'unplugin-vue-components/vite'
|
|
208
|
+
import {
|
|
187
209
|
AntDesignVueResolver,
|
|
188
210
|
ElementPlusResolver,
|
|
189
211
|
VantResolver,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk42OWKG5Wjs = require('./chunk-42OWKG5W.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -49,7 +49,7 @@ function resolveOptions(options, root) {
|
|
|
49
49
|
const resolved = Object.assign({}, defaultOptions, options);
|
|
50
50
|
resolved.libraries = _utils.toArray.call(void 0, resolved.libraries).map((i) => typeof i === "string" ? { name: i } : i);
|
|
51
51
|
resolved.resolvers = normalizeResolvers(resolved.resolvers);
|
|
52
|
-
resolved.resolvers.push(...resolved.libraries.map((lib) =>
|
|
52
|
+
resolved.resolvers.push(...resolved.libraries.map((lib) => _chunk42OWKG5Wjs.LibraryResolver.call(void 0, lib)));
|
|
53
53
|
resolved.extensions = _utils.toArray.call(void 0, resolved.extensions);
|
|
54
54
|
if (resolved.globs) {
|
|
55
55
|
resolved.globs = _utils.toArray.call(void 0, resolved.globs).map((glob) => _utils.slash.call(void 0, _path.resolve.call(void 0, root, glob)));
|
|
@@ -62,7 +62,7 @@ function resolveOptions(options, root) {
|
|
|
62
62
|
if (!resolved.extensions.length)
|
|
63
63
|
throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
64
64
|
}
|
|
65
|
-
resolved.dts = !
|
|
65
|
+
resolved.dts = !resolved.dts ? false : _path.resolve.call(void 0, root, typeof resolved.dts === "string" ? resolved.dts : "components.d.ts");
|
|
66
66
|
resolved.root = root;
|
|
67
67
|
resolved.transformer = options.transformer || getVueVersion() || "vue3";
|
|
68
68
|
resolved.directives = typeof options.directives === "boolean" ? options.directives : !resolved.resolvers.some((i) => i.type === "directive") ? false : getVueVersion() === "vue3";
|
|
@@ -112,7 +112,7 @@ async function generateDeclaration(ctx, root, filepath) {
|
|
|
112
112
|
const imports = Object.fromEntries(Object.values(_chunkHIJQIC5Vjs.__spreadValues.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, ctx.componentNameMap), ctx.componentCustomMap)).map(({ path, name, importName }) => {
|
|
113
113
|
if (!name)
|
|
114
114
|
return void 0;
|
|
115
|
-
path =
|
|
115
|
+
path = _chunk42OWKG5Wjs.getTransformedPath.call(void 0, path, ctx);
|
|
116
116
|
const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
|
|
117
117
|
let entry = `typeof import('${_utils.slash.call(void 0, related)}')`;
|
|
118
118
|
if (importName)
|
|
@@ -188,12 +188,12 @@ async function transformComponent(code, transformer2, s, ctx, sfcPath) {
|
|
|
188
188
|
const results = transformer2 === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s);
|
|
189
189
|
for (const { rawName, replace } of results) {
|
|
190
190
|
debug2(`| ${rawName}`);
|
|
191
|
-
const name =
|
|
191
|
+
const name = _chunk42OWKG5Wjs.pascalCase.call(void 0, rawName);
|
|
192
192
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
193
193
|
const component = await ctx.findComponent(name, "component", [sfcPath]);
|
|
194
194
|
if (component) {
|
|
195
195
|
const varName = `__unplugin_components_${no}`;
|
|
196
|
-
s.prepend(`${
|
|
196
|
+
s.prepend(`${_chunk42OWKG5Wjs.stringifyComponentImport.call(void 0, _chunkHIJQIC5Vjs.__spreadProps.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, component), { name: varName }), ctx)};
|
|
197
197
|
`);
|
|
198
198
|
no += 1;
|
|
199
199
|
replace(varName);
|
|
@@ -232,7 +232,7 @@ async function resolveVue22(code, s) {
|
|
|
232
232
|
const results = [];
|
|
233
233
|
for (const node of nodes) {
|
|
234
234
|
const { callee, arguments: args } = node;
|
|
235
|
-
if (callee.type !== "Identifier" || callee.name !== "_c" || args[1].type !== "ObjectExpression")
|
|
235
|
+
if (callee.type !== "Identifier" || callee.name !== "_c" || args[1] == null || args[1].type !== "ObjectExpression")
|
|
236
236
|
continue;
|
|
237
237
|
const directives = (_a = args[1].properties.find((property) => property.type === "ObjectProperty" && property.key.type === "Identifier" && property.key.name === "directives")) == null ? void 0 : _a.value;
|
|
238
238
|
if (!directives || directives.type !== "ArrayExpression")
|
|
@@ -283,13 +283,13 @@ async function transformDirective(code, transformer2, s, ctx, sfcPath) {
|
|
|
283
283
|
const results = await (transformer2 === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
|
|
284
284
|
for (const { rawName, replace } of results) {
|
|
285
285
|
debug3(`| ${rawName}`);
|
|
286
|
-
const name =
|
|
286
|
+
const name = _chunk42OWKG5Wjs.pascalCase.call(void 0, rawName);
|
|
287
287
|
ctx.updateUsageMap(sfcPath, [name]);
|
|
288
288
|
const directive = await ctx.findComponent(name, "directive", [sfcPath]);
|
|
289
289
|
if (!directive)
|
|
290
290
|
continue;
|
|
291
291
|
const varName = `__unplugin_directives_${no}`;
|
|
292
|
-
s.prepend(`${
|
|
292
|
+
s.prepend(`${_chunk42OWKG5Wjs.stringifyComponentImport.call(void 0, _chunkHIJQIC5Vjs.__spreadProps.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, directive), { name: varName }), ctx)};
|
|
293
293
|
`);
|
|
294
294
|
no += 1;
|
|
295
295
|
replace(varName);
|
|
@@ -308,7 +308,7 @@ function transformer(ctx, transformer2) {
|
|
|
308
308
|
await transformComponent(code, transformer2, s, ctx, sfcPath);
|
|
309
309
|
if (ctx.options.directives)
|
|
310
310
|
await transformDirective(code, transformer2, s, ctx, sfcPath);
|
|
311
|
-
s.prepend(
|
|
311
|
+
s.prepend(_chunk42OWKG5Wjs.DISABLE_COMMENT);
|
|
312
312
|
const result = { code: s.toString() };
|
|
313
313
|
if (ctx.sourcemap)
|
|
314
314
|
result.map = s.generateMap({ source: id, includeContent: true });
|
|
@@ -352,7 +352,7 @@ var Context = class {
|
|
|
352
352
|
this.transformer = transformer(this, name || "vue3");
|
|
353
353
|
}
|
|
354
354
|
transform(code, id) {
|
|
355
|
-
const { path, query } =
|
|
355
|
+
const { path, query } = _chunk42OWKG5Wjs.parseId.call(void 0, id);
|
|
356
356
|
return this.transformer(code, id, path, query);
|
|
357
357
|
}
|
|
358
358
|
setupViteServer(server) {
|
|
@@ -364,13 +364,13 @@ var Context = class {
|
|
|
364
364
|
setupWatcher(watcher) {
|
|
365
365
|
const { globs } = this.options;
|
|
366
366
|
watcher.on("unlink", (path) => {
|
|
367
|
-
if (!
|
|
367
|
+
if (!_chunk42OWKG5Wjs.matchGlobs.call(void 0, path, globs))
|
|
368
368
|
return;
|
|
369
369
|
this.removeComponents(path);
|
|
370
370
|
this.onUpdate(path);
|
|
371
371
|
});
|
|
372
372
|
watcher.on("add", (path) => {
|
|
373
|
-
if (!
|
|
373
|
+
if (!_chunk42OWKG5Wjs.matchGlobs.call(void 0, path, globs))
|
|
374
374
|
return;
|
|
375
375
|
this.addComponents(path);
|
|
376
376
|
this.onUpdate(path);
|
|
@@ -416,7 +416,7 @@ var Context = class {
|
|
|
416
416
|
updates: []
|
|
417
417
|
};
|
|
418
418
|
const timestamp = +new Date();
|
|
419
|
-
const name =
|
|
419
|
+
const name = _chunk42OWKG5Wjs.pascalCase.call(void 0, _chunk42OWKG5Wjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
420
420
|
Object.entries(this._componentUsageMap).forEach(([key, values]) => {
|
|
421
421
|
if (values.has(name)) {
|
|
422
422
|
const r = `/${_utils.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
|
|
@@ -434,7 +434,7 @@ var Context = class {
|
|
|
434
434
|
updateComponentNameMap() {
|
|
435
435
|
this._componentNameMap = {};
|
|
436
436
|
Array.from(this._componentPaths).forEach((path) => {
|
|
437
|
-
const name =
|
|
437
|
+
const name = _chunk42OWKG5Wjs.pascalCase.call(void 0, _chunk42OWKG5Wjs.getNameFromFilePath.call(void 0, path, this.options));
|
|
438
438
|
if (this._componentNameMap[name] && !this.options.allowOverrides) {
|
|
439
439
|
console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`);
|
|
440
440
|
return;
|
|
@@ -474,7 +474,7 @@ var Context = class {
|
|
|
474
474
|
}
|
|
475
475
|
normalizePath(path) {
|
|
476
476
|
var _a, _b, _c;
|
|
477
|
-
return
|
|
477
|
+
return _chunk42OWKG5Wjs.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) || []);
|
|
478
478
|
}
|
|
479
479
|
relative(path) {
|
|
480
480
|
if (path.startsWith("/") && !path.startsWith(this.root))
|
|
@@ -513,7 +513,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
513
513
|
return filter(id);
|
|
514
514
|
},
|
|
515
515
|
async transform(code, id) {
|
|
516
|
-
if (!
|
|
516
|
+
if (!_chunk42OWKG5Wjs.shouldTransform.call(void 0, code))
|
|
517
517
|
return null;
|
|
518
518
|
try {
|
|
519
519
|
const result = await ctx.transform(code, id);
|
|
@@ -526,7 +526,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
|
|
|
526
526
|
vite: {
|
|
527
527
|
configResolved(config) {
|
|
528
528
|
ctx.setRoot(config.root);
|
|
529
|
-
ctx.sourcemap =
|
|
529
|
+
ctx.sourcemap = true;
|
|
530
530
|
if (config.plugins.find((i) => i.name === "vite-plugin-vue2"))
|
|
531
531
|
ctx.setTransformer("vue2");
|
|
532
532
|
if (options.dts) {
|
|
@@ -105,7 +105,7 @@ function getNameFromFilePath(filePath, options) {
|
|
|
105
105
|
}
|
|
106
106
|
return filename;
|
|
107
107
|
}
|
|
108
|
-
function resolveAlias(filepath, alias
|
|
108
|
+
function resolveAlias(filepath, alias) {
|
|
109
109
|
const result = filepath;
|
|
110
110
|
if (Array.isArray(alias)) {
|
|
111
111
|
for (const { find, replacement } of alias)
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveAlias,
|
|
10
10
|
shouldTransform,
|
|
11
11
|
stringifyComponentImport
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V5TNASXD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__require,
|
|
15
15
|
__spreadProps,
|
|
@@ -24,7 +24,7 @@ import chokidar from "chokidar";
|
|
|
24
24
|
// src/core/context.ts
|
|
25
25
|
import { relative as relative2 } from "path";
|
|
26
26
|
import Debug5 from "debug";
|
|
27
|
-
import { throttle, toArray as toArray2
|
|
27
|
+
import { slash as slash3, throttle, toArray as toArray2 } from "@antfu/utils";
|
|
28
28
|
|
|
29
29
|
// src/core/options.ts
|
|
30
30
|
import { join, resolve } from "path";
|
|
@@ -62,7 +62,7 @@ function resolveOptions(options, root) {
|
|
|
62
62
|
if (!resolved.extensions.length)
|
|
63
63
|
throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
64
64
|
}
|
|
65
|
-
resolved.dts = !
|
|
65
|
+
resolved.dts = !resolved.dts ? false : resolve(root, typeof resolved.dts === "string" ? resolved.dts : "components.d.ts");
|
|
66
66
|
resolved.root = root;
|
|
67
67
|
resolved.transformer = options.transformer || getVueVersion() || "vue3";
|
|
68
68
|
resolved.directives = typeof options.directives === "boolean" ? options.directives : !resolved.resolvers.some((i) => i.type === "directive") ? false : getVueVersion() === "vue3";
|
|
@@ -100,8 +100,8 @@ function searchComponents(ctx) {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// src/core/declaration.ts
|
|
103
|
-
import { dirname,
|
|
104
|
-
import { promises as fs
|
|
103
|
+
import { dirname, isAbsolute, relative } from "path";
|
|
104
|
+
import { existsSync, promises as fs } from "fs";
|
|
105
105
|
import { notNullish, slash as slash2 } from "@antfu/utils";
|
|
106
106
|
function parseDeclaration(code) {
|
|
107
107
|
if (!code)
|
|
@@ -232,7 +232,7 @@ async function resolveVue22(code, s) {
|
|
|
232
232
|
const results = [];
|
|
233
233
|
for (const node of nodes) {
|
|
234
234
|
const { callee, arguments: args } = node;
|
|
235
|
-
if (callee.type !== "Identifier" || callee.name !== "_c" || args[1].type !== "ObjectExpression")
|
|
235
|
+
if (callee.type !== "Identifier" || callee.name !== "_c" || args[1] == null || args[1].type !== "ObjectExpression")
|
|
236
236
|
continue;
|
|
237
237
|
const directives = (_a = args[1].properties.find((property) => property.type === "ObjectProperty" && property.key.type === "Identifier" && property.key.name === "directives")) == null ? void 0 : _a.value;
|
|
238
238
|
if (!directives || directives.type !== "ArrayExpression")
|
|
@@ -526,7 +526,7 @@ var unplugin_default = createUnplugin((options = {}) => {
|
|
|
526
526
|
vite: {
|
|
527
527
|
configResolved(config) {
|
|
528
528
|
ctx.setRoot(config.root);
|
|
529
|
-
ctx.sourcemap =
|
|
529
|
+
ctx.sourcemap = true;
|
|
530
530
|
if (config.plugins.find((i) => i.name === "vite-plugin-vue2"))
|
|
531
531
|
ctx.setTransformer("vue2");
|
|
532
532
|
if (options.dts) {
|
|
@@ -4,8 +4,8 @@ import minimatch from "minimatch";
|
|
|
4
4
|
import resolve from "resolve";
|
|
5
5
|
import { slash, toArray } from "@antfu/utils";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
getPackageInfo,
|
|
8
|
+
isPackageExists
|
|
9
9
|
} from "local-pkg";
|
|
10
10
|
|
|
11
11
|
// src/core/constants.ts
|
|
@@ -105,7 +105,7 @@ function getNameFromFilePath(filePath, options) {
|
|
|
105
105
|
}
|
|
106
106
|
return filename;
|
|
107
107
|
}
|
|
108
|
-
function resolveAlias(filepath, alias
|
|
108
|
+
function resolveAlias(filepath, alias) {
|
|
109
109
|
const result = filepath;
|
|
110
110
|
if (Array.isArray(alias)) {
|
|
111
111
|
for (const { find, replacement } of alias)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
import { Options } from './types';
|
|
3
|
+
import '@rollup/pluginutils';
|
|
4
|
+
import 'unplugin';
|
|
5
|
+
import '@antfu/utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => esbuild.Plugin;
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/esbuild.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
|
+
require('./chunk-42OWKG5W.js');
|
|
5
|
+
require('./chunk-GGNOJ77I.js');
|
|
6
|
+
require('./chunk-HIJQIC5V.js');
|
|
7
|
+
|
|
8
|
+
// src/esbuild.ts
|
|
9
|
+
var esbuild_default = _chunk3KCE575Xjs.unplugin_default.esbuild;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
module.exports = esbuild_default;
|
|
13
|
+
exports.default = module.exports;
|
package/dist/esbuild.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
unplugin_default
|
|
3
|
+
} from "./chunk-L5BL2OCJ.mjs";
|
|
4
|
+
import "./chunk-V5TNASXD.mjs";
|
|
5
|
+
import "./chunk-WBQAMGXK.mjs";
|
|
6
|
+
import "./chunk-EKXJN6YJ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/esbuild.ts
|
|
9
|
+
var esbuild_default = unplugin_default.esbuild;
|
|
10
|
+
export {
|
|
11
|
+
esbuild_default as default
|
|
12
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk42OWKG5Wjs = require('./chunk-42OWKG5W.js');
|
|
9
9
|
require('./chunk-GGNOJ77I.js');
|
|
10
10
|
require('./chunk-HIJQIC5V.js');
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ require('./chunk-HIJQIC5V.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.camelCase =
|
|
16
|
+
exports.camelCase = _chunk42OWKG5Wjs.camelCase; exports.default = _chunk3KCE575Xjs.unplugin_default; exports.kebabCase = _chunk42OWKG5Wjs.kebabCase; exports.pascalCase = _chunk42OWKG5Wjs.pascalCase;
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5BL2OCJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
camelCase,
|
|
6
6
|
kebabCase,
|
|
7
7
|
pascalCase
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V5TNASXD.mjs";
|
|
9
9
|
import "./chunk-WBQAMGXK.mjs";
|
|
10
10
|
import "./chunk-EKXJN6YJ.mjs";
|
|
11
11
|
export {
|
package/dist/nuxt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
|
+
require('./chunk-42OWKG5W.js');
|
|
5
5
|
require('./chunk-GGNOJ77I.js');
|
|
6
6
|
require('./chunk-HIJQIC5V.js');
|
|
7
7
|
|
|
@@ -9,11 +9,11 @@ require('./chunk-HIJQIC5V.js');
|
|
|
9
9
|
function nuxt_default(options) {
|
|
10
10
|
this.extendBuild((config) => {
|
|
11
11
|
config.plugins = config.plugins || [];
|
|
12
|
-
config.plugins.unshift(
|
|
12
|
+
config.plugins.unshift(_chunk3KCE575Xjs.unplugin_default.webpack(options));
|
|
13
13
|
});
|
|
14
14
|
this.nuxt.hook("vite:extend", async (vite) => {
|
|
15
15
|
vite.config.plugins = vite.config.plugins || [];
|
|
16
|
-
vite.config.plugins.push(
|
|
16
|
+
vite.config.plugins.push(_chunk3KCE575Xjs.unplugin_default.vite(options));
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
package/dist/nuxt.mjs
CHANGED
package/dist/resolvers.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ interface ElementPlusResolverOptions {
|
|
|
72
72
|
* @default true
|
|
73
73
|
*/
|
|
74
74
|
directives?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* exclude component name, if match do not resolve the name
|
|
77
|
+
*/
|
|
78
|
+
exclude?: RegExp;
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
77
81
|
* Resolver for Element Plus
|
|
@@ -114,7 +118,7 @@ interface HeadlessUiResolverOptions {
|
|
|
114
118
|
*
|
|
115
119
|
* @link https://github.com/tailwindlabs/headlessui
|
|
116
120
|
*/
|
|
117
|
-
declare function HeadlessUiResolver(
|
|
121
|
+
declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): ComponentResolver;
|
|
118
122
|
|
|
119
123
|
interface IduxResolverOptions {
|
|
120
124
|
/**
|
|
@@ -135,6 +139,14 @@ interface IduxResolverOptions {
|
|
|
135
139
|
*/
|
|
136
140
|
declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
|
|
137
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Resolver for Inkline
|
|
144
|
+
*
|
|
145
|
+
* @author @alexgrozav
|
|
146
|
+
* @link https://github.com/inkline/inkline
|
|
147
|
+
*/
|
|
148
|
+
declare function InklineResolver(): ComponentResolver;
|
|
149
|
+
|
|
138
150
|
/**
|
|
139
151
|
* Resolver for Naive UI
|
|
140
152
|
*
|
|
@@ -368,4 +380,4 @@ declare function TDesignResolver(options?: TDesignResolverOptions): ComponentRes
|
|
|
368
380
|
declare function tryLoadVeturTags(name: string): string[] | undefined;
|
|
369
381
|
declare function LibraryResolver(options: UILibraryOptions): ComponentResolverObject;
|
|
370
382
|
|
|
371
|
-
export { AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, DevResolverOptions, DevUiResolver, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, LibraryResolver, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VuetifyResolver, getResolved, tryLoadVeturTags };
|
|
383
|
+
export { AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, DevResolverOptions, DevUiResolver, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, LibraryResolver, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VuetifyResolver, getResolved, tryLoadVeturTags };
|
package/dist/resolvers.js
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk42OWKG5Wjs = require('./chunk-42OWKG5W.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkHIJQIC5Vjs = require('./chunk-HIJQIC5V.js');
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.
|
|
16
|
+
// node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.26/node_modules/@vueuse/core/indexes.json
|
|
17
17
|
var require_indexes = _chunkHIJQIC5Vjs.__commonJS.call(void 0, {
|
|
18
|
-
"node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.
|
|
18
|
+
"node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.26/node_modules/@vueuse/core/indexes.json"(exports, module) {
|
|
19
19
|
module.exports = {
|
|
20
20
|
packages: {
|
|
21
21
|
shared: {
|
|
@@ -1228,6 +1228,10 @@ var matchComponents = [
|
|
|
1228
1228
|
pattern: /^CheckableTag/,
|
|
1229
1229
|
styleDir: "tag"
|
|
1230
1230
|
},
|
|
1231
|
+
{
|
|
1232
|
+
pattern: /^TimeRangePicker/,
|
|
1233
|
+
styleDir: "time-picker"
|
|
1234
|
+
},
|
|
1231
1235
|
{
|
|
1232
1236
|
pattern: /^Layout/,
|
|
1233
1237
|
styleDir: "layout"
|
|
@@ -1240,6 +1244,10 @@ var matchComponents = [
|
|
|
1240
1244
|
pattern: /^Table/,
|
|
1241
1245
|
styleDir: "table"
|
|
1242
1246
|
},
|
|
1247
|
+
{
|
|
1248
|
+
pattern: /^TimePicker|^TimeRangePicker/,
|
|
1249
|
+
styleDir: "time-picker"
|
|
1250
|
+
},
|
|
1243
1251
|
{
|
|
1244
1252
|
pattern: /^Radio/,
|
|
1245
1253
|
styleDir: "radio"
|
|
@@ -1304,7 +1312,7 @@ function getStyleDir(compName) {
|
|
|
1304
1312
|
}
|
|
1305
1313
|
}
|
|
1306
1314
|
if (!styleDir)
|
|
1307
|
-
styleDir =
|
|
1315
|
+
styleDir = _chunk42OWKG5Wjs.kebabCase.call(void 0, compName);
|
|
1308
1316
|
return styleDir;
|
|
1309
1317
|
}
|
|
1310
1318
|
function getSideEffects(compName, options) {
|
|
@@ -1358,7 +1366,7 @@ function AntDesignVueResolver(options = {}) {
|
|
|
1358
1366
|
};
|
|
1359
1367
|
}
|
|
1360
1368
|
|
|
1361
|
-
// node_modules/.pnpm/compare-versions@4.1.
|
|
1369
|
+
// node_modules/.pnpm/compare-versions@4.1.3/node_modules/compare-versions/index.mjs
|
|
1362
1370
|
function compareVersions(v1, v2) {
|
|
1363
1371
|
const n1 = validateAndParse(v1);
|
|
1364
1372
|
const n2 = validateAndParse(v2);
|
|
@@ -1374,11 +1382,31 @@ function compareVersions(v1, v2) {
|
|
|
1374
1382
|
}
|
|
1375
1383
|
return 0;
|
|
1376
1384
|
}
|
|
1385
|
+
var validate = (v) => typeof v === "string" && /^[v\d]/.test(v) && semver.test(v);
|
|
1377
1386
|
var compare = (v1, v2, operator) => {
|
|
1378
1387
|
assertValidOperator(operator);
|
|
1379
1388
|
const res = compareVersions(v1, v2);
|
|
1380
1389
|
return operatorResMap[operator].includes(res);
|
|
1381
1390
|
};
|
|
1391
|
+
var satisfies = (v, r) => {
|
|
1392
|
+
const m = r.match(/^([<>=~^]+)/);
|
|
1393
|
+
const op = m ? m[1] : "=";
|
|
1394
|
+
if (op !== "^" && op !== "~")
|
|
1395
|
+
return compare(v, r, op);
|
|
1396
|
+
const [v1, v2, v3] = validateAndParse(v);
|
|
1397
|
+
const [r1, r2, r3] = validateAndParse(r);
|
|
1398
|
+
if (compareStrings(v1, r1) !== 0)
|
|
1399
|
+
return false;
|
|
1400
|
+
if (op === "^") {
|
|
1401
|
+
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
1402
|
+
}
|
|
1403
|
+
if (compareStrings(v2, r2) !== 0)
|
|
1404
|
+
return false;
|
|
1405
|
+
return compareStrings(v3, r3) >= 0;
|
|
1406
|
+
};
|
|
1407
|
+
compareVersions.validate = validate;
|
|
1408
|
+
compareVersions.compare = compare;
|
|
1409
|
+
compareVersions.sastisfies = satisfies;
|
|
1382
1410
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
1383
1411
|
var validateAndParse = (v) => {
|
|
1384
1412
|
if (typeof v !== "string") {
|
|
@@ -1459,17 +1487,19 @@ function getSideEffects2(dirName, options) {
|
|
|
1459
1487
|
return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
|
|
1460
1488
|
}
|
|
1461
1489
|
function resolveComponent(name, options) {
|
|
1490
|
+
if (options.exclude && name.match(options.exclude))
|
|
1491
|
+
return;
|
|
1462
1492
|
if (!name.match(/^El[A-Z]/))
|
|
1463
1493
|
return;
|
|
1464
|
-
const partialName =
|
|
1494
|
+
const partialName = _chunk42OWKG5Wjs.kebabCase.call(void 0, name.slice(2));
|
|
1465
1495
|
const { version, ssr } = options;
|
|
1466
|
-
if (compare(version, "1.1.0-beta.1", ">=")) {
|
|
1496
|
+
if (compareVersions.compare(version, "1.1.0-beta.1", ">=")) {
|
|
1467
1497
|
return {
|
|
1468
1498
|
importName: name,
|
|
1469
1499
|
path: `element-plus/${ssr ? "lib" : "es"}`,
|
|
1470
1500
|
sideEffects: getSideEffects2(partialName, options)
|
|
1471
1501
|
};
|
|
1472
|
-
} else if (compare(version, "1.0.2-beta.28", ">=")) {
|
|
1502
|
+
} else if (compareVersions.compare(version, "1.0.2-beta.28", ">=")) {
|
|
1473
1503
|
return {
|
|
1474
1504
|
path: `element-plus/es/el-${partialName}`,
|
|
1475
1505
|
sideEffects: getSideEffectsLegacy(partialName, options)
|
|
@@ -1493,7 +1523,7 @@ function resolveDirective(name, options) {
|
|
|
1493
1523
|
if (!directive)
|
|
1494
1524
|
return;
|
|
1495
1525
|
const { version, ssr } = options;
|
|
1496
|
-
if (compare(version, "1.1.0-beta.1", ">=")) {
|
|
1526
|
+
if (compareVersions.compare(version, "1.1.0-beta.1", ">=")) {
|
|
1497
1527
|
return {
|
|
1498
1528
|
importName: directive.importName,
|
|
1499
1529
|
path: `element-plus/${ssr ? "lib" : "es"}`,
|
|
@@ -1508,9 +1538,10 @@ function ElementPlusResolver(options = {}) {
|
|
|
1508
1538
|
return optionsResolved;
|
|
1509
1539
|
optionsResolved = _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {
|
|
1510
1540
|
ssr: false,
|
|
1511
|
-
version: await
|
|
1541
|
+
version: await _chunk42OWKG5Wjs.getPkgVersion.call(void 0, "element-plus", "1.1.0-beta.21"),
|
|
1512
1542
|
importStyle: "css",
|
|
1513
|
-
directives: true
|
|
1543
|
+
directives: true,
|
|
1544
|
+
exclude: void 0
|
|
1514
1545
|
}, options);
|
|
1515
1546
|
return optionsResolved;
|
|
1516
1547
|
}
|
|
@@ -1553,7 +1584,7 @@ function ElementUiResolver(options = {}) {
|
|
|
1553
1584
|
resolve: (name) => {
|
|
1554
1585
|
if (name.startsWith("El")) {
|
|
1555
1586
|
const compName = name.slice(2);
|
|
1556
|
-
const partialName =
|
|
1587
|
+
const partialName = _chunk42OWKG5Wjs.kebabCase.call(void 0, compName);
|
|
1557
1588
|
if (partialName === "collapse-transition") {
|
|
1558
1589
|
return {
|
|
1559
1590
|
path: `element-ui/lib/transitions/${partialName}`
|
|
@@ -1610,9 +1641,8 @@ var components = [
|
|
|
1610
1641
|
"TabPanels",
|
|
1611
1642
|
"TabPanel"
|
|
1612
1643
|
];
|
|
1613
|
-
function HeadlessUiResolver({
|
|
1614
|
-
prefix: prefix2 = ""
|
|
1615
|
-
}) {
|
|
1644
|
+
function HeadlessUiResolver(options = {}) {
|
|
1645
|
+
const { prefix: prefix2 = "" } = options;
|
|
1616
1646
|
return {
|
|
1617
1647
|
type: "component",
|
|
1618
1648
|
resolve: (name) => {
|
|
@@ -1647,39 +1677,50 @@ function IduxResolver(options = {}) {
|
|
|
1647
1677
|
type: "component",
|
|
1648
1678
|
resolve: (name) => {
|
|
1649
1679
|
const { importStyle, exclude = [] } = options;
|
|
1650
|
-
if (exclude.includes(name))
|
|
1680
|
+
if (exclude.includes(name))
|
|
1651
1681
|
return;
|
|
1652
|
-
}
|
|
1653
1682
|
const packageName = getPackageName(name);
|
|
1654
|
-
if (!packageName)
|
|
1683
|
+
if (!packageName)
|
|
1655
1684
|
return;
|
|
1656
|
-
}
|
|
1657
1685
|
let dirname = specialComponents[name];
|
|
1658
1686
|
if (!dirname) {
|
|
1659
1687
|
const nameIndex = packageName === "pro" ? 2 : 1;
|
|
1660
|
-
dirname =
|
|
1688
|
+
dirname = _chunk42OWKG5Wjs.kebabCase.call(void 0, name).split("-")[nameIndex];
|
|
1661
1689
|
}
|
|
1662
1690
|
const path = `@idux/${packageName}/${dirname}`;
|
|
1663
1691
|
let sideEffects;
|
|
1664
|
-
if (packageName !== "cdk" && importStyle)
|
|
1692
|
+
if (packageName !== "cdk" && importStyle)
|
|
1665
1693
|
sideEffects = `${path}/style/themes/${importStyle === "css" ? "default_css" : "default"}`;
|
|
1666
|
-
}
|
|
1667
1694
|
return { importName: name, path, sideEffects };
|
|
1668
1695
|
}
|
|
1669
1696
|
};
|
|
1670
1697
|
}
|
|
1671
1698
|
function getPackageName(name) {
|
|
1672
1699
|
let packageName;
|
|
1673
|
-
if (name.match(/^Cdk[A-Z]/))
|
|
1700
|
+
if (name.match(/^Cdk[A-Z]/))
|
|
1674
1701
|
packageName = "cdk";
|
|
1675
|
-
|
|
1702
|
+
else if (name.match(/^IxPro[A-Z]/))
|
|
1676
1703
|
packageName = "pro";
|
|
1677
|
-
|
|
1704
|
+
else if (name.match(/^Ix[A-Z]/))
|
|
1678
1705
|
packageName = "components";
|
|
1679
|
-
}
|
|
1680
1706
|
return packageName;
|
|
1681
1707
|
}
|
|
1682
1708
|
|
|
1709
|
+
// src/core/resolvers/inkline.ts
|
|
1710
|
+
function InklineResolver() {
|
|
1711
|
+
return {
|
|
1712
|
+
type: "component",
|
|
1713
|
+
resolve: (name) => {
|
|
1714
|
+
if (name.match(/^I[A-Z]/)) {
|
|
1715
|
+
return {
|
|
1716
|
+
importName: name,
|
|
1717
|
+
path: "@inkline/inkline"
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1683
1724
|
// src/core/resolvers/naive-ui.ts
|
|
1684
1725
|
function NaiveUiResolver() {
|
|
1685
1726
|
return {
|
|
@@ -1795,9 +1836,8 @@ function PrimeVueResolver(options = {}) {
|
|
|
1795
1836
|
sideEffects.push(`primevue/resources/themes/${options.importTheme}/theme.css`);
|
|
1796
1837
|
}
|
|
1797
1838
|
if (options.prefix) {
|
|
1798
|
-
if (!name.startsWith(options.prefix))
|
|
1839
|
+
if (!name.startsWith(options.prefix))
|
|
1799
1840
|
return;
|
|
1800
|
-
}
|
|
1801
1841
|
name = name.substring(options.prefix.length);
|
|
1802
1842
|
}
|
|
1803
1843
|
if (components2.includes(name)) {
|
|
@@ -1830,7 +1870,7 @@ function VantResolver(options = {}) {
|
|
|
1830
1870
|
return {
|
|
1831
1871
|
importName: partialName,
|
|
1832
1872
|
path: "vant/es",
|
|
1833
|
-
sideEffects: getSideEffects4(
|
|
1873
|
+
sideEffects: getSideEffects4(_chunk42OWKG5Wjs.kebabCase.call(void 0, partialName), options)
|
|
1834
1874
|
};
|
|
1835
1875
|
}
|
|
1836
1876
|
}
|
|
@@ -1847,9 +1887,9 @@ function getResolved(name, options) {
|
|
|
1847
1887
|
const sideEffects = [];
|
|
1848
1888
|
if (importStyle || importCss) {
|
|
1849
1889
|
if (importStyle === "less" || importLess)
|
|
1850
|
-
sideEffects.push(`@varlet/ui/es/${
|
|
1890
|
+
sideEffects.push(`@varlet/ui/es/${_chunk42OWKG5Wjs.kebabCase.call(void 0, name)}/style/less.js`);
|
|
1851
1891
|
else
|
|
1852
|
-
sideEffects.push(`@varlet/ui/es/${
|
|
1892
|
+
sideEffects.push(`@varlet/ui/es/${_chunk42OWKG5Wjs.kebabCase.call(void 0, name)}/style`);
|
|
1853
1893
|
}
|
|
1854
1894
|
return {
|
|
1855
1895
|
path: "@varlet/ui",
|
|
@@ -1906,15 +1946,15 @@ function VeuiResolver(options) {
|
|
|
1906
1946
|
};
|
|
1907
1947
|
}
|
|
1908
1948
|
var formatters = {
|
|
1909
|
-
"kebab-case":
|
|
1910
|
-
"camelCase":
|
|
1911
|
-
"PascalCase":
|
|
1949
|
+
"kebab-case": _chunk42OWKG5Wjs.kebabCase,
|
|
1950
|
+
"camelCase": _chunk42OWKG5Wjs.camelCase,
|
|
1951
|
+
"PascalCase": _chunk42OWKG5Wjs.pascalCase
|
|
1912
1952
|
};
|
|
1913
1953
|
var peerPaths = new Map();
|
|
1914
1954
|
function assertPeerPath(peerPath) {
|
|
1915
1955
|
if (!peerPaths.has(peerPath)) {
|
|
1916
1956
|
try {
|
|
1917
|
-
|
|
1957
|
+
_chunk42OWKG5Wjs.resolveImportPath.call(void 0, peerPath);
|
|
1918
1958
|
peerPaths.set(peerPath, true);
|
|
1919
1959
|
} catch (e) {
|
|
1920
1960
|
peerPaths.set(peerPath, false);
|
|
@@ -1966,12 +2006,12 @@ function getCompDir(compName) {
|
|
|
1966
2006
|
for (let i = 0; i < total; i++) {
|
|
1967
2007
|
const matcher = matchComponents2[i];
|
|
1968
2008
|
if (compName.match(matcher.pattern)) {
|
|
1969
|
-
compPath = `${matcher.compDir}/${
|
|
2009
|
+
compPath = `${matcher.compDir}/${_chunk42OWKG5Wjs.kebabCase.call(void 0, compName)}.vue`;
|
|
1970
2010
|
break;
|
|
1971
2011
|
}
|
|
1972
2012
|
}
|
|
1973
2013
|
if (!compPath)
|
|
1974
|
-
compPath =
|
|
2014
|
+
compPath = _chunk42OWKG5Wjs.kebabCase.call(void 0, compName);
|
|
1975
2015
|
return compPath;
|
|
1976
2016
|
}
|
|
1977
2017
|
function ViewUiResolver() {
|
|
@@ -2062,7 +2102,7 @@ function getSideEffects7(name) {
|
|
|
2062
2102
|
function componentsResolver(name) {
|
|
2063
2103
|
if (!name.match(/^D[A-Z]/))
|
|
2064
2104
|
return;
|
|
2065
|
-
const resolveId =
|
|
2105
|
+
const resolveId = _chunk42OWKG5Wjs.kebabCase.call(void 0, name = name.slice(1));
|
|
2066
2106
|
return {
|
|
2067
2107
|
path: LIB_NAME,
|
|
2068
2108
|
importName: name,
|
|
@@ -2135,7 +2175,7 @@ var matchComponents3 = [
|
|
|
2135
2175
|
componentDir: "form"
|
|
2136
2176
|
},
|
|
2137
2177
|
{
|
|
2138
|
-
pattern: /^(Col|Row)$/,
|
|
2178
|
+
pattern: /^(Col|Row|GridItem)$/,
|
|
2139
2179
|
componentDir: "grid"
|
|
2140
2180
|
},
|
|
2141
2181
|
{
|
|
@@ -2196,7 +2236,9 @@ var matchComponents3 = [
|
|
|
2196
2236
|
}
|
|
2197
2237
|
];
|
|
2198
2238
|
function getComponentStyleDir(importName, importStyle) {
|
|
2199
|
-
|
|
2239
|
+
if (["ConfigProvider", "Icon"].includes(importName))
|
|
2240
|
+
return void 0;
|
|
2241
|
+
let componentDir = _chunk42OWKG5Wjs.kebabCase.call(void 0, importName);
|
|
2200
2242
|
for (const item of matchComponents3) {
|
|
2201
2243
|
if (item.pattern.test(importName)) {
|
|
2202
2244
|
componentDir = item.componentDir;
|
|
@@ -2235,9 +2277,13 @@ function ArcoResolver(options = {}) {
|
|
|
2235
2277
|
// src/core/resolvers/tdesign.ts
|
|
2236
2278
|
function getSideEffects8(importName, options) {
|
|
2237
2279
|
const { library = "vue", importStyle = "css" } = options;
|
|
2238
|
-
|
|
2280
|
+
let fileName = _chunk42OWKG5Wjs.kebabCase.call(void 0, importName);
|
|
2239
2281
|
if (!importStyle)
|
|
2240
2282
|
return;
|
|
2283
|
+
if (fileName === "config-provider")
|
|
2284
|
+
return;
|
|
2285
|
+
if (fileName === "radio-group" || fileName === "radio-button")
|
|
2286
|
+
fileName = "radio";
|
|
2241
2287
|
if (importStyle === "less")
|
|
2242
2288
|
return `tdesign-${library}/esm/${fileName}/style`;
|
|
2243
2289
|
return `tdesign-${library}/es/${fileName}/style`;
|
|
@@ -2285,5 +2331,6 @@ function TDesignResolver(options = {}) {
|
|
|
2285
2331
|
|
|
2286
2332
|
|
|
2287
2333
|
|
|
2288
|
-
|
|
2334
|
+
|
|
2335
|
+
exports.AntDesignVueResolver = AntDesignVueResolver; exports.ArcoResolver = ArcoResolver; exports.DevUiResolver = DevUiResolver; exports.ElementPlusResolver = ElementPlusResolver; exports.ElementUiResolver = ElementUiResolver; exports.HeadlessUiResolver = HeadlessUiResolver; exports.IduxResolver = IduxResolver; exports.InklineResolver = InklineResolver; exports.LibraryResolver = _chunk42OWKG5Wjs.LibraryResolver; exports.NaiveUiResolver = NaiveUiResolver; exports.PrimeVueResolver = PrimeVueResolver; exports.QuasarResolver = QuasarResolver; exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.VarletUIResolver = VarletUIResolver; exports.VeuiResolver = VeuiResolver; exports.ViewUiResolver = ViewUiResolver; exports.VueUseComponentsResolver = VueUseComponentsResolver; exports.VuetifyResolver = VuetifyResolver; exports.getResolved = getResolved; exports.tryLoadVeturTags = _chunk42OWKG5Wjs.tryLoadVeturTags;
|
|
2289
2336
|
exports.default = module.exports;
|
package/dist/resolvers.mjs
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
pascalCase,
|
|
7
7
|
resolveImportPath,
|
|
8
8
|
tryLoadVeturTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V5TNASXD.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__commonJS,
|
|
12
12
|
__require,
|
|
13
13
|
__spreadValues
|
|
14
14
|
} from "./chunk-EKXJN6YJ.mjs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.
|
|
16
|
+
// node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.26/node_modules/@vueuse/core/indexes.json
|
|
17
17
|
var require_indexes = __commonJS({
|
|
18
|
-
"node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.
|
|
18
|
+
"node_modules/.pnpm/@vueuse+core@6.1.0_vue@3.2.26/node_modules/@vueuse/core/indexes.json"(exports, module) {
|
|
19
19
|
module.exports = {
|
|
20
20
|
packages: {
|
|
21
21
|
shared: {
|
|
@@ -1228,6 +1228,10 @@ var matchComponents = [
|
|
|
1228
1228
|
pattern: /^CheckableTag/,
|
|
1229
1229
|
styleDir: "tag"
|
|
1230
1230
|
},
|
|
1231
|
+
{
|
|
1232
|
+
pattern: /^TimeRangePicker/,
|
|
1233
|
+
styleDir: "time-picker"
|
|
1234
|
+
},
|
|
1231
1235
|
{
|
|
1232
1236
|
pattern: /^Layout/,
|
|
1233
1237
|
styleDir: "layout"
|
|
@@ -1240,6 +1244,10 @@ var matchComponents = [
|
|
|
1240
1244
|
pattern: /^Table/,
|
|
1241
1245
|
styleDir: "table"
|
|
1242
1246
|
},
|
|
1247
|
+
{
|
|
1248
|
+
pattern: /^TimePicker|^TimeRangePicker/,
|
|
1249
|
+
styleDir: "time-picker"
|
|
1250
|
+
},
|
|
1243
1251
|
{
|
|
1244
1252
|
pattern: /^Radio/,
|
|
1245
1253
|
styleDir: "radio"
|
|
@@ -1358,7 +1366,7 @@ function AntDesignVueResolver(options = {}) {
|
|
|
1358
1366
|
};
|
|
1359
1367
|
}
|
|
1360
1368
|
|
|
1361
|
-
// node_modules/.pnpm/compare-versions@4.1.
|
|
1369
|
+
// node_modules/.pnpm/compare-versions@4.1.3/node_modules/compare-versions/index.mjs
|
|
1362
1370
|
function compareVersions(v1, v2) {
|
|
1363
1371
|
const n1 = validateAndParse(v1);
|
|
1364
1372
|
const n2 = validateAndParse(v2);
|
|
@@ -1374,11 +1382,31 @@ function compareVersions(v1, v2) {
|
|
|
1374
1382
|
}
|
|
1375
1383
|
return 0;
|
|
1376
1384
|
}
|
|
1385
|
+
var validate = (v) => typeof v === "string" && /^[v\d]/.test(v) && semver.test(v);
|
|
1377
1386
|
var compare = (v1, v2, operator) => {
|
|
1378
1387
|
assertValidOperator(operator);
|
|
1379
1388
|
const res = compareVersions(v1, v2);
|
|
1380
1389
|
return operatorResMap[operator].includes(res);
|
|
1381
1390
|
};
|
|
1391
|
+
var satisfies = (v, r) => {
|
|
1392
|
+
const m = r.match(/^([<>=~^]+)/);
|
|
1393
|
+
const op = m ? m[1] : "=";
|
|
1394
|
+
if (op !== "^" && op !== "~")
|
|
1395
|
+
return compare(v, r, op);
|
|
1396
|
+
const [v1, v2, v3] = validateAndParse(v);
|
|
1397
|
+
const [r1, r2, r3] = validateAndParse(r);
|
|
1398
|
+
if (compareStrings(v1, r1) !== 0)
|
|
1399
|
+
return false;
|
|
1400
|
+
if (op === "^") {
|
|
1401
|
+
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
1402
|
+
}
|
|
1403
|
+
if (compareStrings(v2, r2) !== 0)
|
|
1404
|
+
return false;
|
|
1405
|
+
return compareStrings(v3, r3) >= 0;
|
|
1406
|
+
};
|
|
1407
|
+
compareVersions.validate = validate;
|
|
1408
|
+
compareVersions.compare = compare;
|
|
1409
|
+
compareVersions.sastisfies = satisfies;
|
|
1382
1410
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
1383
1411
|
var validateAndParse = (v) => {
|
|
1384
1412
|
if (typeof v !== "string") {
|
|
@@ -1459,17 +1487,19 @@ function getSideEffects2(dirName, options) {
|
|
|
1459
1487
|
return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
|
|
1460
1488
|
}
|
|
1461
1489
|
function resolveComponent(name, options) {
|
|
1490
|
+
if (options.exclude && name.match(options.exclude))
|
|
1491
|
+
return;
|
|
1462
1492
|
if (!name.match(/^El[A-Z]/))
|
|
1463
1493
|
return;
|
|
1464
1494
|
const partialName = kebabCase(name.slice(2));
|
|
1465
1495
|
const { version, ssr } = options;
|
|
1466
|
-
if (compare(version, "1.1.0-beta.1", ">=")) {
|
|
1496
|
+
if (compareVersions.compare(version, "1.1.0-beta.1", ">=")) {
|
|
1467
1497
|
return {
|
|
1468
1498
|
importName: name,
|
|
1469
1499
|
path: `element-plus/${ssr ? "lib" : "es"}`,
|
|
1470
1500
|
sideEffects: getSideEffects2(partialName, options)
|
|
1471
1501
|
};
|
|
1472
|
-
} else if (compare(version, "1.0.2-beta.28", ">=")) {
|
|
1502
|
+
} else if (compareVersions.compare(version, "1.0.2-beta.28", ">=")) {
|
|
1473
1503
|
return {
|
|
1474
1504
|
path: `element-plus/es/el-${partialName}`,
|
|
1475
1505
|
sideEffects: getSideEffectsLegacy(partialName, options)
|
|
@@ -1493,7 +1523,7 @@ function resolveDirective(name, options) {
|
|
|
1493
1523
|
if (!directive)
|
|
1494
1524
|
return;
|
|
1495
1525
|
const { version, ssr } = options;
|
|
1496
|
-
if (compare(version, "1.1.0-beta.1", ">=")) {
|
|
1526
|
+
if (compareVersions.compare(version, "1.1.0-beta.1", ">=")) {
|
|
1497
1527
|
return {
|
|
1498
1528
|
importName: directive.importName,
|
|
1499
1529
|
path: `element-plus/${ssr ? "lib" : "es"}`,
|
|
@@ -1510,7 +1540,8 @@ function ElementPlusResolver(options = {}) {
|
|
|
1510
1540
|
ssr: false,
|
|
1511
1541
|
version: await getPkgVersion("element-plus", "1.1.0-beta.21"),
|
|
1512
1542
|
importStyle: "css",
|
|
1513
|
-
directives: true
|
|
1543
|
+
directives: true,
|
|
1544
|
+
exclude: void 0
|
|
1514
1545
|
}, options);
|
|
1515
1546
|
return optionsResolved;
|
|
1516
1547
|
}
|
|
@@ -1610,9 +1641,8 @@ var components = [
|
|
|
1610
1641
|
"TabPanels",
|
|
1611
1642
|
"TabPanel"
|
|
1612
1643
|
];
|
|
1613
|
-
function HeadlessUiResolver({
|
|
1614
|
-
prefix: prefix2 = ""
|
|
1615
|
-
}) {
|
|
1644
|
+
function HeadlessUiResolver(options = {}) {
|
|
1645
|
+
const { prefix: prefix2 = "" } = options;
|
|
1616
1646
|
return {
|
|
1617
1647
|
type: "component",
|
|
1618
1648
|
resolve: (name) => {
|
|
@@ -1647,13 +1677,11 @@ function IduxResolver(options = {}) {
|
|
|
1647
1677
|
type: "component",
|
|
1648
1678
|
resolve: (name) => {
|
|
1649
1679
|
const { importStyle, exclude = [] } = options;
|
|
1650
|
-
if (exclude.includes(name))
|
|
1680
|
+
if (exclude.includes(name))
|
|
1651
1681
|
return;
|
|
1652
|
-
}
|
|
1653
1682
|
const packageName = getPackageName(name);
|
|
1654
|
-
if (!packageName)
|
|
1683
|
+
if (!packageName)
|
|
1655
1684
|
return;
|
|
1656
|
-
}
|
|
1657
1685
|
let dirname = specialComponents[name];
|
|
1658
1686
|
if (!dirname) {
|
|
1659
1687
|
const nameIndex = packageName === "pro" ? 2 : 1;
|
|
@@ -1661,25 +1689,38 @@ function IduxResolver(options = {}) {
|
|
|
1661
1689
|
}
|
|
1662
1690
|
const path = `@idux/${packageName}/${dirname}`;
|
|
1663
1691
|
let sideEffects;
|
|
1664
|
-
if (packageName !== "cdk" && importStyle)
|
|
1692
|
+
if (packageName !== "cdk" && importStyle)
|
|
1665
1693
|
sideEffects = `${path}/style/themes/${importStyle === "css" ? "default_css" : "default"}`;
|
|
1666
|
-
}
|
|
1667
1694
|
return { importName: name, path, sideEffects };
|
|
1668
1695
|
}
|
|
1669
1696
|
};
|
|
1670
1697
|
}
|
|
1671
1698
|
function getPackageName(name) {
|
|
1672
1699
|
let packageName;
|
|
1673
|
-
if (name.match(/^Cdk[A-Z]/))
|
|
1700
|
+
if (name.match(/^Cdk[A-Z]/))
|
|
1674
1701
|
packageName = "cdk";
|
|
1675
|
-
|
|
1702
|
+
else if (name.match(/^IxPro[A-Z]/))
|
|
1676
1703
|
packageName = "pro";
|
|
1677
|
-
|
|
1704
|
+
else if (name.match(/^Ix[A-Z]/))
|
|
1678
1705
|
packageName = "components";
|
|
1679
|
-
}
|
|
1680
1706
|
return packageName;
|
|
1681
1707
|
}
|
|
1682
1708
|
|
|
1709
|
+
// src/core/resolvers/inkline.ts
|
|
1710
|
+
function InklineResolver() {
|
|
1711
|
+
return {
|
|
1712
|
+
type: "component",
|
|
1713
|
+
resolve: (name) => {
|
|
1714
|
+
if (name.match(/^I[A-Z]/)) {
|
|
1715
|
+
return {
|
|
1716
|
+
importName: name,
|
|
1717
|
+
path: "@inkline/inkline"
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1683
1724
|
// src/core/resolvers/naive-ui.ts
|
|
1684
1725
|
function NaiveUiResolver() {
|
|
1685
1726
|
return {
|
|
@@ -1795,9 +1836,8 @@ function PrimeVueResolver(options = {}) {
|
|
|
1795
1836
|
sideEffects.push(`primevue/resources/themes/${options.importTheme}/theme.css`);
|
|
1796
1837
|
}
|
|
1797
1838
|
if (options.prefix) {
|
|
1798
|
-
if (!name.startsWith(options.prefix))
|
|
1839
|
+
if (!name.startsWith(options.prefix))
|
|
1799
1840
|
return;
|
|
1800
|
-
}
|
|
1801
1841
|
name = name.substring(options.prefix.length);
|
|
1802
1842
|
}
|
|
1803
1843
|
if (components2.includes(name)) {
|
|
@@ -2135,7 +2175,7 @@ var matchComponents3 = [
|
|
|
2135
2175
|
componentDir: "form"
|
|
2136
2176
|
},
|
|
2137
2177
|
{
|
|
2138
|
-
pattern: /^(Col|Row)$/,
|
|
2178
|
+
pattern: /^(Col|Row|GridItem)$/,
|
|
2139
2179
|
componentDir: "grid"
|
|
2140
2180
|
},
|
|
2141
2181
|
{
|
|
@@ -2196,6 +2236,8 @@ var matchComponents3 = [
|
|
|
2196
2236
|
}
|
|
2197
2237
|
];
|
|
2198
2238
|
function getComponentStyleDir(importName, importStyle) {
|
|
2239
|
+
if (["ConfigProvider", "Icon"].includes(importName))
|
|
2240
|
+
return void 0;
|
|
2199
2241
|
let componentDir = kebabCase(importName);
|
|
2200
2242
|
for (const item of matchComponents3) {
|
|
2201
2243
|
if (item.pattern.test(importName)) {
|
|
@@ -2235,9 +2277,13 @@ function ArcoResolver(options = {}) {
|
|
|
2235
2277
|
// src/core/resolvers/tdesign.ts
|
|
2236
2278
|
function getSideEffects8(importName, options) {
|
|
2237
2279
|
const { library = "vue", importStyle = "css" } = options;
|
|
2238
|
-
|
|
2280
|
+
let fileName = kebabCase(importName);
|
|
2239
2281
|
if (!importStyle)
|
|
2240
2282
|
return;
|
|
2283
|
+
if (fileName === "config-provider")
|
|
2284
|
+
return;
|
|
2285
|
+
if (fileName === "radio-group" || fileName === "radio-button")
|
|
2286
|
+
fileName = "radio";
|
|
2241
2287
|
if (importStyle === "less")
|
|
2242
2288
|
return `tdesign-${library}/esm/${fileName}/style`;
|
|
2243
2289
|
return `tdesign-${library}/es/${fileName}/style`;
|
|
@@ -2272,6 +2318,7 @@ export {
|
|
|
2272
2318
|
ElementUiResolver,
|
|
2273
2319
|
HeadlessUiResolver,
|
|
2274
2320
|
IduxResolver,
|
|
2321
|
+
InklineResolver,
|
|
2275
2322
|
LibraryResolver,
|
|
2276
2323
|
NaiveUiResolver,
|
|
2277
2324
|
PrimeVueResolver,
|
package/dist/rollup.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
|
+
require('./chunk-42OWKG5W.js');
|
|
5
5
|
require('./chunk-GGNOJ77I.js');
|
|
6
6
|
require('./chunk-HIJQIC5V.js');
|
|
7
7
|
|
|
8
8
|
// src/rollup.ts
|
|
9
|
-
var rollup_default =
|
|
9
|
+
var rollup_default = _chunk3KCE575Xjs.unplugin_default.rollup;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
module.exports = rollup_default;
|
package/dist/rollup.mjs
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ interface ComponentInfo extends ImportInfo {
|
|
|
13
13
|
}
|
|
14
14
|
declare type ComponentResolveResult = Awaitable<string | ComponentInfo | null | undefined | void>;
|
|
15
15
|
declare type ComponentResolverFunction = (name: string) => ComponentResolveResult;
|
|
16
|
-
|
|
16
|
+
interface ComponentResolverObject {
|
|
17
17
|
type: 'component' | 'directive';
|
|
18
18
|
resolve: ComponentResolverFunction;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
declare type ComponentResolver = ComponentResolverFunction | ComponentResolverObject;
|
|
21
21
|
interface UILibraryOptions {
|
|
22
22
|
name: string;
|
package/dist/vite.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
|
+
require('./chunk-42OWKG5W.js');
|
|
5
5
|
require('./chunk-GGNOJ77I.js');
|
|
6
6
|
require('./chunk-HIJQIC5V.js');
|
|
7
7
|
|
|
8
8
|
// src/vite.ts
|
|
9
|
-
var vite_default =
|
|
9
|
+
var vite_default = _chunk3KCE575Xjs.unplugin_default.vite;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
module.exports = vite_default;
|
package/dist/vite.mjs
CHANGED
package/dist/webpack.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk3KCE575Xjs = require('./chunk-3KCE575X.js');
|
|
4
|
+
require('./chunk-42OWKG5W.js');
|
|
5
5
|
require('./chunk-GGNOJ77I.js');
|
|
6
6
|
require('./chunk-HIJQIC5V.js');
|
|
7
7
|
|
|
8
8
|
// src/webpack.ts
|
|
9
|
-
var webpack_default =
|
|
9
|
+
var webpack_default = _chunk3KCE575Xjs.unplugin_default.webpack;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
module.exports = webpack_default;
|
package/dist/webpack.mjs
CHANGED
package/esbuild.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.16",
|
|
4
4
|
"description": "Components auto importing for Vue",
|
|
5
5
|
"homepage": "https://github.com/antfu/unplugin-vue-components",
|
|
6
6
|
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
|
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
"./webpack": {
|
|
45
45
|
"require": "./dist/webpack.js",
|
|
46
46
|
"import": "./dist/webpack.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./esbuild": {
|
|
49
|
+
"require": "./dist/esbuild.js",
|
|
50
|
+
"import": "./dist/esbuild.mjs"
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
"main": "dist/index.js",
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
"example:build": "npm -C examples/vite-vue3 run build",
|
|
56
60
|
"example:dev": "npm -C examples/vite-vue3 run dev",
|
|
57
61
|
"prepublishOnly": "npm run build",
|
|
62
|
+
"lint": "eslint --ext .js,.vue,.ts,.tsx .",
|
|
58
63
|
"release": "npx bumpp --commit --tag --push",
|
|
59
64
|
"test": "vitest",
|
|
60
65
|
"test:update": "vitest --u"
|
|
@@ -73,38 +78,38 @@
|
|
|
73
78
|
}
|
|
74
79
|
},
|
|
75
80
|
"dependencies": {
|
|
76
|
-
"@antfu/utils": "^0.
|
|
77
|
-
"@rollup/pluginutils": "^4.1.
|
|
81
|
+
"@antfu/utils": "^0.4.0",
|
|
82
|
+
"@rollup/pluginutils": "^4.1.2",
|
|
78
83
|
"chokidar": "^3.5.2",
|
|
79
|
-
"debug": "^4.3.
|
|
80
|
-
"fast-glob": "^3.2.
|
|
81
|
-
"local-pkg": "^0.4.
|
|
84
|
+
"debug": "^4.3.3",
|
|
85
|
+
"fast-glob": "^3.2.11",
|
|
86
|
+
"local-pkg": "^0.4.1",
|
|
82
87
|
"magic-string": "^0.25.7",
|
|
83
88
|
"minimatch": "^3.0.4",
|
|
84
|
-
"resolve": "^1.
|
|
85
|
-
"unplugin": "^0.
|
|
89
|
+
"resolve": "^1.21.0",
|
|
90
|
+
"unplugin": "^0.3.0"
|
|
86
91
|
},
|
|
87
92
|
"devDependencies": {
|
|
88
|
-
"@antfu/eslint-config": "^0.
|
|
89
|
-
"@babel/parser": "^7.16.
|
|
90
|
-
"@babel/traverse": "^7.16.
|
|
91
|
-
"@babel/types": "^7.16.
|
|
93
|
+
"@antfu/eslint-config": "^0.16.0",
|
|
94
|
+
"@babel/parser": "^7.16.8",
|
|
95
|
+
"@babel/traverse": "^7.16.8",
|
|
96
|
+
"@babel/types": "^7.16.8",
|
|
92
97
|
"@types/debug": "^4.1.7",
|
|
93
98
|
"@types/minimatch": "^3.0.5",
|
|
94
|
-
"@types/node": "^
|
|
99
|
+
"@types/node": "^17.0.8",
|
|
95
100
|
"@types/resolve": "^1.20.1",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
97
102
|
"bumpp": "^7.1.1",
|
|
98
|
-
"compare-versions": "^4.1.
|
|
103
|
+
"compare-versions": "^4.1.3",
|
|
99
104
|
"element-plus": "^1.1.0-beta.24",
|
|
100
|
-
"eslint": "^8.
|
|
101
|
-
"esno": "^0.
|
|
102
|
-
"rollup": "^2.
|
|
103
|
-
"tsup": "
|
|
104
|
-
"typescript": "^4.5.
|
|
105
|
-
"vite": "^2.
|
|
106
|
-
"vitest": "^0.
|
|
107
|
-
"vue": "3"
|
|
105
|
+
"eslint": "^8.7.0",
|
|
106
|
+
"esno": "^0.14.0",
|
|
107
|
+
"rollup": "^2.64.0",
|
|
108
|
+
"tsup": "5.7.4",
|
|
109
|
+
"typescript": "^4.5.4",
|
|
110
|
+
"vite": "^2.7.12",
|
|
111
|
+
"vitest": "^0.1.17",
|
|
112
|
+
"vue": "3.2.26"
|
|
108
113
|
},
|
|
109
114
|
"engines": {
|
|
110
115
|
"node": ">=14"
|