shama / yo-yoify

Transform choo, yo-yo or bel template strings into pure and fast document calls
111 stars 17 forks source link

Problem when using `-g yo-yoify` in combination with `-t [ babelify --presents [ es2015 ] ]` #36

Open serapath opened 7 years ago

serapath commented 7 years ago

The output will contain

yo`<div>...`

and yo is not a function anymore.

even though, in the problematic required file

yo`<label><input id="staticanalysismodule${i}" type="checkbox" name="staticanalysismodule" index=${i} checked="true">${item.name} (${item.description})</label>`

has been changed to

yo(_templateObject2, i, i, item.name, item.description)

The object yo still has a .update method

goto-bus-stop commented 6 years ago

should be fixed by #58, which detects compiled template strings and transforms them as well