We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a2356 commit 7f74c4cCopy full SHA for 7f74c4c
src/resolvers/antdv.ts
@@ -3,12 +3,18 @@ import { ComponentResolver } from '../types'
3
/**
4
* Resolver for Ant Design Vue
5
*
6
+ * Requires [email protected] or later
7
+ *
8
* See https://github.com/antfu/vite-plugin-components/issues/26#issuecomment-789767941 for more details
9
10
* @author @yangss3
11
* @link https://antdv.com/
12
*/
13
export const AntDesignVueResolver = (): ComponentResolver => (name: string) => {
14
if (name.match(/^A[A-Z]/))
- return { importName: name.slice(1), path: 'ant-design-vue/es' }
15
+ return {
16
+ importName: name.slice(1),
17
+ path: 'ant-design-vue/es',
18
+ sideEffects: "ant-design-vue/es/style",
19
+ }
20
}
0 commit comments