Skip to content

Commit 8fb55f2

Browse files
committed
fix: antdv variable.less not loaded when sets root-entry-name to variable
1 parent 0770f86 commit 8fb55f2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/core/resolvers/antdv.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { resolve } from 'path'
21
import type { ComponentResolver, SideEffectsInfo } from '../../types'
32
import { kebabCase } from '../utils'
43
interface IMatcher {
@@ -222,8 +221,13 @@ function getSideEffects(compName: string, options: AntDesignVueResolverOptions):
222221
const lib = options.cjs ? 'lib' : 'es'
223222

224223
if (importStyle === 'less' || importLess) {
225-
const styleDir = getStyleDir(compName)
226-
return `ant-design-vue/${lib}/${styleDir}/style`
224+
if (compName === 'Col' || compName === 'Row') {
225+
return `ant-design-vue/${lib}/style/index.less`
226+
}
227+
else {
228+
const styleDir = getStyleDir(compName)
229+
return `ant-design-vue/${lib}/${styleDir}/style/index.less`
230+
}
227231
}
228232
else {
229233
const styleDir = getStyleDir(compName)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy