unplugin-vue-components
Advanced tools
Comparing version 0.17.11 to 0.17.13
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkCB6M22NEjs = require('./chunk-CB6M22NE.js'); | ||
var _chunkPBOKHWI5js = require('./chunk-PBOKHWI5.js'); | ||
@@ -8,3 +8,3 @@ | ||
var _chunkVGL64D3Tjs = require('./chunk-VGL64D3T.js'); | ||
var _chunk42OWKG5Wjs = require('./chunk-42OWKG5W.js'); | ||
require('./chunk-GGNOJ77I.js'); | ||
@@ -17,2 +17,2 @@ require('./chunk-HIJQIC5V.js'); | ||
exports.camelCase = _chunkVGL64D3Tjs.camelCase; exports.default = _chunkCB6M22NEjs.unplugin_default; exports.kebabCase = _chunkVGL64D3Tjs.kebabCase; exports.pascalCase = _chunkVGL64D3Tjs.pascalCase; | ||
exports.camelCase = _chunk42OWKG5Wjs.camelCase; exports.default = _chunkPBOKHWI5js.unplugin_default; exports.kebabCase = _chunk42OWKG5Wjs.kebabCase; exports.pascalCase = _chunk42OWKG5Wjs.pascalCase; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkCB6M22NEjs = require('./chunk-CB6M22NE.js'); | ||
require('./chunk-VGL64D3T.js'); | ||
var _chunkPBOKHWI5js = require('./chunk-PBOKHWI5.js'); | ||
require('./chunk-42OWKG5W.js'); | ||
require('./chunk-GGNOJ77I.js'); | ||
@@ -12,7 +12,7 @@ require('./chunk-HIJQIC5V.js'); | ||
config.plugins = config.plugins || []; | ||
config.plugins.unshift(_chunkCB6M22NEjs.unplugin_default.webpack(options)); | ||
config.plugins.unshift(_chunkPBOKHWI5js.unplugin_default.webpack(options)); | ||
}); | ||
this.nuxt.hook("vite:extend", async (vite) => { | ||
vite.config.plugins = vite.config.plugins || []; | ||
vite.config.plugins.push(_chunkCB6M22NEjs.unplugin_default.vite(options)); | ||
vite.config.plugins.push(_chunkPBOKHWI5js.unplugin_default.vite(options)); | ||
}); | ||
@@ -19,0 +19,0 @@ } |
@@ -117,3 +117,3 @@ import { ComponentResolver, ComponentResolveResult, UILibraryOptions, ComponentResolverObject } from './types'; | ||
*/ | ||
declare function HeadlessUiResolver({ prefix }: HeadlessUiResolverOptions): ComponentResolver; | ||
declare function HeadlessUiResolver({ prefix, }: HeadlessUiResolverOptions): ComponentResolver; | ||
@@ -140,2 +140,10 @@ interface IduxResolverOptions { | ||
/** | ||
* Resolver for Inkline | ||
* | ||
* @author @alexgrozav | ||
* @link https://github.com/inkline/inkline | ||
*/ | ||
declare function InklineResolver(): ComponentResolver; | ||
/** | ||
* Resolver for Naive UI | ||
@@ -373,2 +381,2 @@ * | ||
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 }; | ||
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 }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkCB6M22NEjs = require('./chunk-CB6M22NE.js'); | ||
require('./chunk-VGL64D3T.js'); | ||
var _chunkPBOKHWI5js = require('./chunk-PBOKHWI5.js'); | ||
require('./chunk-42OWKG5W.js'); | ||
require('./chunk-GGNOJ77I.js'); | ||
@@ -9,3 +9,3 @@ require('./chunk-HIJQIC5V.js'); | ||
// src/rollup.ts | ||
var rollup_default = _chunkCB6M22NEjs.unplugin_default.rollup; | ||
var rollup_default = _chunkPBOKHWI5js.unplugin_default.rollup; | ||
@@ -12,0 +12,0 @@ |
@@ -16,6 +16,6 @@ import { FilterPattern } from '@rollup/pluginutils'; | ||
declare type ComponentResolverFunction = (name: string) => ComponentResolveResult; | ||
declare type ComponentResolverObject = { | ||
interface ComponentResolverObject { | ||
type: 'component' | 'directive'; | ||
resolve: ComponentResolverFunction; | ||
}; | ||
} | ||
declare type ComponentResolver = ComponentResolverFunction | ComponentResolverObject; | ||
@@ -22,0 +22,0 @@ interface UILibraryOptions { |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkCB6M22NEjs = require('./chunk-CB6M22NE.js'); | ||
require('./chunk-VGL64D3T.js'); | ||
var _chunkPBOKHWI5js = require('./chunk-PBOKHWI5.js'); | ||
require('./chunk-42OWKG5W.js'); | ||
require('./chunk-GGNOJ77I.js'); | ||
@@ -9,3 +9,3 @@ require('./chunk-HIJQIC5V.js'); | ||
// src/vite.ts | ||
var vite_default = _chunkCB6M22NEjs.unplugin_default.vite; | ||
var vite_default = _chunkPBOKHWI5js.unplugin_default.vite; | ||
@@ -12,0 +12,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkCB6M22NEjs = require('./chunk-CB6M22NE.js'); | ||
require('./chunk-VGL64D3T.js'); | ||
var _chunkPBOKHWI5js = require('./chunk-PBOKHWI5.js'); | ||
require('./chunk-42OWKG5W.js'); | ||
require('./chunk-GGNOJ77I.js'); | ||
@@ -9,3 +9,3 @@ require('./chunk-HIJQIC5V.js'); | ||
// src/webpack.ts | ||
var webpack_default = _chunkCB6M22NEjs.unplugin_default.webpack; | ||
var webpack_default = _chunkPBOKHWI5js.unplugin_default.webpack; | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "unplugin-vue-components", | ||
"version": "0.17.11", | ||
"version": "0.17.13", | ||
"description": "Components auto importing for Vue", | ||
@@ -47,2 +47,6 @@ "homepage": "https://github.com/antfu/unplugin-vue-components", | ||
"import": "./dist/webpack.mjs" | ||
}, | ||
"./esbuild": { | ||
"require": "./dist/esbuild.js", | ||
"import": "./dist/esbuild.mjs" | ||
} | ||
@@ -59,2 +63,3 @@ }, | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint --ext .js,.vue,.ts,.tsx .", | ||
"release": "npx bumpp --commit --tag --push", | ||
@@ -78,34 +83,34 @@ "test": "vitest", | ||
"dependencies": { | ||
"@antfu/utils": "^0.3.0", | ||
"@rollup/pluginutils": "^4.1.1", | ||
"@antfu/utils": "^0.4.0", | ||
"@rollup/pluginutils": "^4.1.2", | ||
"chokidar": "^3.5.2", | ||
"debug": "^4.3.2", | ||
"fast-glob": "^3.2.7", | ||
"local-pkg": "^0.4.0", | ||
"debug": "^4.3.3", | ||
"fast-glob": "^3.2.11", | ||
"local-pkg": "^0.4.1", | ||
"magic-string": "^0.25.7", | ||
"minimatch": "^3.0.4", | ||
"resolve": "^1.20.0", | ||
"unplugin": "^0.2.21" | ||
"resolve": "^1.21.0", | ||
"unplugin": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.10.0", | ||
"@babel/parser": "^7.16.4", | ||
"@babel/traverse": "^7.16.3", | ||
"@babel/types": "^7.16.0", | ||
"@antfu/eslint-config": "^0.16.0", | ||
"@babel/parser": "^7.16.8", | ||
"@babel/traverse": "^7.16.8", | ||
"@babel/types": "^7.16.8", | ||
"@types/debug": "^4.1.7", | ||
"@types/minimatch": "^3.0.5", | ||
"@types/node": "^16.11.9", | ||
"@types/node": "^17.0.8", | ||
"@types/resolve": "^1.20.1", | ||
"@typescript-eslint/eslint-plugin": "^5.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.9.1", | ||
"bumpp": "^7.1.1", | ||
"compare-versions": "^4.1.1", | ||
"compare-versions": "^4.1.3", | ||
"element-plus": "^1.1.0-beta.24", | ||
"eslint": "^8.3.0", | ||
"esno": "^0.12.1", | ||
"rollup": "^2.60.0", | ||
"tsup": "^5.7.4", | ||
"typescript": "^4.5.2", | ||
"vite": "^2.6.14", | ||
"vitest": "^0.0.50", | ||
"vue": "3" | ||
"eslint": "^8.7.0", | ||
"esno": "^0.14.0", | ||
"rollup": "^2.64.0", | ||
"tsup": "5.7.4", | ||
"typescript": "^4.5.4", | ||
"vite": "^2.7.12", | ||
"vitest": "^0.1.17", | ||
"vue": "3.2.26" | ||
}, | ||
@@ -112,0 +117,0 @@ "engines": { |
@@ -11,3 +11,3 @@ # unplugin-vue-components | ||
- ✨ Supports both components and directives. | ||
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>. | ||
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>. | ||
- 🏝 Tree-shakable, only registers the components you use. | ||
@@ -108,2 +108,21 @@ - 🪐 Folder names as namespaces. | ||
<details> | ||
<summary>esbuild</summary><br> | ||
```ts | ||
// esbuild.config.js | ||
import { build } from 'esbuild' | ||
build({ | ||
/* ... */ | ||
plugins: [ | ||
require('unplugin-vue-components/esbuild')({ | ||
/* options */ | ||
}), | ||
], | ||
}) | ||
``` | ||
<br></details> | ||
## Usage | ||
@@ -176,2 +195,3 @@ | ||
- [IDux](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/idux.ts) | ||
- [Inkline](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/inkline.ts) | ||
- [Naive UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/naive-ui.ts) | ||
@@ -186,2 +206,3 @@ - [Prime Vue](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts) | ||
- [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts) | ||
- [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts) | ||
@@ -188,0 +209,0 @@ ```ts |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231087
43
6784
333
+ Added@antfu/utils@0.4.0(transitive)
+ Addedunplugin@0.3.3(transitive)
- Removed@antfu/utils@0.3.0(transitive)
- Removedunplugin@0.2.21(transitive)
Updated@antfu/utils@^0.4.0
Updated@rollup/pluginutils@^4.1.2
Updateddebug@^4.3.3
Updatedfast-glob@^3.2.11
Updatedlocal-pkg@^0.4.1
Updatedresolve@^1.21.0
Updatedunplugin@^0.3.0