Skip to content

Commit f9af239

Browse files
committed
fix: generate name correctly in Safari if constructor has no name
1 parent d6aea0d commit f9af239

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function getClassUniqueTag(klass) {
2929
return tag;
3030
}
3131

32-
if (Object.prototype.hasOwnProperty.call(klass, 'name')) {
32+
if (Object.prototype.hasOwnProperty.call(klass, 'name') && klass.name) {
3333
tag = toDashCase(klass.name);
3434
if (tag.indexOf('-') === -1) {
3535
tag = `c-${tag}`;

0 commit comments

Comments
 (0)