meteor-vue / vue-meteor

🌠 Vue first-class integration in Meteor
897 stars 112 forks source link

fix: Default `lang` value for `script` blocks #424

Closed ackzell closed 1 year ago

ackzell commented 3 years ago

Some Meteor plugins require to have a lang="js" attribute (see https://github.com/Hernanm0g/meteor-vuetify-loader#installation) image

But in turn, Vetur does not support this: https://github.com/vuejs/vetur/blob/master/docs/guide/highlighting.md#syntax-highlighting

image

Vetur doc talks about highlighting syntax, but formatting code using Vetur will not work if there is a lang="js" for me

TL;DR: Figured this being the middle ground would be a good spot to make both things work (auto imports for meteor-vuetify-loader as well as code formatting in VScode using Vetur.

ackzell commented 2 years ago

I am still very much using this setup and my best solution so far is to

Alternatively