vue-template-loader
vue-template-loader copied to clipboard
How to downgrade js in templates?
My template file contains only templates,like:
<div>
<h1>{{ obj?.attr }}<h1>
</div>
If I use es11 syntax then it will not work in low version browsers.
How do I go about downgrading the js in this case?I tried writing the loader and using babel, but babel thinks the file is jsx.
Is there any other way? Or does vue-template-loader support syntax degradation?