File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,19 @@ export interface TDesignResolverOptions {
23
23
24
24
function getSideEffects ( importName : string , options : TDesignResolverOptions ) : SideEffectsInfo | undefined {
25
25
const { library = 'vue' , importStyle = 'css' } = options
26
- const fileName = kebabCase ( importName )
26
+ let fileName = kebabCase ( importName )
27
27
28
- if ( ! importStyle ) return
28
+ if ( ! importStyle )
29
+ return
29
30
30
- if ( fileName === 'config-provider' ) return
31
-
32
- if ( fileName === 'radio-group' || fileName === 'radio-button' ) fileName = 'radio'
31
+ if ( fileName === 'config-provider' )
32
+ return
33
33
34
- if ( importStyle === 'less' ) return `tdesign-${ library } /esm/${ fileName } /style`
34
+ if ( fileName === 'radio-group' || fileName === 'radio-button' )
35
+ fileName = 'radio'
36
+
37
+ if ( importStyle === 'less' )
38
+ return `tdesign-${ library } /esm/${ fileName } /style`
35
39
36
40
return `tdesign-${ library } /es/${ fileName } /style`
37
41
}
You can’t perform that action at this time.
0 commit comments