unplugin-vue-components 28.8.0 → 29.0.0
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 +35 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/nuxt.cjs +2 -2
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +2 -2
- package/dist/resolvers.cjs +1 -1
- package/dist/resolvers.js +1 -1
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{src-B9aLSEVj.js → src-Be7SlxMY.js} +8 -16
- package/dist/{src-C_roJwTj.cjs → src-Cb65v4On.cjs} +8 -16
- package/dist/{utils-DuLwPrUJ.js → utils-9P5ODluf.js} +5 -1
- package/dist/{utils-BIvt10am.cjs → utils-DGIwBjsw.cjs} +10 -0
- package/dist/vite.cjs +2 -2
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +2 -2
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -132,6 +132,36 @@ export default {
|
|
|
132
132
|
|
|
133
133
|
<br></details>
|
|
134
134
|
|
|
135
|
+
<details>
|
|
136
|
+
<summary>Quasar</summary><br>
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
// vite.config.js [Vite]
|
|
140
|
+
import Components from 'unplugin-vue-components/vite'
|
|
141
|
+
import { defineConfig } from 'vite'
|
|
142
|
+
|
|
143
|
+
export default defineConfig({
|
|
144
|
+
plugins: [
|
|
145
|
+
Components({ /* options */ })
|
|
146
|
+
]
|
|
147
|
+
})
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
// quasar.config.js
|
|
152
|
+
export default defineConfig(() => {
|
|
153
|
+
return {
|
|
154
|
+
build: {
|
|
155
|
+
vitePlugins: [
|
|
156
|
+
['unplugin-vue-components/vite', { /* options */ }],
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
<br></details>
|
|
164
|
+
|
|
135
165
|
<details>
|
|
136
166
|
<summary>esbuild</summary><br>
|
|
137
167
|
|
|
@@ -229,6 +259,7 @@ Supported Resolvers:
|
|
|
229
259
|
- [Prime Vue](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts)
|
|
230
260
|
- [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
|
|
231
261
|
- [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
|
|
262
|
+
- [`@tdesign-vue-next/auto-import-resolver`](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md) - TDesign's own auto-import resolver
|
|
232
263
|
- [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
|
|
233
264
|
- [`@vant/auto-import-resolver`](https://github.com/youzan/vant/blob/main/packages/vant-auto-import-resolver/README.md) - Vant's own auto-import resolver
|
|
234
265
|
- [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
|
|
@@ -414,7 +445,10 @@ Components({
|
|
|
414
445
|
version: 2.7,
|
|
415
446
|
|
|
416
447
|
// Only provide types of components in library (registered globally)
|
|
417
|
-
|
|
448
|
+
// see https://github.com/unplugin/unplugin-vue-components/blob/main/src/core/type-imports/index.ts
|
|
449
|
+
types: [
|
|
450
|
+
/* ... */
|
|
451
|
+
],
|
|
418
452
|
})
|
|
419
453
|
```
|
|
420
454
|
|
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_utils = require('./utils-
|
|
3
|
-
const require_src = require('./src-
|
|
2
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
3
|
+
const require_src = require('./src-Cb65v4On.cjs');
|
|
4
4
|
require('./types-CBTc19th.cjs');
|
|
5
5
|
|
|
6
6
|
exports.camelCase = require_utils.camelCase;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-BED632qH.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/core/unplugin.d.ts
|
|
6
|
-
declare const _default:
|
|
6
|
+
declare const _default: unplugin0.UnpluginInstance<Options, boolean>;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/core/utils.d.ts
|
|
9
9
|
declare function pascalCase(str: string): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-CFwIfA2K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/core/unplugin.d.ts
|
|
6
|
-
declare const _default:
|
|
6
|
+
declare const _default: unplugin0.UnpluginInstance<Options, boolean>;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/core/utils.d.ts
|
|
9
9
|
declare function pascalCase(str: string): string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { camelCase, kebabCase, pascalCase } from "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
1
|
+
import { camelCase, kebabCase, pascalCase } from "./utils-9P5ODluf.js";
|
|
2
|
+
import { unplugin_default } from "./src-Be7SlxMY.js";
|
|
3
3
|
import "./types-Cv8NMtbo.js";
|
|
4
4
|
|
|
5
5
|
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
const require_src = require('./src-
|
|
1
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
2
|
+
const require_src = require('./src-Cb65v4On.cjs');
|
|
3
3
|
require('./types-CBTc19th.cjs');
|
|
4
4
|
const __nuxt_kit = require_utils.__toESM(require("@nuxt/kit"));
|
|
5
5
|
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
1
|
+
import "./utils-9P5ODluf.js";
|
|
2
|
+
import { unplugin_default } from "./src-Be7SlxMY.js";
|
|
3
3
|
import "./types-Cv8NMtbo.js";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
5
|
|
package/dist/resolvers.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
2
2
|
const node_fs = require_utils.__toESM(require("node:fs"));
|
|
3
3
|
const node_process = require_utils.__toESM(require("node:process"));
|
|
4
4
|
const node_path = require_utils.__toESM(require("node:path"));
|
package/dist/resolvers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { camelCase, getPkgVersion, isExclude, isSSR, kebabCase, pascalCase } from "./utils-
|
|
1
|
+
import { camelCase, getPkgVersion, isExclude, isSSR, kebabCase, pascalCase } from "./utils-9P5ODluf.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { promises, readFileSync } from "node:fs";
|
|
4
4
|
import process from "node:process";
|
package/dist/rollup.cjs
CHANGED
package/dist/rollup.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as rollup0 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as rollup0 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
package/dist/rspack.cjs
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DIRECTIVE_IMPORT_PREFIX, DISABLE_COMMENT, getNameFromFilePath, getTransformedPath, isExclude, matchGlobs, normalizeComponentInfo, notNullish, parseId, pascalCase, resolveAlias, shouldTransform, slash, stringifyComponentImport, throttle, toArray } from "./utils-
|
|
1
|
+
import { DIRECTIVE_IMPORT_PREFIX, DISABLE_COMMENT, escapeSpecialChars, getNameFromFilePath, getTransformedPath, isExclude, matchGlobs, normalizeComponentInfo, notNullish, parseId, pascalCase, resolveAlias, shouldTransform, slash, stringifyComponentImport, throttle, toArray } from "./utils-9P5ODluf.js";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import chokidar from "chokidar";
|
|
@@ -54,13 +54,6 @@ function parseDeclaration(code) {
|
|
|
54
54
|
if (directiveDeclaration) imports.directive = extractImports(directiveDeclaration);
|
|
55
55
|
return imports;
|
|
56
56
|
}
|
|
57
|
-
function addComponentPrefix(component, prefix) {
|
|
58
|
-
if (!component.as || !prefix) return component;
|
|
59
|
-
return {
|
|
60
|
-
...component,
|
|
61
|
-
as: `${prefix}${component.as}`
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
57
|
/**
|
|
65
58
|
* Converts `ComponentInfo` to an array
|
|
66
59
|
*
|
|
@@ -82,12 +75,10 @@ function stringifyComponentsInfo(filepath, components, importPathTransform) {
|
|
|
82
75
|
return Object.fromEntries(components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(notNullish));
|
|
83
76
|
}
|
|
84
77
|
function getDeclarationImports(ctx, filepath) {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
...
|
|
88
|
-
|
|
89
|
-
...resolveTypeImports(ctx.options.types)
|
|
90
|
-
], ctx.options.importPathTransform);
|
|
78
|
+
const component = stringifyComponentsInfo(filepath, [...Object.values({
|
|
79
|
+
...ctx.componentNameMap,
|
|
80
|
+
...ctx.componentCustomMap
|
|
81
|
+
}), ...resolveTypeImports(ctx.options.types)], ctx.options.importPathTransform);
|
|
91
82
|
const directive = stringifyComponentsInfo(filepath, Object.values(ctx.directiveCustomMap), ctx.options.importPathTransform);
|
|
92
83
|
if (Object.keys(component).length + Object.keys(directive).length === 0) return;
|
|
93
84
|
return {
|
|
@@ -223,7 +214,7 @@ function resolveOptions(options, root) {
|
|
|
223
214
|
prefix = "!";
|
|
224
215
|
i = i.slice(1);
|
|
225
216
|
}
|
|
226
|
-
return resolved.deep ? prefix + slash(join(i, `**/*.${extsGlob}`)) : prefix + slash(join(i, `*.${extsGlob}`));
|
|
217
|
+
return resolved.deep ? prefix + escapeSpecialChars(slash(join(i, `**/*.${extsGlob}`))) : prefix + escapeSpecialChars(slash(join(i, `*.${extsGlob}`)));
|
|
227
218
|
});
|
|
228
219
|
if (!resolved.extensions.length) throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
229
220
|
}
|
|
@@ -575,7 +566,8 @@ var Context = class {
|
|
|
575
566
|
updateComponentNameMap() {
|
|
576
567
|
this._componentNameMap = {};
|
|
577
568
|
Array.from(this._componentPaths).forEach((path) => {
|
|
578
|
-
const
|
|
569
|
+
const fileName = getNameFromFilePath(path, this.options);
|
|
570
|
+
const name = this.options.prefix ? `${pascalCase(this.options.prefix)}${pascalCase(fileName)}` : pascalCase(fileName);
|
|
579
571
|
if (isExclude(name, this.options.excludeNames)) {
|
|
580
572
|
debug.components("exclude", name);
|
|
581
573
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
2
2
|
const node_fs = require_utils.__toESM(require("node:fs"));
|
|
3
3
|
const node_process = require_utils.__toESM(require("node:process"));
|
|
4
4
|
const chokidar = require_utils.__toESM(require("chokidar"));
|
|
@@ -54,13 +54,6 @@ function parseDeclaration(code) {
|
|
|
54
54
|
if (directiveDeclaration) imports.directive = extractImports(directiveDeclaration);
|
|
55
55
|
return imports;
|
|
56
56
|
}
|
|
57
|
-
function addComponentPrefix(component, prefix) {
|
|
58
|
-
if (!component.as || !prefix) return component;
|
|
59
|
-
return {
|
|
60
|
-
...component,
|
|
61
|
-
as: `${prefix}${component.as}`
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
57
|
/**
|
|
65
58
|
* Converts `ComponentInfo` to an array
|
|
66
59
|
*
|
|
@@ -82,12 +75,10 @@ function stringifyComponentsInfo(filepath, components, importPathTransform) {
|
|
|
82
75
|
return Object.fromEntries(components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(require_utils.notNullish));
|
|
83
76
|
}
|
|
84
77
|
function getDeclarationImports(ctx, filepath) {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
...
|
|
88
|
-
|
|
89
|
-
...resolveTypeImports(ctx.options.types)
|
|
90
|
-
], ctx.options.importPathTransform);
|
|
78
|
+
const component = stringifyComponentsInfo(filepath, [...Object.values({
|
|
79
|
+
...ctx.componentNameMap,
|
|
80
|
+
...ctx.componentCustomMap
|
|
81
|
+
}), ...resolveTypeImports(ctx.options.types)], ctx.options.importPathTransform);
|
|
91
82
|
const directive = stringifyComponentsInfo(filepath, Object.values(ctx.directiveCustomMap), ctx.options.importPathTransform);
|
|
92
83
|
if (Object.keys(component).length + Object.keys(directive).length === 0) return;
|
|
93
84
|
return {
|
|
@@ -223,7 +214,7 @@ function resolveOptions(options, root) {
|
|
|
223
214
|
prefix = "!";
|
|
224
215
|
i = i.slice(1);
|
|
225
216
|
}
|
|
226
|
-
return resolved.deep ? prefix + require_utils.slash((0, node_path.join)(i, `**/*.${extsGlob}`)) : prefix + require_utils.slash((0, node_path.join)(i, `*.${extsGlob}`));
|
|
217
|
+
return resolved.deep ? prefix + require_utils.escapeSpecialChars(require_utils.slash((0, node_path.join)(i, `**/*.${extsGlob}`))) : prefix + require_utils.escapeSpecialChars(require_utils.slash((0, node_path.join)(i, `*.${extsGlob}`)));
|
|
227
218
|
});
|
|
228
219
|
if (!resolved.extensions.length) throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
|
|
229
220
|
}
|
|
@@ -577,7 +568,8 @@ var Context = class {
|
|
|
577
568
|
updateComponentNameMap() {
|
|
578
569
|
this._componentNameMap = {};
|
|
579
570
|
Array.from(this._componentPaths).forEach((path) => {
|
|
580
|
-
const
|
|
571
|
+
const fileName = require_utils.getNameFromFilePath(path, this.options);
|
|
572
|
+
const name = this.options.prefix ? `${require_utils.pascalCase(this.options.prefix)}${require_utils.pascalCase(fileName)}` : require_utils.pascalCase(fileName);
|
|
581
573
|
if (require_utils.isExclude(name, this.options.excludeNames)) {
|
|
582
574
|
debug$1.components("exclude", name);
|
|
583
575
|
return;
|
|
@@ -1524,6 +1524,10 @@ function isExclude(name, exclude) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
return false;
|
|
1526
1526
|
}
|
|
1527
|
+
const ESCAPE_PARENTHESES_REGEX = /[()]/g;
|
|
1528
|
+
function escapeSpecialChars(str) {
|
|
1529
|
+
return str.replace(ESCAPE_PARENTHESES_REGEX, "\\$&");
|
|
1530
|
+
}
|
|
1527
1531
|
|
|
1528
1532
|
//#endregion
|
|
1529
|
-
export { DIRECTIVE_IMPORT_PREFIX, DISABLE_COMMENT, camelCase, getNameFromFilePath, getPkgVersion, getTransformedPath, isExclude, isSSR, kebabCase, matchGlobs, normalizeComponentInfo, notNullish, parseId, pascalCase, resolveAlias, shouldTransform, slash, stringifyComponentImport, throttle, toArray };
|
|
1533
|
+
export { DIRECTIVE_IMPORT_PREFIX, DISABLE_COMMENT, camelCase, escapeSpecialChars, getNameFromFilePath, getPkgVersion, getTransformedPath, isExclude, isSSR, kebabCase, matchGlobs, normalizeComponentInfo, notNullish, parseId, pascalCase, resolveAlias, shouldTransform, slash, stringifyComponentImport, throttle, toArray };
|
|
@@ -1550,6 +1550,10 @@ function isExclude(name, exclude) {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
return false;
|
|
1552
1552
|
}
|
|
1553
|
+
const ESCAPE_PARENTHESES_REGEX = /[()]/g;
|
|
1554
|
+
function escapeSpecialChars(str) {
|
|
1555
|
+
return str.replace(ESCAPE_PARENTHESES_REGEX, "\\$&");
|
|
1556
|
+
}
|
|
1553
1557
|
|
|
1554
1558
|
//#endregion
|
|
1555
1559
|
Object.defineProperty(exports, 'DIRECTIVE_IMPORT_PREFIX', {
|
|
@@ -1582,6 +1586,12 @@ Object.defineProperty(exports, 'camelCase', {
|
|
|
1582
1586
|
return camelCase;
|
|
1583
1587
|
}
|
|
1584
1588
|
});
|
|
1589
|
+
Object.defineProperty(exports, 'escapeSpecialChars', {
|
|
1590
|
+
enumerable: true,
|
|
1591
|
+
get: function () {
|
|
1592
|
+
return escapeSpecialChars;
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1585
1595
|
Object.defineProperty(exports, 'getNameFromFilePath', {
|
|
1586
1596
|
enumerable: true,
|
|
1587
1597
|
get: function () {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => webpack0.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
5
|
+
declare const _default: (options: Options) => webpack0.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "29.0.0",
|
|
5
|
+
"packageManager": "pnpm@10.14.0",
|
|
6
6
|
"description": "Components auto importing for Vue",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -104,30 +104,30 @@
|
|
|
104
104
|
"unplugin-utils": "^0.2.4"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@antfu/eslint-config": "^
|
|
107
|
+
"@antfu/eslint-config": "^5.1.0",
|
|
108
108
|
"@antfu/utils": "^9.2.0",
|
|
109
|
-
"@babel/parser": "^7.
|
|
110
|
-
"@babel/types": "^7.
|
|
111
|
-
"@nuxt/kit": "^
|
|
112
|
-
"@nuxt/schema": "^
|
|
109
|
+
"@babel/parser": "^7.28.0",
|
|
110
|
+
"@babel/types": "^7.28.2",
|
|
111
|
+
"@nuxt/kit": "^4.0.3",
|
|
112
|
+
"@nuxt/schema": "^4.0.3",
|
|
113
113
|
"@types/debug": "^4.1.12",
|
|
114
|
-
"@types/minimatch": "^
|
|
115
|
-
"@types/node": "^24.0
|
|
116
|
-
"bumpp": "^10.2.
|
|
114
|
+
"@types/minimatch": "^6.0.0",
|
|
115
|
+
"@types/node": "^24.2.0",
|
|
116
|
+
"bumpp": "^10.2.2",
|
|
117
117
|
"compare-versions": "^6.1.1",
|
|
118
|
-
"element-plus": "^2.10.
|
|
119
|
-
"eslint": "^9.
|
|
118
|
+
"element-plus": "^2.10.5",
|
|
119
|
+
"eslint": "^9.32.0",
|
|
120
120
|
"eslint-plugin-format": "^1.0.1",
|
|
121
121
|
"esno": "^4.8.0",
|
|
122
122
|
"estree-walker": "^3.0.3",
|
|
123
123
|
"minimatch": "^10.0.3",
|
|
124
124
|
"pathe": "^2.0.3",
|
|
125
|
-
"rollup": "^4.
|
|
126
|
-
"tsdown": "^0.
|
|
125
|
+
"rollup": "^4.46.2",
|
|
126
|
+
"tsdown": "^0.13.3",
|
|
127
127
|
"typescript": "^5.8.3",
|
|
128
|
-
"vite": "^7.0.
|
|
128
|
+
"vite": "^7.0.6",
|
|
129
129
|
"vitest": "^3.2.4",
|
|
130
130
|
"vue": "3.2.45",
|
|
131
|
-
"vue-tsc": "^
|
|
131
|
+
"vue-tsc": "^3.0.5"
|
|
132
132
|
}
|
|
133
133
|
}
|