From c54fa2d0196afe618264ee9cc75139a49ddf2549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Uriel=20Mart=C3=ADnez=20Castillo?= Date: Wed, 28 Apr 2021 13:40:01 -0500 Subject: [PATCH 1/2] Default `lang` value for `script` blocks Some Meteor plugins require to have a `lang="js"` attribute (see https://github.com/Hernanm0g/meteor-vuetify-loader#installation) But in turn, Vetur does not support this: https://github.com/vuejs/vetur/blob/master/docs/guide/highlighting.md#syntax-highlighting (Vetur doc talks about highlighting syntax, but formatting code using Vetur will not work if there is a `lang="js"` for me) --- packages/vue-component/plugin/tag-handler.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/vue-component/plugin/tag-handler.js b/packages/vue-component/plugin/tag-handler.js index 3ff9ba1..779946c 100644 --- a/packages/vue-component/plugin/tag-handler.js +++ b/packages/vue-component/plugin/tag-handler.js @@ -72,6 +72,12 @@ VueComponentTagHandler = class VueComponentTagHandler { maps.push(generateSourceMap(inputFilePath, source, script, getLineNumber(source, sfcBlock.start))) + // treating the