File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 22 <v-card title =" Setup component" ></v-card >
33</template >
44
5- <script setup>
5+ <script setup lang="ts" >
66//
77 </script >
Original file line number Diff line number Diff line change 1717 "@types/node" : " ^16.11.12" ,
1818 "@typescript-eslint/eslint-plugin" : " ^5.29.0" ,
1919 "@typescript-eslint/parser" : " ^5.29.0" ,
20- "@vitejs/plugin-vue" : " ^2.3.3 " ,
20+ "@vitejs/plugin-vue" : " ^3.0.1 " ,
2121 "@vue/compiler-sfc" : " ^3.2.37" ,
2222 "conventional-changelog-conventionalcommits" : " ^4.6.1" ,
2323 "eslint" : " ^8.18.0" ,
2424 "eslint-plugin-import" : " ^2.26.0" ,
2525 "lerna" : " ^3.22.1" ,
2626 "sass" : " ^1.52.3" ,
2727 "typescript" : " ^4.4.2" ,
28- "vite" : " ^3.0.2 " ,
28+ "vite" : " ^3.0.3 " ,
2929 "vue" : " ^3.2.37" ,
3030 "vue-loader" : " ^16.5.0" ,
3131 "vuetify" : " npm:@vuetify/nightly@3.0.0-next-20220710.0" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function importPlugin (): Plugin {
2525
2626 if (
2727 ( ! query && extname ( path ) === '.vue' && ! / ^ i m p o r t { r e n d e r a s _ s f c _ r e n d e r } f r o m " .* " $ / m. test ( code ) ) ||
28- ( query && 'vue' in query && query . type === 'template' )
28+ ( query && 'vue' in query && ( query . type === 'template' || ( query . type === 'script' && query . setup === 'true' ) ) )
2929 ) {
3030 const { code : imports , source } = generateImports ( code )
3131 return {
Original file line number Diff line number Diff line change 20472047 " @typescript-eslint/types" " 5.29.0"
20482048 eslint-visitor-keys "^3.3.0"
20492049
2050- " @vitejs/plugin-vue@^2.3.3 " :
2051- version "2.3.3 "
2052- resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-2.3.3. tgz#fbf80cc039b82ac21a1acb0f0478de8f61fbf600 "
2053- integrity sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw ==
2050+ " @vitejs/plugin-vue@^3.0.1 " :
2051+ version "3.0.1 "
2052+ resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.0.1. tgz#b6af8f782485374bbb5fe09edf067a845bf4caae "
2053+ integrity sha512-Ll9JgxG7ONIz/XZv3dssfoMUDu9qAnlJ+km+pBA0teYSXzwPCIzS/e1bmwNYl5dcQGs677D21amgfYAnzMl17A ==
20542054
20552055" @vue/compiler-core@3.2.37 " :
20562056 version "3.2.37"
@@ -9067,10 +9067,10 @@ vite-plugin-inspect@^0.4.3:
90679067 sirv "^2.0.2"
90689068 ufo "^0.7.11"
90699069
9070- vite@^3.0.2 :
9071- version "3.0.2 "
9072- resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.2 .tgz#2a7b4642c53ae066cf724e7e581d6c1fd24e2c32 "
9073- integrity sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw ==
9070+ vite@^3.0.3 :
9071+ version "3.0.3 "
9072+ resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.3 .tgz#c7b2ed9505a36a04be1d5d23aea4ea6fc028043f "
9073+ integrity sha512-sDIpIcl3mv1NUaSzZwiXGEy1ZoWwwC2vkxUHY6yiDacR6zf//ZFuBJrozO62gedpE43pmxnLATNR5IYUdAEkMQ ==
90749074 dependencies :
90759075 esbuild "^0.14.47"
90769076 postcss "^8.4.14"
You can’t perform that action at this time.
0 commit comments