Open pvrt opened 2 years ago
When I use require in the attribute value, syntax highlighting breaks. How can this be fixed?
img(src=require("./src/images/icon-arrow.svg"))
Edit: never mind, I just checked the docs and plain javascript is supported as value for attributes...
It works fine for me on Code:
What editor are you using?
When I use require in the attribute value, syntax highlighting breaks. How can this be fixed?
img(src=require("./src/images/icon-arrow.svg"))