vue-template-loader icon indicating copy to clipboard operation
vue-template-loader copied to clipboard

How to downgrade js in templates?

Open Mori-Yang opened this issue 1 year ago • 0 comments

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?

Mori-Yang avatar Jul 04 '24 16:07 Mori-Yang