File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ export interface IduxResolverOptions {
3333 * @default 'default'
3434 */
3535 importStyleTheme ?: string
36+
37+ /**
38+ * The scope of the packages.
39+ *
40+ * @default '@idux'
41+ */
42+ scope ?: string
3643}
3744
3845/**
@@ -44,7 +51,7 @@ export function IduxResolver(options: IduxResolverOptions = {}): ComponentResolv
4451 return {
4552 type : 'component' ,
4653 resolve : ( name : string ) => {
47- const { importStyle, importStyleTheme = 'default' , exclude = [ ] } = options
54+ const { importStyle, importStyleTheme = 'default' , exclude = [ ] , scope = '@idux' } = options
4855 if ( exclude . includes ( name ) )
4956 return
5057
@@ -58,7 +65,7 @@ export function IduxResolver(options: IduxResolverOptions = {}): ComponentResolv
5865 dirname = kebabCase ( name ) . split ( '-' ) [ nameIndex ]
5966 }
6067
61- const path = `@idux /${ packageName } /${ dirname } `
68+ const path = `${ scope } /${ packageName } /${ dirname } `
6269
6370 let sideEffects : string | undefined
6471 if ( packageName !== 'cdk' && importStyle )
You can’t perform that action at this time.
0 commit comments