Skip to content

Commit 6e89cbb

Browse files
committed
fix modifier
1 parent bbbfcfd commit 6e89cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pluginApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const getComponents = (selector, components) => {
3434
let componentList = {}
3535
selector = isEmpty(selector) ? '' : selector
3636
toPairs(flattenOptions(components)).forEach(([key, config]) => {
37-
const modifier = key === 'DEFAULT' ? '' : `-${key}`
37+
const modifier = key === 'DEFAULT' ? '' : isEmpty(selector) ? `${key}` : `-${key}`
3838
toPairs(config)
3939
.filter(([, options]) => !isEmpty(options))
4040
.forEach(([subKey, options]) => merge(componentList, setComponent(selector, modifier, options)))

0 commit comments

Comments
 (0)