unplugin-vue-components 31.1.0 → 32.1.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.
@@ -1,6 +1,6 @@
1
1
  import { u as Options } from "./types-BbnOeCab.mjs";
2
2
 
3
3
  //#region src/esbuild.d.ts
4
- declare const esbuild: (options: Options) => esbuild.Plugin;
4
+ declare const esbuild: (options: Options) => EsbuildPlugin;
5
5
  //#endregion
6
6
  export { esbuild as default, esbuild as "module.exports" };
package/dist/esbuild.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/esbuild.ts
4
3
  const esbuild = unplugin_default.esbuild;
5
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { a as ComponentResolverObject, c as ImportInfoLegacy, d as PublicPluginAPI, f as ResolvedOptions, h as TypeImport, i as ComponentResolverFunction, l as Matcher, m as Transformer, n as ComponentResolveResult, o as ComponentsImportMap, p as SideEffectsInfo, r as ComponentResolver, s as ImportInfo, t as ComponentInfo, u as Options } from "./types-BbnOeCab.mjs";
2
- import * as unplugin from "unplugin";
3
2
  import { FilterPattern } from "unplugin-utils";
4
3
  //#region src/core/unplugin.d.ts
5
- declare const _default: unplugin.UnpluginInstance<Options, boolean>;
4
+ declare const _default: import("unplugin").UnpluginInstance<Options, boolean>;
6
5
  //#endregion
7
6
  //#region src/core/utils.d.ts
8
7
  declare function pascalCase(str: string): string;
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { c as kebabCase, f as pascalCase, t as camelCase } from "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
2
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
3
  export { camelCase, unplugin_default as default, kebabCase, pascalCase };
package/dist/nuxt.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
4
3
  //#region src/nuxt.ts
