unplugin-vue-components 29.2.0 → 31.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 +4 -36
- package/dist/esbuild.d.mts +7 -0
- package/dist/esbuild.mjs +9 -0
- package/dist/{index.d.cts → index.d.mts} +4 -2
- package/dist/index.mjs +4 -0
- package/dist/nuxt.d.mts +7 -0
- package/dist/{nuxt.js → nuxt.mjs} +4 -4
- package/dist/{resolvers.d.ts → resolvers.d.mts} +189 -218
- package/dist/{resolvers.js → resolvers.mjs} +28 -83
- package/dist/rolldown.d.mts +7 -0
- package/dist/rolldown.mjs +9 -0
- package/dist/rollup.d.mts +7 -0
- package/dist/rollup.mjs +9 -0
- package/dist/rspack.d.mts +6 -0
- package/dist/rspack.mjs +9 -0
- package/dist/{src-bfjkatac.js → src-pYuu2TZ_.mjs} +53 -141
- package/dist/types-CWfK8m_y.d.mts +217 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.mjs +1 -0
- package/dist/utils-DuuqqWXg.mjs +234 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.mjs +9 -0
- package/dist/webpack.d.mts +7 -0
- package/dist/webpack.mjs +9 -0
- package/package.json +40 -78
- package/dist/esbuild.cjs +0 -9
- package/dist/esbuild.d.cts +0 -6
- package/dist/esbuild.d.ts +0 -7
- package/dist/esbuild.js +0 -9
- package/dist/index.cjs +0 -9
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -5
- package/dist/nuxt.cjs +0 -14
- package/dist/nuxt.d.cts +0 -6
- package/dist/nuxt.d.ts +0 -7
- package/dist/resolvers.cjs +0 -2074
- package/dist/resolvers.d.cts +0 -574
- package/dist/rolldown.cjs +0 -9
- package/dist/rolldown.d.cts +0 -6
- package/dist/rolldown.d.ts +0 -7
- package/dist/rolldown.js +0 -9
- package/dist/rollup.cjs +0 -9
- package/dist/rollup.d.cts +0 -6
- package/dist/rollup.d.ts +0 -7
- package/dist/rollup.js +0 -9
- package/dist/rspack.cjs +0 -9
- package/dist/rspack.d.cts +0 -5
- package/dist/rspack.d.ts +0 -6
- package/dist/rspack.js +0 -9
- package/dist/src-BTwFq3T3.cjs +0 -188
- package/dist/src-D2-JfLYq.js +0 -187
- package/dist/src-DAvVDVLg.cjs +0 -769
- package/dist/types-CBTc19th.cjs +0 -0
- package/dist/types-DSJ5r-ta.d.cts +0 -225
- package/dist/types-rC3290ja.d.ts +0 -225
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -3
- package/dist/utils-8UQ22cuO.cjs +0 -1689
- package/dist/utils-BoXu-4gQ.js +0 -1523
- package/dist/vite.cjs +0 -9
- package/dist/vite.d.cts +0 -8
- package/dist/vite.d.ts +0 -9
- package/dist/vite.js +0 -9
- package/dist/webpack.cjs +0 -9
- package/dist/webpack.d.cts +0 -6
- package/dist/webpack.d.ts +0 -7
- package/dist/webpack.js +0 -9
- /package/dist/{types-DQoXDiso.js → types--fVOUYBq.mjs} +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import process from "node:process";
|
|
2
|
+
import { parse } from "node:path";
|
|
3
|
+
import { getPackageInfo, isPackageExists } from "local-pkg";
|
|
4
|
+
import picomatch from "picomatch";
|
|
5
|
+
|
|
6
|
+
//#region node_modules/.pnpm/@antfu+utils@9.3.0/node_modules/@antfu/utils/dist/index.mjs
|
|
7
|
+
function toArray(array) {
|
|
8
|
+
array = array ?? [];
|
|
9
|
+
return Array.isArray(array) ? array : [array];
|
|
10
|
+
}
|
|
11
|
+
function notNullish(v) {
|
|
12
|
+
return v != null;
|
|
13
|
+
}
|
|
14
|
+
function slash(str) {
|
|
15
|
+
return str.replace(/\\/g, "/");
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Throttle execution of a function. Especially useful for rate limiting
|
|
19
|
+
* execution of handlers on events like resize and scroll.
|
|
20
|
+
*
|
|
21
|
+
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
22
|
+
* are most useful.
|
|
23
|
+
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
24
|
+
* as-is, to `callback` when the throttled-function is executed.
|
|
25
|
+
* @param {object} [options] - An object to configure options.
|
|
26
|
+
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
27
|
+
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
28
|
+
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
29
|
+
* `delay` milliseconds, the internal counter is reset).
|
|
30
|
+
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
31
|
+
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
32
|
+
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
33
|
+
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
34
|
+
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
35
|
+
*
|
|
36
|
+
* @returns {Function} A new, throttled, function.
|
|
37
|
+
*/
|
|
38
|
+
function throttle$1(delay, callback, options) {
|
|
39
|
+
var _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;
|
|
40
|
+
var timeoutID;
|
|
41
|
+
var cancelled = false;
|
|
42
|
+
var lastExec = 0;
|
|
43
|
+
function clearExistingTimeout() {
|
|
44
|
+
if (timeoutID) clearTimeout(timeoutID);
|
|
45
|
+
}
|
|
46
|
+
function cancel(options$1) {
|
|
47
|
+
var _ref2$upcomingOnly = (options$1 || {}).upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
48
|
+
clearExistingTimeout();
|
|
49
|
+
cancelled = !upcomingOnly;
|
|
50
|
+
}
|
|
51
|
+
function wrapper() {
|
|
52
|
+
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) arguments_[_key] = arguments[_key];
|
|
53
|
+
var self = this;
|
|
54
|
+
var elapsed = Date.now() - lastExec;
|
|
55
|
+
if (cancelled) return;
|
|
56
|
+
function exec() {
|
|
57
|
+
lastExec = Date.now();
|
|
58
|
+
callback.apply(self, arguments_);
|
|
59
|
+
}
|
|
60
|
+
function clear() {
|
|
61
|
+
timeoutID = void 0;
|
|
62
|
+
}
|
|
63
|
+
if (!noLeading && debounceMode && !timeoutID) exec();
|
|
64
|
+
clearExistingTimeout();
|
|
65
|
+
if (debounceMode === void 0 && elapsed > delay) if (noLeading) {
|
|
66
|
+
lastExec = Date.now();
|
|
67
|
+
if (!noTrailing) timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
68
|
+
} else exec();
|
|
69
|
+
else if (noTrailing !== true) timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === void 0 ? delay - elapsed : delay);
|
|
70
|
+
}
|
|
71
|
+
wrapper.cancel = cancel;
|
|
72
|
+
return wrapper;
|
|
73
|
+
}
|
|
74
|
+
function throttle(...args) {
|
|
75
|
+
return throttle$1(...args);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/core/constants.ts
|
|
80
|
+
const DISABLE_COMMENT = "/* unplugin-vue-components disabled */";
|
|
81
|
+
const DIRECTIVE_IMPORT_PREFIX = "v";
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/core/utils.ts
|
|
85
|
+
const isSSR = Boolean(process.env.SSR || process.env.SSG || process.env.VITE_SSR || process.env.VITE_SSG);
|
|
86
|
+
function pascalCase(str) {
|
|
87
|
+
return capitalize(camelCase(str));
|
|
88
|
+
}
|
|
89
|
+
function camelCase(str) {
|
|
90
|
+
return str.replace(/-(\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
91
|
+
}
|
|
92
|
+
function kebabCase(key) {
|
|
93
|
+
return key.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
|
|
94
|
+
}
|
|
95
|
+
function capitalize(str) {
|
|
96
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
97
|
+
}
|
|
98
|
+
function parseId(id) {
|
|
99
|
+
const index = id.indexOf("?");
|
|
100
|
+
if (index < 0) return {
|
|
101
|
+
path: id,
|
|
102
|
+
query: {}
|
|
103
|
+
};
|
|
104
|
+
else {
|
|
105
|
+
const query = Object.fromEntries(new URLSearchParams(id.slice(index)));
|
|
106
|
+
return {
|
|
107
|
+
path: id.slice(0, index),
|
|
108
|
+
query
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function isEmpty(value) {
|
|
113
|
+
if (!value || value === null || value === void 0 || Array.isArray(value) && Object.keys(value).length <= 0) return true;
|
|
114
|
+
else return false;
|
|
115
|
+
}
|
|
116
|
+
function matchGlobs(filepath, globs) {
|
|
117
|
+
for (const glob of globs) {
|
|
118
|
+
const isNegated = glob[0] === "!";
|
|
119
|
+
if (picomatch(isNegated ? glob.slice(1) : glob)(slash(filepath))) return !isNegated;
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
function getTransformedPath(path, importPathTransform) {
|
|
124
|
+
if (importPathTransform) {
|
|
125
|
+
const result = importPathTransform(path);
|
|
126
|
+
if (result != null) path = result;
|
|
127
|
+
}
|
|
128
|
+
return path;
|
|
129
|
+
}
|
|
130
|
+
function stringifyImport(info) {
|
|
131
|
+
if (typeof info === "string") return `import '${info}'`;
|
|
132
|
+
if (!info.as) return `import '${info.from}'`;
|
|
133
|
+
else if (info.name) return `import { ${info.name} as ${info.as} } from '${info.from}'`;
|
|
134
|
+
else return `import ${info.as} from '${info.from}'`;
|
|
135
|
+
}
|
|
136
|
+
function normalizeComponentInfo(info) {
|
|
137
|
+
if ("path" in info) return {
|
|
138
|
+
from: info.path,
|
|
139
|
+
as: info.name,
|
|
140
|
+
name: info.importName,
|
|
141
|
+
sideEffects: info.sideEffects
|
|
142
|
+
};
|
|
143
|
+
return info;
|
|
144
|
+
}
|
|
145
|
+
function stringifyComponentImport({ as: name, from: path, name: importName, sideEffects }, ctx) {
|
|
146
|
+
path = getTransformedPath(path, ctx.options.importPathTransform);
|
|
147
|
+
const imports = [stringifyImport({
|
|
148
|
+
as: name,
|
|
149
|
+
from: path,
|
|
150
|
+
name: importName
|
|
151
|
+
})];
|
|
152
|
+
if (sideEffects) toArray(sideEffects).forEach((i) => imports.push(stringifyImport(i)));
|
|
153
|
+
return imports.join(";");
|
|
154
|
+
}
|
|
155
|
+
function getNameFromFilePath(filePath, options) {
|
|
156
|
+
const { resolvedDirs, directoryAsNamespace, globalNamespaces, collapseSamePrefixes, root } = options;
|
|
157
|
+
const parsedFilePath = parse(slash(filePath));
|
|
158
|
+
let strippedPath = "";
|
|
159
|
+
for (const dir of resolvedDirs) if (parsedFilePath.dir.startsWith(dir)) {
|
|
160
|
+
strippedPath = parsedFilePath.dir.slice(dir.length);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
let folders = strippedPath.slice(1).split("/").filter(Boolean);
|
|
164
|
+
let filename = parsedFilePath.name;
|
|
165
|
+
if (filename === "index" && !directoryAsNamespace) {
|
|
166
|
+
if (isEmpty(folders)) folders = parsedFilePath.dir.slice(root.length + 1).split("/").filter(Boolean);
|
|
167
|
+
filename = `${folders.slice(-1)[0]}`;
|
|
168
|
+
return filename;
|
|
169
|
+
}
|
|
170
|
+
if (directoryAsNamespace) {
|
|
171
|
+
if (globalNamespaces.some((name) => folders.includes(name))) folders = folders.filter((f) => !globalNamespaces.includes(f));
|
|
172
|
+
folders = folders.map((f) => f.replace(/[^a-z0-9\-]/gi, ""));
|
|
173
|
+
if (filename.toLowerCase() === "index") filename = "";
|
|
174
|
+
if (!isEmpty(folders)) {
|
|
175
|
+
let namespaced = [...folders, filename];
|
|
176
|
+
if (collapseSamePrefixes) {
|
|
177
|
+
const collapsed = [];
|
|
178
|
+
for (const fileOrFolderName of namespaced) {
|
|
179
|
+
let cumulativePrefix = "";
|
|
180
|
+
let didCollapse = false;
|
|
181
|
+
const pascalCasedName = pascalCase(fileOrFolderName);
|
|
182
|
+
for (const parentFolder of [...collapsed].reverse()) {
|
|
183
|
+
cumulativePrefix = `${parentFolder}${cumulativePrefix}`;
|
|
184
|
+
if (pascalCasedName.startsWith(cumulativePrefix)) {
|
|
185
|
+
const collapseSamePrefix = pascalCasedName.slice(cumulativePrefix.length);
|
|
186
|
+
collapsed.push(collapseSamePrefix);
|
|
187
|
+
didCollapse = true;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (!didCollapse) collapsed.push(pascalCasedName);
|
|
192
|
+
}
|
|
193
|
+
namespaced = collapsed;
|
|
194
|
+
}
|
|
195
|
+
filename = namespaced.filter(Boolean).join("-");
|
|
196
|
+
}
|
|
197
|
+
return filename;
|
|
198
|
+
}
|
|
199
|
+
return filename;
|
|
200
|
+
}
|
|
201
|
+
function resolveAlias(filepath, alias) {
|
|
202
|
+
const result = filepath;
|
|
203
|
+
if (Array.isArray(alias)) for (const { find, replacement } of alias) result.replace(find, replacement);
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
async function getPkgVersion(pkgName, defaultVersion) {
|
|
207
|
+
try {
|
|
208
|
+
if (isPackageExists(pkgName)) return (await getPackageInfo(pkgName))?.version ?? defaultVersion;
|
|
209
|
+
else return defaultVersion;
|
|
210
|
+
} catch (err) {
|
|
211
|
+
console.error(err);
|
|
212
|
+
return defaultVersion;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function shouldTransform(code) {
|
|
216
|
+
if (code.includes(DISABLE_COMMENT)) return false;
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
function isExclude(name, exclude) {
|
|
220
|
+
if (!exclude) return false;
|
|
221
|
+
if (typeof exclude === "string") return name === exclude;
|
|
222
|
+
if (exclude instanceof RegExp) return !!name.match(exclude);
|
|
223
|
+
if (Array.isArray(exclude)) {
|
|
224
|
+
for (const item of exclude) if (name === item || name.match(item)) return true;
|
|
225
|
+
}
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
const ESCAPE_PARENTHESES_REGEX = /[()]/g;
|
|
229
|
+
function escapeSpecialChars(str) {
|
|
230
|
+
return str.replace(ESCAPE_PARENTHESES_REGEX, "\\$&");
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
//#endregion
|
|
234
|
+
export { DISABLE_COMMENT as _, getTransformedPath as a, throttle as b, kebabCase as c, parseId as d, pascalCase as f, DIRECTIVE_IMPORT_PREFIX as g, stringifyComponentImport as h, getPkgVersion as i, matchGlobs as l, shouldTransform as m, escapeSpecialChars as n, isExclude as o, resolveAlias as p, getNameFromFilePath as r, isSSR as s, camelCase as t, normalizeComponentInfo as u, notNullish as v, toArray as x, slash as y };
|
package/dist/vite.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { d as PublicPluginAPI, u as Options } from "./types-CWfK8m_y.mjs";
|
|
2
|
+
import { Plugin } from "vite";
|
|
3
|
+
|
|
4
|
+
//#region src/vite.d.ts
|
|
5
|
+
declare const vite: (options?: Options | undefined) => Plugin<any> & {
|
|
6
|
+
api: PublicPluginAPI;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { vite as default, vite as "module.exports" };
|
package/dist/vite.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./utils-DuuqqWXg.mjs";
|
|
2
|
+
import { t as unplugin_default } from "./src-pYuu2TZ_.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/vite.ts
|
|
5
|
+
const vite = unplugin_default.vite;
|
|
6
|
+
var vite_default = vite;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { vite_default as default, vite as "module.exports" };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { u as Options } from "./types-CWfK8m_y.mjs";
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/webpack.d.ts
|
|
5
|
+
declare const webpack: (options: Options) => webpack0.WebpackPluginInstance;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { webpack as default, webpack as "module.exports" };
|
package/dist/webpack.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./utils-DuuqqWXg.mjs";
|
|
2
|
+
import { t as unplugin_default } from "./src-pYuu2TZ_.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/webpack.ts
|
|
5
|
+
const webpack = unplugin_default.webpack;
|
|
6
|
+
var webpack_default = webpack;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { webpack_default as default, webpack as "module.exports" };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "31.0.0",
|
|
5
5
|
"description": "Components auto importing for Vue",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,55 +13,24 @@
|
|
|
13
13
|
},
|
|
14
14
|
"bugs": "https://github.com/unplugin/unplugin-vue-components/issues",
|
|
15
15
|
"exports": {
|
|
16
|
-
".":
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"./
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"./
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
"./rollup": {
|
|
29
|
-
"import": "./dist/rollup.js",
|
|
30
|
-
"require": "./dist/rollup.cjs"
|
|
31
|
-
},
|
|
32
|
-
"./rolldown": {
|
|
33
|
-
"import": "./dist/rolldown.js",
|
|
34
|
-
"require": "./dist/rolldown.cjs"
|
|
35
|
-
},
|
|
36
|
-
"./types": {
|
|
37
|
-
"import": "./dist/types.js",
|
|
38
|
-
"require": "./dist/types.cjs"
|
|
39
|
-
},
|
|
40
|
-
"./vite": {
|
|
41
|
-
"import": "./dist/vite.js",
|
|
42
|
-
"require": "./dist/vite.cjs"
|
|
43
|
-
},
|
|
44
|
-
"./webpack": {
|
|
45
|
-
"import": "./dist/webpack.js",
|
|
46
|
-
"require": "./dist/webpack.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./rspack": {
|
|
49
|
-
"import": "./dist/rspack.js",
|
|
50
|
-
"require": "./dist/rspack.cjs"
|
|
51
|
-
},
|
|
52
|
-
"./esbuild": {
|
|
53
|
-
"import": "./dist/esbuild.js",
|
|
54
|
-
"require": "./dist/esbuild.cjs"
|
|
55
|
-
},
|
|
56
|
-
"./*": "./*"
|
|
16
|
+
".": "./dist/index.mjs",
|
|
17
|
+
"./esbuild": "./dist/esbuild.mjs",
|
|
18
|
+
"./nuxt": "./dist/nuxt.mjs",
|
|
19
|
+
"./resolvers": "./dist/resolvers.mjs",
|
|
20
|
+
"./rolldown": "./dist/rolldown.mjs",
|
|
21
|
+
"./rollup": "./dist/rollup.mjs",
|
|
22
|
+
"./rspack": "./dist/rspack.mjs",
|
|
23
|
+
"./types": "./dist/types.mjs",
|
|
24
|
+
"./vite": "./dist/vite.mjs",
|
|
25
|
+
"./webpack": "./dist/webpack.mjs",
|
|
26
|
+
"./package.json": "./package.json"
|
|
57
27
|
},
|
|
58
|
-
"
|
|
59
|
-
"module": "dist/index.js",
|
|
60
|
-
"types": "index.d.ts",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
61
29
|
"typesVersions": {
|
|
62
30
|
"*": {
|
|
63
31
|
"*": [
|
|
64
|
-
"./dist
|
|
32
|
+
"./dist/*.d.mts",
|
|
33
|
+
"./*"
|
|
65
34
|
]
|
|
66
35
|
}
|
|
67
36
|
},
|
|
@@ -69,58 +38,51 @@
|
|
|
69
38
|
"dist"
|
|
70
39
|
],
|
|
71
40
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
41
|
+
"node": ">=20.19.0"
|
|
73
42
|
},
|
|
74
43
|
"peerDependencies": {
|
|
75
|
-
"@babel/parser": "^7.15.8",
|
|
76
44
|
"@nuxt/kit": "^3.2.2 || ^4.0.0",
|
|
77
|
-
"vue": "
|
|
45
|
+
"vue": "^3.0.0"
|
|
78
46
|
},
|
|
79
47
|
"peerDependenciesMeta": {
|
|
80
|
-
"@babel/parser": {
|
|
81
|
-
"optional": true
|
|
82
|
-
},
|
|
83
48
|
"@nuxt/kit": {
|
|
84
49
|
"optional": true
|
|
85
50
|
}
|
|
86
51
|
},
|
|
87
52
|
"dependencies": {
|
|
88
|
-
"chokidar": "^
|
|
89
|
-
"debug": "^4.4.3",
|
|
53
|
+
"chokidar": "^5.0.0",
|
|
90
54
|
"local-pkg": "^1.1.2",
|
|
91
|
-
"magic-string": "^0.30.
|
|
55
|
+
"magic-string": "^0.30.21",
|
|
92
56
|
"mlly": "^1.8.0",
|
|
57
|
+
"obug": "^2.1.1",
|
|
58
|
+
"picomatch": "^4.0.3",
|
|
93
59
|
"tinyglobby": "^0.2.15",
|
|
94
|
-
"unplugin": "^2.3.
|
|
60
|
+
"unplugin": "^2.3.11",
|
|
95
61
|
"unplugin-utils": "^0.3.1"
|
|
96
62
|
},
|
|
97
63
|
"devDependencies": {
|
|
98
|
-
"@antfu/eslint-config": "^
|
|
64
|
+
"@antfu/eslint-config": "^7.0.0",
|
|
99
65
|
"@antfu/utils": "^9.3.0",
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"
|
|
106
|
-
"@types/node": "^24.8.1",
|
|
107
|
-
"bumpp": "^10.3.1",
|
|
66
|
+
"@nuxt/kit": "^4.2.2",
|
|
67
|
+
"@nuxt/schema": "^4.2.2",
|
|
68
|
+
"@types/node": "^25.0.8",
|
|
69
|
+
"@types/picomatch": "^4.0.2",
|
|
70
|
+
"@typescript/native-preview": "7.0.0-dev.20260114.1",
|
|
71
|
+
"bumpp": "^10.4.0",
|
|
108
72
|
"compare-versions": "^6.1.1",
|
|
109
|
-
"element-plus": "^2.
|
|
110
|
-
"eslint": "^9.
|
|
111
|
-
"eslint-plugin-format": "^1.
|
|
112
|
-
"esno": "^4.8.0",
|
|
113
|
-
"estree-walker": "^3.0.3",
|
|
114
|
-
"minimatch": "^10.0.3",
|
|
73
|
+
"element-plus": "^2.13.1",
|
|
74
|
+
"eslint": "^9.39.2",
|
|
75
|
+
"eslint-plugin-format": "^1.3.1",
|
|
115
76
|
"pathe": "^2.0.3",
|
|
116
|
-
"rolldown": "^1.0.0-beta.
|
|
117
|
-
"rollup": "^4.
|
|
118
|
-
"tsdown": "^0.
|
|
77
|
+
"rolldown": "^1.0.0-beta.60",
|
|
78
|
+
"rollup": "^4.55.1",
|
|
79
|
+
"tsdown": "^0.20.0-beta.3",
|
|
119
80
|
"typescript": "^5.9.3",
|
|
120
|
-
"vite": "^7.1
|
|
121
|
-
"vitest": "^
|
|
81
|
+
"vite": "^7.3.1",
|
|
82
|
+
"vitest": "^4.0.17",
|
|
122
83
|
"vue": "3.2.45",
|
|
123
|
-
"vue-tsc": "^3.
|
|
84
|
+
"vue-tsc": "^3.2.2",
|
|
85
|
+
"webpack": "^5.104.1"
|
|
124
86
|
},
|
|
125
87
|
"scripts": {
|
|
126
88
|
"build": "tsdown",
|
|
@@ -128,7 +90,7 @@
|
|
|
128
90
|
"example:build": "npm -C examples/vite-vue3 run build",
|
|
129
91
|
"example:dev": "npm -C examples/vite-vue3 run dev",
|
|
130
92
|
"lint": "eslint .",
|
|
131
|
-
"typecheck": "
|
|
93
|
+
"typecheck": "tsgo",
|
|
132
94
|
"release": "bumpp",
|
|
133
95
|
"test": "vitest",
|
|
134
96
|
"test:update": "vitest -u"
|
package/dist/esbuild.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
require('./utils-8UQ22cuO.cjs');
|
|
2
|
-
const require_src = require('./src-DAvVDVLg.cjs');
|
|
3
|
-
require('./types-CBTc19th.cjs');
|
|
4
|
-
|
|
5
|
-
//#region src/esbuild.ts
|
|
6
|
-
var esbuild_default = require_src.unplugin_default.esbuild;
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
module.exports = esbuild_default;
|
package/dist/esbuild.d.cts
DELETED
package/dist/esbuild.d.ts
DELETED
package/dist/esbuild.js
DELETED
package/dist/index.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_utils = require('./utils-8UQ22cuO.cjs');
|
|
3
|
-
const require_src = require('./src-DAvVDVLg.cjs');
|
|
4
|
-
require('./types-CBTc19th.cjs');
|
|
5
|
-
|
|
6
|
-
exports.camelCase = require_utils.camelCase;
|
|
7
|
-
exports.default = require_src.unplugin_default;
|
|
8
|
-
exports.kebabCase = require_utils.kebabCase;
|
|
9
|
-
exports.pascalCase = require_utils.pascalCase;
|
package/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-rC3290ja.js";
|
|
2
|
-
import * as unplugin0 from "unplugin";
|
|
3
|
-
import { FilterPattern } from "unplugin-utils";
|
|
4
|
-
|
|
5
|
-
//#region src/core/unplugin.d.ts
|
|
6
|
-
declare const _default: unplugin0.UnpluginInstance<Options, boolean>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/core/utils.d.ts
|
|
9
|
-
declare function pascalCase(str: string): string;
|
|
10
|
-
declare function camelCase(str: string): string;
|
|
11
|
-
declare function kebabCase(key: string): string;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport, camelCase, _default as default, kebabCase, pascalCase };
|
package/dist/index.js
DELETED
package/dist/nuxt.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const require_utils = require('./utils-8UQ22cuO.cjs');
|
|
2
|
-
const require_src = require('./src-DAvVDVLg.cjs');
|
|
3
|
-
require('./types-CBTc19th.cjs');
|
|
4
|
-
let __nuxt_kit = require("@nuxt/kit");
|
|
5
|
-
__nuxt_kit = require_utils.__toESM(__nuxt_kit);
|
|
6
|
-
|
|
7
|
-
//#region src/nuxt.ts
|
|
8
|
-
var nuxt_default = (0, __nuxt_kit.defineNuxtModule)({ setup(options) {
|
|
9
|
-
(0, __nuxt_kit.addWebpackPlugin)(require_src.unplugin_default.webpack(options));
|
|
10
|
-
(0, __nuxt_kit.addVitePlugin)(require_src.unplugin_default.vite(options));
|
|
11
|
-
} });
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
module.exports = nuxt_default;
|
package/dist/nuxt.d.cts
DELETED
package/dist/nuxt.d.ts
DELETED