File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 33
33
"homepage" : " https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme" ,
34
34
"dependencies" : {
35
35
"@babel/parser" : " ^7.15.0" ,
36
- "@babel/types" : " ^7.15.0" ,
37
36
"@types/estree" : " ^0.0.48" ,
38
37
"@vue/compiler-core" : " 3.2.12" ,
39
38
"@vue/compiler-dom" : " 3.2.12" ,
52
51
"source-map" : " ^0.6.1"
53
52
},
54
53
"devDependencies" : {
54
+ "@babel/types" : " ^7.15.0" ,
55
55
"@types/consolidate" : " ^0.14.0" ,
56
56
"@types/lru-cache" : " ^5.1.0" ,
57
57
"pug" : " ^3.0.1" ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export interface SFCScriptCompileOptions {
98
98
/**
99
99
* Compile the template and inline the resulting render function
100
100
* directly inside setup().
101
- * - Only affects <script setup>
101
+ * - Only affects ` <script setup>`
102
102
* - This should only be used in production because it prevents the template
103
103
* from being hot-reloaded separately from component state.
104
104
*/
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export interface SFCStyleCompileOptions {
30
30
postcssOptions ?: any
31
31
postcssPlugins ?: any [ ]
32
32
/**
33
- * @deprecated
33
+ * @deprecated use `inMap` instead.
34
34
*/
35
35
map ?: RawSourceMap
36
36
}
Original file line number Diff line number Diff line change 9
9
import * as CompilerDOM from '@vue/compiler-dom'
10
10
import { RawSourceMap , SourceMapGenerator } from 'source-map'
11
11
import { TemplateCompiler } from './compileTemplate'
12
- import { Statement } from '@babel/types'
13
12
import { parseCssVars } from './cssVars'
14
13
import { createCache } from './cache'
15
14
@@ -41,8 +40,14 @@ export interface SFCScriptBlock extends SFCBlock {
41
40
type : 'script'
42
41
setup ?: string | boolean
43
42
bindings ?: BindingMetadata
44
- scriptAst ?: Statement [ ]
45
- scriptSetupAst ?: Statement [ ]
43
+ /**
44
+ * import('\@babel/types').Statement
45
+ */
46
+ scriptAst ?: any [ ]
47
+ /**
48
+ * import('\@babel/types').Statement
49
+ */
50
+ scriptSetupAst ?: any [ ]
46
51
}
47
52
export interface SFCStyleBlock extends SFCBlock {
48
53
type : 'style'
You can’t perform that action at this time.
0 commit comments