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 2
2
<v-card title =" Setup component" ></v-card >
3
3
</template >
4
4
5
- <script setup>
5
+ <script setup lang="ts" >
6
6
//
7
7
</script >
Original file line number Diff line number Diff line change 17
17
"@types/node" : " ^16.11.12" ,
18
18
"@typescript-eslint/eslint-plugin" : " ^5.29.0" ,
19
19
"@typescript-eslint/parser" : " ^5.29.0" ,
20
- "@vitejs/plugin-vue" : " ^2.3.3 " ,
20
+ "@vitejs/plugin-vue" : " ^3.0.1 " ,
21
21
"@vue/compiler-sfc" : " ^3.2.37" ,
22
22
"conventional-changelog-conventionalcommits" : " ^4.6.1" ,
23
23
"eslint" : " ^8.18.0" ,
24
24
"eslint-plugin-import" : " ^2.26.0" ,
25
25
"lerna" : " ^3.22.1" ,
26
26
"sass" : " ^1.52.3" ,
27
27
"typescript" : " ^4.4.2" ,
28
- "vite" : " ^3.0.2 " ,
28
+ "vite" : " ^3.0.3 " ,
29
29
"vue" : " ^3.2.37" ,
30
30
"vue-loader" : " ^16.5.0" ,
31
31
"vuetify" :
" npm:@vuetify/[email protected] " ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function importPlugin (): Plugin {
25
25
26
26
if (
27
27
( ! 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' ) ) )
29
29
) {
30
30
const { code : imports , source } = generateImports ( code )
31
31
return {
Original file line number Diff line number Diff line change 2047
2047
" @typescript-eslint/types" " 5.29.0"
2048
2048
eslint-visitor-keys "^3.3.0"
2049
2049
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 ==
2054
2054
2055
2055
2056
2056
version "3.2.37"
@@ -9067,10 +9067,10 @@ vite-plugin-inspect@^0.4.3:
9067
9067
sirv "^2.0.2"
9068
9068
ufo "^0.7.11"
9069
9069
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 ==
9074
9074
dependencies :
9075
9075
esbuild "^0.14.47"
9076
9076
postcss "^8.4.14"
You can’t perform that action at this time.
0 commit comments