Skip to content

Commit 7f74c4c

Browse files
nabaonanantfu
andauthored
fix: update antdv version, fix style lost (#74)
Co-authored-by: Anthony Fu <[email protected]>
1 parent d6a2356 commit 7f74c4c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/resolvers/antdv.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ import { ComponentResolver } from '../types'
33
/**
44
* Resolver for Ant Design Vue
55
*
6+
* Requires [email protected] or later
7+
*
68
* See https://github.com/antfu/vite-plugin-components/issues/26#issuecomment-789767941 for more details
79
*
810
* @author @yangss3
911
* @link https://antdv.com/
1012
*/
1113
export const AntDesignVueResolver = (): ComponentResolver => (name: string) => {
1214
if (name.match(/^A[A-Z]/))
13-
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+
}
1420
}

0 commit comments

Comments
 (0)