We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tagName: ''
1 parent f81ec5d commit 80ed399Copy full SHA for 80ed399
1 file changed
lib/transform.js
@@ -127,7 +127,17 @@ function transform(componentPath) {
127
}
128
debug(`${componentPath}: templatePath: %o`, templatePath);
129
130
- // TODO set `tagName: ''`
+ // set `tagName: ''`
131
+ let tagNamePath = j(properties)
132
+ .find(j.ObjectProperty)
133
+ .filter(path => path.parentPath === properties)
134
+ .filter(path => isProperty(path, 'tagName'));
135
+
136
+ if (tagNamePath.length === 1) {
137
+ j(tagNamePath.get('value')).replaceWith(j.stringLiteral(''));
138
+ } else {
139
+ properties.unshift(j.objectProperty(j.identifier('tagName'), j.stringLiteral('')));
140
+ }
141
142
// remove `elementId`, `attributeBindings`, `classNames` and `classNameBindings`
143
j(properties)
0 commit comments