diff --git a/src/core/resolvers/antdv.ts b/src/core/resolvers/antdv.ts index 6302bc2e..33d9041d 100644 --- a/src/core/resolvers/antdv.ts +++ b/src/core/resolvers/antdv.ts @@ -224,7 +224,7 @@ export interface AntDesignVueResolverOptions { * * @default 'css' */ - importStyle?: boolean | 'css' | 'less' + importStyle?: boolean | 'css' | 'less' | 'css-in-js' /** * resolve `ant-design-vue' icons * @@ -288,7 +288,7 @@ function getSideEffects(compName: string, options: AntDesignVueResolverOptions): const lib = options.cjs ? 'lib' : 'es' const packageName = options?.packageName || 'ant-design-vue' - if (importStyle === 'less' || importLess) { + if (importStyle === 'less' || importStyle === 'css-in-js' || importLess) { const styleDir = getStyleDir(compName) return `${packageName}/${lib}/${styleDir}/style` }