Skip to content

Commit c589454

Browse files
committed
feat: support wildcard tag in transformToRequire (close #978)
1 parent bcd54d2 commit c589454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template-compiler/modules/transform-require.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = userOptions => {
1919

2020
function transform (node, options) {
2121
for (const tag in options) {
22-
if (node.tag === tag && node.attrs) {
22+
if ((tag === '*' || node.tag === tag) && node.attrs) {
2323
const attributes = options[tag]
2424
if (typeof attributes === 'string') {
2525
node.attrs.some(attr => rewrite(attr, attributes))

0 commit comments

Comments
 (0)