Skip to content

Commit 5d533b1

Browse files
JohnsonHuang4396antfu黄启浩JohnsonHuang
authored
feat(ant-design-vue): support css-in-js import style (unplugin#703)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com> Co-authored-by: 黄启浩 <huangqh@xianghe.com> Co-authored-by: JohnsonHuang <huangqihao@xh-online.com>
1 parent ecf1a68 commit 5d533b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/resolvers/antdv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export interface AntDesignVueResolverOptions {
224224
*
225225
* @default 'css'
226226
*/
227-
importStyle?: boolean | 'css' | 'less'
227+
importStyle?: boolean | 'css' | 'less' | 'css-in-js'
228228
/**
229229
* resolve `ant-design-vue' icons
230230
*
@@ -288,7 +288,7 @@ function getSideEffects(compName: string, options: AntDesignVueResolverOptions):
288288
const lib = options.cjs ? 'lib' : 'es'
289289
const packageName = options?.packageName || 'ant-design-vue'
290290

291-
if (importStyle === 'less' || importLess) {
291+
if (importStyle === 'less' || importStyle === 'css-in-js' || importLess) {
292292
const styleDir = getStyleDir(compName)
293293
return `${packageName}/${lib}/${styleDir}/style`
294294
}

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