File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/typescript-reporter/extension/vue
test/e2e/fixtures/implementation Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ function createTypeScriptVueExtension(
112
112
} else if ( isVueTemplateCompilerV3 ( compiler ) ) {
113
113
const parsed = compiler . parse ( vueSourceText ) ;
114
114
115
- if ( parsed . descriptor && parsed . descriptor . script ) {
116
- const scriptV3 = parsed . descriptor . script ;
115
+ if ( parsed . descriptor && ( parsed . descriptor . script || parsed . descriptor . scriptSetup ) ) {
116
+ const scriptV3 = ( parsed . descriptor . script || parsed . descriptor . scriptSetup ) ! ;
117
117
118
118
// map newer version of SFCScriptBlock to the generic one
119
119
script = {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ interface SFCDescriptor {
23
23
filename : string ;
24
24
template : SFCBlock | null ;
25
25
script : SFCBlock | null ;
26
+ scriptSetup : SFCBlock | null ;
26
27
styles : SFCBlock [ ] ;
27
28
customBlocks : SFCBlock [ ] ;
28
29
}
Original file line number Diff line number Diff line change 92
92
</p>
93
93
</template>
94
94
95
- <script lang="ts">
95
+ <script setup lang="ts">
96
96
import User, { getUserName } from '@/model/User';
97
97
98
98
export default {
You can’t perform that action at this time.
0 commit comments