unplugin-vue-components 28.8.0 → 29.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.
- package/README.md +62 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +4 -5
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/nuxt.cjs +4 -3
- package/dist/nuxt.d.cts +4 -5
- package/dist/nuxt.d.ts +3 -3
- package/dist/nuxt.js +3 -3
- package/dist/resolvers.cjs +31 -27
- package/dist/resolvers.d.cts +1 -1
- package/dist/resolvers.d.ts +1 -1
- package/dist/resolvers.js +19 -21
- package/dist/rolldown.cjs +9 -0
- package/dist/rolldown.d.cts +6 -0
- package/dist/rolldown.d.ts +7 -0
- package/dist/rolldown.js +9 -0
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +4 -5
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.d.cts +2 -3
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/{src-a29vieKX.js → src-BTwFq3T3.cjs} +3 -3
- package/dist/{src-B9aLSEVj.js → src-CbJqJu6O.js} +30 -38
- package/dist/{src-C_roJwTj.cjs → src-Ctx_G96r.cjs} +52 -51
- package/dist/{src-BslXt6ey.cjs → src-D2-JfLYq.js} +2 -4
- package/dist/{types-BED632qH.d.cts → types-BgF15syy.d.ts} +10 -1
- package/dist/types-DQoXDiso.js +1 -0
- package/dist/{types-CFwIfA2K.d.ts → types-dp3LCoF8.d.cts} +10 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +3 -1
- package/dist/{utils-DuLwPrUJ.js → utils-BPB1pAS0.js} +33 -36
- package/dist/{utils-BIvt10am.cjs → utils-c-ZB7b5u.cjs} +44 -38
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +2 -3
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +4 -5
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +3 -3
- package/package.json +42 -39
- package/dist/types-Cv8NMtbo.js +0 -0
package/README.md
CHANGED
|
@@ -65,6 +65,22 @@ export default {
|
|
|
65
65
|
|
|
66
66
|
<br></details>
|
|
67
67
|
|
|
68
|
+
<details>
|
|
69
|
+
<summary>Rolldown</summary><br>
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
// rolldown.config.js
|
|
73
|
+
import Components from 'unplugin-vue-components/rolldown'
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
plugins: [
|
|
77
|
+
Components({ /* options */ }),
|
|
78
|
+
],
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
<br></details>
|
|
83
|
+
|
|
68
84
|
<details>
|
|
69
85
|
<summary>Webpack</summary><br>
|
|
70
86
|
|
|
@@ -132,6 +148,36 @@ export default {
|
|
|
132
148
|
|
|
133
149
|
<br></details>
|
|
134
150
|
|
|
151
|
+
<details>
|
|
152
|
+
<summary>Quasar</summary><br>
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
// vite.config.js [Vite]
|
|
156
|
+
import Components from 'unplugin-vue-components/vite'
|
|
157
|
+
import { defineConfig } from 'vite'
|
|
158
|
+
|
|
159
|
+
export default defineConfig({
|
|
160
|
+
plugins: [
|
|
161
|
+
Components({ /* options */ })
|
|
162
|
+
]
|
|
163
|
+
})
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
// quasar.config.js
|
|
168
|
+
export default defineConfig(() => {
|
|
169
|
+
return {
|
|
170
|
+
build: {
|
|
171
|
+
vitePlugins: [
|
|
172
|
+
['unplugin-vue-components/vite', { /* options */ }],
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
<br></details>
|
|
180
|
+
|
|
135
181
|
<details>
|
|
136
182
|
<summary>esbuild</summary><br>
|
|
137
183
|
|
|
@@ -229,6 +275,7 @@ Supported Resolvers:
|
|
|
229
275
|
- [Prime Vue](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts)
|
|
230
276
|
- [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
|
|
231
277
|
- [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
|
|
278
|
+
- [`@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
279
|
- [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
|
|
233
280
|
- [`@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
281
|
- [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
|
|
@@ -414,7 +461,21 @@ Components({
|
|
|
414
461
|
version: 2.7,
|
|
415
462
|
|
|
416
463
|
// Only provide types of components in library (registered globally)
|
|
417
|
-
|
|
464
|
+
// see https://github.com/unplugin/unplugin-vue-components/blob/main/src/core/type-imports/index.ts
|
|
465
|
+
types: [
|
|
466
|
+
/* ... */
|
|
467
|
+
],
|
|
468
|
+
|
|
469
|
+
// Save component information into a JSON file for other tools to consume.
|
|
470
|
+
// Provide a filepath to save the JSON file.
|
|
471
|
+
// When set to `true`, it will save to `./.components-info.json`
|
|
472
|
+
dumpComponentsInfo: false,
|
|
473
|
+
|
|
474
|
+
// The mode for syncing the components.d.ts and .components-info.json file.
|
|
475
|
+
// 'append': only append the new components to the existing files.
|
|
476
|
+
// 'overwrite': overwrite the whole existing files with the current components.
|
|
477
|
+
// 'default': use 'append' strategy when using dev server, 'overwrite' strategy when using build.
|
|
478
|
+
syncMode: 'default',
|
|
418
479
|
})
|
|
419
480
|
```
|
|
420
481
|
|
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-dp3LCoF8.cjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
5
|
+
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
6
|
+
export = _default;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-BgF15syy.js";
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BPB1pAS0.js";
|
|
2
|
+
import { unplugin_default } from "./src-CbJqJu6O.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
//#region src/esbuild.ts
|
|
6
6
|
var esbuild_default = unplugin_default.esbuild;
|
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-c-ZB7b5u.cjs');
|
|
3
|
+
const require_src = require('./src-Ctx_G96r.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
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-dp3LCoF8.cjs";
|
|
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
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-BgF15syy.js";
|
|
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-
|
|
3
|
-
import "./types-
|
|
1
|
+
import { camelCase, kebabCase, pascalCase } from "./utils-BPB1pAS0.js";
|
|
2
|
+
import { unplugin_default } from "./src-CbJqJu6O.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
const require_src = require('./src-
|
|
1
|
+
const require_utils = require('./utils-c-ZB7b5u.cjs');
|
|
2
|
+
const require_src = require('./src-Ctx_G96r.cjs');
|
|
3
3
|
require('./types-CBTc19th.cjs');
|
|
4
|
-
|
|
4
|
+
let __nuxt_kit = require("@nuxt/kit");
|
|
5
|
+
__nuxt_kit = require_utils.__toESM(__nuxt_kit);
|
|
5
6
|
|
|
6
7
|
//#region src/nuxt.ts
|
|
7
8
|
var nuxt_default = (0, __nuxt_kit.defineNuxtModule)({ setup(options) {
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-dp3LCoF8.cjs";
|
|
2
|
+
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
|
-
declare const _default:
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
5
|
+
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
6
|
+
export = _default;
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-BgF15syy.js";
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BPB1pAS0.js";
|
|
2
|
+
import { unplugin_default } from "./src-CbJqJu6O.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
5
|
|
|
6
6
|
//#region src/nuxt.ts
|
package/dist/resolvers.cjs
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const require_utils = require('./utils-c-ZB7b5u.cjs');
|
|
2
|
+
let node_fs = require("node:fs");
|
|
3
|
+
node_fs = require_utils.__toESM(node_fs);
|
|
4
|
+
let node_process = require("node:process");
|
|
5
|
+
node_process = require_utils.__toESM(node_process);
|
|
6
|
+
let node_path = require("node:path");
|
|
7
|
+
node_path = require_utils.__toESM(node_path);
|
|
8
|
+
let debug = require("debug");
|
|
9
|
+
debug = require_utils.__toESM(debug);
|
|
10
|
+
let local_pkg = require("local-pkg");
|
|
11
|
+
local_pkg = require_utils.__toESM(local_pkg);
|
|
12
|
+
let mlly = require("mlly");
|
|
13
|
+
mlly = require_utils.__toESM(mlly);
|
|
8
14
|
|
|
9
15
|
//#region src/core/resolvers/antdv.ts
|
|
10
16
|
const matchComponents$3 = [
|
|
@@ -573,8 +579,7 @@ function ArcoResolver(options = {}) {
|
|
|
573
579
|
resolve: (name) => {
|
|
574
580
|
if (canResolveIcons(options.resolveIcons)) {
|
|
575
581
|
const iconPrefix = require_utils.pascalCase(getResolveIconPrefix(options.resolveIcons));
|
|
576
|
-
|
|
577
|
-
if (newNameRegexp.test(name)) {
|
|
582
|
+
if ((/* @__PURE__ */ new RegExp(`^${iconPrefix}Icon`)).test(name)) {
|
|
578
583
|
debug$1("found icon component name %s", name);
|
|
579
584
|
const rawComponentName = name.slice(iconPrefix.length);
|
|
580
585
|
debug$1("found icon component raw name %s", rawComponentName);
|
|
@@ -817,11 +822,10 @@ function DevUiResolver(options = {}) {
|
|
|
817
822
|
|
|
818
823
|
//#endregion
|
|
819
824
|
//#region node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js
|
|
820
|
-
var require_umd = require_utils.__commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js"(exports, module) {
|
|
825
|
+
var require_umd = /* @__PURE__ */ require_utils.__commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js": ((exports, module) => {
|
|
821
826
|
(function(global, factory) {
|
|
822
827
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.compareVersions = {}));
|
|
823
|
-
})(
|
|
824
|
-
"use strict";
|
|
828
|
+
})(exports, (function(exports$1) {
|
|
825
829
|
const semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
826
830
|
const validateAndParse = (version) => {
|
|
827
831
|
if (typeof version !== "string") throw new TypeError("Invalid argument expected string");
|
|
@@ -982,12 +986,12 @@ var require_umd = require_utils.__commonJS({ "node_modules/.pnpm/compare-version
|
|
|
982
986
|
exports$1.satisfies = satisfies;
|
|
983
987
|
exports$1.validate = validate;
|
|
984
988
|
exports$1.validateStrict = validateStrict;
|
|
985
|
-
});
|
|
986
|
-
} });
|
|
989
|
+
}));
|
|
990
|
+
}) });
|
|
987
991
|
|
|
988
992
|
//#endregion
|
|
989
993
|
//#region src/core/resolvers/element-plus.ts
|
|
990
|
-
var import_umd$1 = require_utils.__toESM(require_umd(), 1);
|
|
994
|
+
var import_umd$1 = /* @__PURE__ */ require_utils.__toESM(require_umd(), 1);
|
|
991
995
|
/**
|
|
992
996
|
* @deprecated
|
|
993
997
|
* @param partialName
|
|
@@ -1031,7 +1035,7 @@ function resolveComponent$1(name, options) {
|
|
|
1031
1035
|
}
|
|
1032
1036
|
function resolveDirective(name, options) {
|
|
1033
1037
|
if (!options.directives) return;
|
|
1034
|
-
const
|
|
1038
|
+
const directive = {
|
|
1035
1039
|
Loading: {
|
|
1036
1040
|
importName: "ElLoadingDirective",
|
|
1037
1041
|
styleName: "loading"
|
|
@@ -1044,8 +1048,7 @@ function resolveDirective(name, options) {
|
|
|
1044
1048
|
importName: "ElInfiniteScroll",
|
|
1045
1049
|
styleName: "infinite-scroll"
|
|
1046
1050
|
}
|
|
1047
|
-
};
|
|
1048
|
-
const directive = directives$1[name];
|
|
1051
|
+
}[name];
|
|
1049
1052
|
if (!directive) return;
|
|
1050
1053
|
const { version, ssr, nightly } = options;
|
|
1051
1054
|
if ((0, import_umd$1.compare)(version, "1.1.0-beta.1", ">=") || nightly) return {
|
|
@@ -1204,7 +1207,7 @@ function HeadlessUiResolver(options = {}) {
|
|
|
1204
1207
|
|
|
1205
1208
|
//#endregion
|
|
1206
1209
|
//#region src/core/resolvers/idux.ts
|
|
1207
|
-
var import_umd = require_utils.__toESM(require_umd(), 1);
|
|
1210
|
+
var import_umd = /* @__PURE__ */ require_utils.__toESM(require_umd(), 1);
|
|
1208
1211
|
const specialComponents = {
|
|
1209
1212
|
CdkClickOutside: "click-outside",
|
|
1210
1213
|
CdkDraggable: "drag-drop",
|
|
@@ -1740,13 +1743,14 @@ function TDesignResolver(options = {}) {
|
|
|
1740
1743
|
name: name.slice(name.startsWith("TTypography") ? 11 : 10),
|
|
1741
1744
|
from: `tdesign-${library}${importFrom}`
|
|
1742
1745
|
};
|
|
1743
|
-
if (name.
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1746
|
+
if (name.startsWith("TQrcode")) return {
|
|
1747
|
+
name: "QRCode",
|
|
1748
|
+
from: `tdesign-${library}${importFrom}`
|
|
1749
|
+
};
|
|
1750
|
+
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) return {
|
|
1751
|
+
name: name.match(/^T[A-Z]/) ? name.slice(1) : name,
|
|
1752
|
+
from: `tdesign-${library}${importFrom}`
|
|
1753
|
+
};
|
|
1750
1754
|
}
|
|
1751
1755
|
};
|
|
1752
1756
|
}
|
|
@@ -1874,7 +1878,7 @@ const formatters = {
|
|
|
1874
1878
|
"camelCase": require_utils.camelCase,
|
|
1875
1879
|
"PascalCase": require_utils.pascalCase
|
|
1876
1880
|
};
|
|
1877
|
-
const peerPaths = new Map();
|
|
1881
|
+
const peerPaths = /* @__PURE__ */ new Map();
|
|
1878
1882
|
function assertPeerPath(peerPath) {
|
|
1879
1883
|
if (!peerPaths.has(peerPath)) try {
|
|
1880
1884
|
(0, mlly.resolvePathSync)(peerPath);
|
package/dist/resolvers.d.cts
CHANGED
package/dist/resolvers.d.ts
CHANGED
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-BPB1pAS0.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { promises, readFileSync } from "node:fs";
|
|
4
4
|
import process from "node:process";
|
|
@@ -601,8 +601,7 @@ function ArcoResolver(options = {}) {
|
|
|
601
601
|
resolve: (name) => {
|
|
602
602
|
if (canResolveIcons(options.resolveIcons)) {
|
|
603
603
|
const iconPrefix = pascalCase(getResolveIconPrefix(options.resolveIcons));
|
|
604
|
-
|
|
605
|
-
if (newNameRegexp.test(name)) {
|
|
604
|
+
if ((/* @__PURE__ */ new RegExp(`^${iconPrefix}Icon`)).test(name)) {
|
|
606
605
|
debug("found icon component name %s", name);
|
|
607
606
|
const rawComponentName = name.slice(iconPrefix.length);
|
|
608
607
|
debug("found icon component raw name %s", rawComponentName);
|
|
@@ -845,11 +844,10 @@ function DevUiResolver(options = {}) {
|
|
|
845
844
|
|
|
846
845
|
//#endregion
|
|
847
846
|
//#region node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js
|
|
848
|
-
var require_umd = __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js"(exports, module) {
|
|
847
|
+
var require_umd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js": ((exports, module) => {
|
|
849
848
|
(function(global, factory) {
|
|
850
849
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.compareVersions = {}));
|
|
851
|
-
})(
|
|
852
|
-
"use strict";
|
|
850
|
+
})(exports, (function(exports$1) {
|
|
853
851
|
const semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
854
852
|
const validateAndParse = (version) => {
|
|
855
853
|
if (typeof version !== "string") throw new TypeError("Invalid argument expected string");
|
|
@@ -1010,12 +1008,12 @@ var require_umd = __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_m
|
|
|
1010
1008
|
exports$1.satisfies = satisfies;
|
|
1011
1009
|
exports$1.validate = validate;
|
|
1012
1010
|
exports$1.validateStrict = validateStrict;
|
|
1013
|
-
});
|
|
1014
|
-
} });
|
|
1011
|
+
}));
|
|
1012
|
+
}) });
|
|
1015
1013
|
|
|
1016
1014
|
//#endregion
|
|
1017
1015
|
//#region src/core/resolvers/element-plus.ts
|
|
1018
|
-
var import_umd$1 = __toESM(require_umd(), 1);
|
|
1016
|
+
var import_umd$1 = /* @__PURE__ */ __toESM(require_umd(), 1);
|
|
1019
1017
|
/**
|
|
1020
1018
|
* @deprecated
|
|
1021
1019
|
* @param partialName
|
|
@@ -1059,7 +1057,7 @@ function resolveComponent$1(name, options) {
|
|
|
1059
1057
|
}
|
|
1060
1058
|
function resolveDirective(name, options) {
|
|
1061
1059
|
if (!options.directives) return;
|
|
1062
|
-
const
|
|
1060
|
+
const directive = {
|
|
1063
1061
|
Loading: {
|
|
1064
1062
|
importName: "ElLoadingDirective",
|
|
1065
1063
|
styleName: "loading"
|
|
@@ -1072,8 +1070,7 @@ function resolveDirective(name, options) {
|
|
|
1072
1070
|
importName: "ElInfiniteScroll",
|
|
1073
1071
|
styleName: "infinite-scroll"
|
|
1074
1072
|
}
|
|
1075
|
-
};
|
|
1076
|
-
const directive = directives$1[name];
|
|
1073
|
+
}[name];
|
|
1077
1074
|
if (!directive) return;
|
|
1078
1075
|
const { version, ssr, nightly } = options;
|
|
1079
1076
|
if ((0, import_umd$1.compare)(version, "1.1.0-beta.1", ">=") || nightly) return {
|
|
@@ -1232,7 +1229,7 @@ function HeadlessUiResolver(options = {}) {
|
|
|
1232
1229
|
|
|
1233
1230
|
//#endregion
|
|
1234
1231
|
//#region src/core/resolvers/idux.ts
|
|
1235
|
-
var import_umd = __toESM(require_umd(), 1);
|
|
1232
|
+
var import_umd = /* @__PURE__ */ __toESM(require_umd(), 1);
|
|
1236
1233
|
const specialComponents = {
|
|
1237
1234
|
CdkClickOutside: "click-outside",
|
|
1238
1235
|
CdkDraggable: "drag-drop",
|
|
@@ -1768,13 +1765,14 @@ function TDesignResolver(options = {}) {
|
|
|
1768
1765
|
name: name.slice(name.startsWith("TTypography") ? 11 : 10),
|
|
1769
1766
|
from: `tdesign-${library}${importFrom}`
|
|
1770
1767
|
};
|
|
1771
|
-
if (name.
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1768
|
+
if (name.startsWith("TQrcode")) return {
|
|
1769
|
+
name: "QRCode",
|
|
1770
|
+
from: `tdesign-${library}${importFrom}`
|
|
1771
|
+
};
|
|
1772
|
+
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) return {
|
|
1773
|
+
name: name.match(/^T[A-Z]/) ? name.slice(1) : name,
|
|
1774
|
+
from: `tdesign-${library}${importFrom}`
|
|
1775
|
+
};
|
|
1778
1776
|
}
|
|
1779
1777
|
};
|
|
1780
1778
|
}
|
|
@@ -1902,7 +1900,7 @@ const formatters = {
|
|
|
1902
1900
|
"camelCase": camelCase,
|
|
1903
1901
|
"PascalCase": pascalCase
|
|
1904
1902
|
};
|
|
1905
|
-
const peerPaths = new Map();
|
|
1903
|
+
const peerPaths = /* @__PURE__ */ new Map();
|
|
1906
1904
|
function assertPeerPath(peerPath) {
|
|
1907
1905
|
if (!peerPaths.has(peerPath)) try {
|
|
1908
1906
|
resolvePathSync(peerPath);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('./utils-c-ZB7b5u.cjs');
|
|
2
|
+
const require_src = require('./src-Ctx_G96r.cjs');
|
|
3
|
+
require('./types-CBTc19th.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/rolldown.ts
|
|
6
|
+
var rolldown_default = require_src.unplugin_default.rolldown;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
module.exports = rolldown_default;
|
package/dist/rolldown.js
ADDED
package/dist/rollup.cjs
CHANGED
package/dist/rollup.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-dp3LCoF8.cjs";
|
|
2
|
+
import * as rollup0 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
5
|
+
declare const _default: (options: Options) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
6
|
+
export = _default;
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-BgF15syy.js";
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BPB1pAS0.js";
|
|
2
|
+
import { unplugin_default } from "./src-CbJqJu6O.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rollup.ts
|
|
6
6
|
var rollup_default = unplugin_default.rollup;
|
package/dist/rspack.cjs
CHANGED
package/dist/rspack.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { Options } from "./types-dp3LCoF8.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/rspack.d.ts
|
|
4
4
|
declare const _default: (options: Options) => RspackPluginInstance;
|
|
5
|
-
|
|
6
|
-
export { _default as default };
|
|
5
|
+
export = _default;
|
package/dist/rspack.d.ts
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BPB1pAS0.js";
|
|
2
|
+
import { unplugin_default } from "./src-CbJqJu6O.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rspack.ts
|
|
6
6
|
var rspack_default = unplugin_default.rspack;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
//#region node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
2
3
|
/**
|
|
3
4
|
* @typedef { import('estree').Node} Node
|
|
@@ -180,9 +181,8 @@ function isNode(value) {
|
|
|
180
181
|
* @returns {Node | null}
|
|
181
182
|
*/
|
|
182
183
|
function walk(ast, { enter, leave }) {
|
|
183
|
-
|
|
184
|
-
return instance.visit(ast, null);
|
|
184
|
+
return new SyncWalker(enter, leave).visit(ast, null);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
//#endregion
|
|
188
|
-
|
|
188
|
+
exports.walk = walk;
|