5
4
  const module = defineNuxtModule({ setup(options) {
@@ -7,7 +7,7 @@ import { createDebug } from "obug";
7
7
  import { resolveModule } from "local-pkg";
8
8
  import { resolvePathSync } from "mlly";
9
9
  //#region \0rolldown/runtime.js
10
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
11
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
12
12
  //#endregion
13
13
  //#region src/core/resolvers/antdv.ts
@@ -1,6 +1,6 @@
1
1
  import { u as Options } from "./types-BbnOeCab.mjs";
2
2
 
3
3
  //#region src/rolldown.d.ts
4
- declare const rolldown: (options: Options) => rolldown.Plugin<any>[] | rolldown.Plugin<any>;
4
+ declare const rolldown: (options: Options) => import("rolldown").Plugin<any>[] | import("rolldown").Plugin<any>;
5
5
  //#endregion
6
6
  export { rolldown as default, rolldown as "module.exports" };
package/dist/rolldown.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/rolldown.ts
4
3
  const rolldown = unplugin_default.rolldown;
5
4
  //#endregion
package/dist/rollup.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { u as Options } from "./types-BbnOeCab.mjs";
2
2
 
3
3
  //#region src/rollup.d.ts
4
- declare const rollup: (options: Options) => rollup.Plugin<any>[] | rollup.Plugin<any>;
4
+ declare const rollup: (options: Options) => import("rollup").Plugin<any>[] | import("rollup").Plugin<any>;
5
5
  //#endregion
6
6
  export { rollup as default, rollup as "module.exports" };
package/dist/rollup.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/rollup.ts
4
3
  const rollup = unplugin_default.rollup;
5
4
  //#endregion
package/dist/rspack.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/rspack.ts
4
3
  const rspack = unplugin_default.rspack;
5
4
  //#endregion
@@ -344,6 +344,7 @@ const debug = {
344
344
  env: createDebug("unplugin-vue-components:env")
345
345
  };
346
346
  var Context = class {
347
+ rawOptions;
347
348
  options;
348
349
  transformer;
349
350
  _componentPaths = /* @__PURE__ */ new Set();
@@ -364,7 +365,8 @@ var Context = class {
364
365
  this.generateDeclaration = throttle(500, this._generateDeclaration.bind(this), { noLeading: false });
365
366
  this._removeUnused = this.options.syncMode !== "append";
366
367
  if (this.options.dumpComponentsInfo) {
367
- this.dumpComponentsInfoPath = this.options.dumpComponentsInfo === true ? "./.components-info.json" : this.options.dumpComponentsInfo ?? false;
368
+ const dumpComponentsInfo = this.options.dumpComponentsInfo === true ? "./.components-info.json" : this.options.dumpComponentsInfo ?? false;
369
+ this.dumpComponentsInfoPath = dumpComponentsInfo;
368
370
  this.generateComponentsJson = throttle(500, this._generateComponentsJson.bind(this), { noLeading: false });
369
371
  }
370
372
  this.transformer = transformer(this);
package/dist/vite.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/vite.ts
4
3
  const vite = unplugin_default.vite;
5
4
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { u as Options } from "./types-BbnOeCab.mjs";
2
2
 
3
3
  //#region src/webpack.d.ts
4
- declare const webpack: (options: Options) => webpack.WebpackPluginInstance;
4
+ declare const webpack: (options: Options) => import("webpack").WebpackPluginInstance;
5
5
  //#endregion
6
6
  export { webpack as default, webpack as "module.exports" };
package/dist/webpack.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import "./utils-BfjsfvcK.mjs";
2
- import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
1
+ import { t as unplugin_default } from "./src-S1kwY0Q8.mjs";
3
2
  //#region src/webpack.ts
4
3
  const webpack = unplugin_default.webpack;
5
4
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
3
  "type": "module",
4
- "version": "31.1.0",
4
+ "version": "32.1.0",
5
5
  "description": "Components auto importing for Vue",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -51,38 +51,38 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "chokidar": "^5.0.0",
54
- "local-pkg": "^1.1.2",
54
+ "local-pkg": "^1.2.0",
55
55
  "magic-string": "^0.30.21",
56
56
  "mlly": "^1.8.2",
57
57
  "obug": "^2.1.1",
58
- "picomatch": "^4.0.3",
59
- "tinyglobby": "^0.2.15",
60
- "unplugin": "^2.3.11",
58
+ "picomatch": "^4.0.4",
59
+ "tinyglobby": "^0.2.16",
60
+ "unplugin": "^3.0.0",
61
61
  "unplugin-utils": "^0.3.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@antfu/eslint-config": "^7.7.3",
64
+ "@antfu/eslint-config": "^9.0.0",
65
65
  "@antfu/utils": "^9.3.0",
66
- "@nuxt/kit": "^4.4.2",
67
- "@nuxt/schema": "^4.4.2",
68
- "@types/node": "^25.5.0",
69
- "@types/picomatch": "^4.0.2",
66
+ "@nuxt/kit": "^4.4.6",
67
+ "@nuxt/schema": "^4.4.6",
68
+ "@types/node": "^25.9.1",
69
+ "@types/picomatch": "^4.0.3",
70
70
  "@typescript/native-preview": "7.0.0-dev.20260114.1",
71
- "bumpp": "^11.0.1",
71
+ "bumpp": "^11.1.0",
72
72
  "compare-versions": "^6.1.1",
73
- "element-plus": "^2.13.6",
74
- "eslint": "^10.1.0",
73
+ "element-plus": "^2.14.0",
74
+ "eslint": "^10.4.0",
75
75
  "eslint-plugin-format": "^2.0.1",
76
76
  "pathe": "^2.0.3",
77
- "rolldown": "^1.0.0-rc.10",
78
- "rollup": "^4.60.0",
79
- "tsdown": "^0.21.4",
80
- "typescript": "^5.9.3",
81
- "vite": "^8.0.1",
82
- "vitest": "^4.1.0",
77
+ "rolldown": "^1.0.1",
78
+ "rollup": "^4.60.4",
79
+ "tsdown": "^0.22.0",
80
+ "typescript": "^6.0.3",
81
+ "vite": "^8.0.13",
82
+ "vitest": "^4.1.6",
83
83
  "vue": "3.2.45",
84
- "vue-tsc": "^3.2.6",
85
- "webpack": "^5.105.4"
84
+ "vue-tsc": "^3.3.1",
85
+ "webpack": "^5.106.2"
86
86
  },
87
87
  "inlinedDependencies": {
88
88
  "@antfu/utils": "9.3.0",