Skip to content

Commit 09d68b5

Browse files
committed
fix: merge attributes without tag and attributes with tag
1 parent 03a81db commit 09d68b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plugins/sources-plugin.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ export default (options) =>
4141

4242
name = attribute.prefix ? `${attribute.prefix}:${name}` : name;
4343

44-
const handlers =
45-
options.sources.list.get(tagName.toLowerCase()) ||
46-
options.sources.list.get("*");
44+
const handlers = new Map([
45+
...(options.sources.list.get("*") || new Map()),
46+
...(options.sources.list.get(tagName.toLowerCase()) || new Map()),
47+
]);
4748

4849
if (!handlers) {
4950
return;

0 commit comments

Comments
 (0)