vite-plugin-components
Advanced tools
Comparing version 0.12.1 to 0.12.2
@@ -128,2 +128,10 @@ import { Plugin } from 'vite'; | ||
importLess?: boolean; | ||
/** | ||
* resolve `ant-design-vue' icons | ||
* | ||
* requires package `@ant-design/icons-vue` | ||
* | ||
* @default false | ||
*/ | ||
resolveIcons?: boolean; | ||
} | ||
@@ -130,0 +138,0 @@ declare const AntDesignVueResolver: (options?: AntDesignVueResolverOptions) => ComponentResolver; |
@@ -971,2 +971,6 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __create = Object.create; | ||
styleDir: "timeline" | ||
}, | ||
{ | ||
pattern: /^Upload/, | ||
styleDir: "upload" | ||
} | ||
@@ -1001,2 +1005,8 @@ ]; | ||
var AntDesignVueResolver = (options = {}) => (name) => { | ||
if (options.resolveIcons && name.match(/(Outlined|Filled|TwoTone)$/)) { | ||
return { | ||
importName: name, | ||
path: "@ant-design/icons-vue" | ||
}; | ||
} | ||
if (name.match(/^A[A-Z]/)) { | ||
@@ -1003,0 +1013,0 @@ const importName = name.slice(1); |
{ | ||
"name": "vite-plugin-components", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "Components auto importing for Vite", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/antfu/vite-plugin-components", |
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
86222
2505