Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to downgrade js in templates? #65

Open
Ys-OoO opened this issue Jul 4, 2024 · 0 comments
Open

How to downgrade js in templates? #65

Ys-OoO opened this issue Jul 4, 2024 · 0 comments

Comments

@Ys-OoO
Copy link

Ys-OoO commented Jul 4, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant