File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ export interface IduxResolverOptions {
33
33
* @default 'default'
34
34
*/
35
35
importStyleTheme ?: string
36
+
37
+ /**
38
+ * The scope of the packages.
39
+ *
40
+ * @default '@idux'
41
+ */
42
+ scope ?: string
36
43
}
37
44
38
45
/**
@@ -44,7 +51,7 @@ export function IduxResolver(options: IduxResolverOptions = {}): ComponentResolv
44
51
return {
45
52
type : 'component' ,
46
53
resolve : ( name : string ) => {
47
- const { importStyle, importStyleTheme = 'default' , exclude = [ ] } = options
54
+ const { importStyle, importStyleTheme = 'default' , exclude = [ ] , scope = '@idux' } = options
48
55
if ( exclude . includes ( name ) )
49
56
return
50
57
@@ -58,7 +65,7 @@ export function IduxResolver(options: IduxResolverOptions = {}): ComponentResolv
58
65
dirname = kebabCase ( name ) . split ( '-' ) [ nameIndex ]
59
66
}
60
67
61
- const path = `@idux /${ packageName } /${ dirname } `
68
+ const path = `${ scope } /${ packageName } /${ dirname } `
62
69
63
70
let sideEffects : string | undefined
64
71
if ( packageName !== 'cdk' && importStyle )
You can’t perform that action at this time.
0 commit comments