Closed shama closed 8 years ago
This example will cause it to break:
var className = 'test' var element = yo`<div class="${className} broken">dang</div>`
This is because the transform is only expecting attributes to either be a string or template expression but not both.
The work around for now is:
var className = 'test' var element = yo`<div class="${className + ' broken'}">dang</div>`
That only fixed pieces that come after but doesn't fix pieces that come before:
var element = yo`<a href="/${slug}">click</a>`
This example will cause it to break:
This is because the transform is only expecting attributes to either be a string or template expression but not both.
The work around for now is: