File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 3333 "homepage" : " https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme" ,
3434 "dependencies" : {
3535 "@babel/parser" : " ^7.15.0" ,
36- "@babel/types" : " ^7.15.0" ,
3736 "@types/estree" : " ^0.0.48" ,
3837 "@vue/compiler-core" : " 3.2.12" ,
3938 "@vue/compiler-dom" : " 3.2.12" ,
5251 "source-map" : " ^0.6.1"
5352 },
5453 "devDependencies" : {
54+ "@babel/types" : " ^7.15.0" ,
5555 "@types/consolidate" : " ^0.14.0" ,
5656 "@types/lru-cache" : " ^5.1.0" ,
5757 "pug" : " ^3.0.1" ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export interface SFCScriptCompileOptions {
9898 /**
9999 * Compile the template and inline the resulting render function
100100 * directly inside setup().
101- * - Only affects <script setup>
101+ * - Only affects ` <script setup>`
102102 * - This should only be used in production because it prevents the template
103103 * from being hot-reloaded separately from component state.
104104 */
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export interface SFCStyleCompileOptions {
3030 postcssOptions ?: any
3131 postcssPlugins ?: any [ ]
3232 /**
33- * @deprecated
33+ * @deprecated use `inMap` instead.
3434 */
3535 map ?: RawSourceMap
3636}
Original file line number Diff line number Diff line change 99import * as CompilerDOM from '@vue/compiler-dom'
1010import { RawSourceMap , SourceMapGenerator } from 'source-map'
1111import { TemplateCompiler } from './compileTemplate'
12- import { Statement } from '@babel/types'
1312import { parseCssVars } from './cssVars'
1413import { createCache } from './cache'
1514
@@ -41,8 +40,14 @@ export interface SFCScriptBlock extends SFCBlock {
4140 type : 'script'
4241 setup ?: string | boolean
4342 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 [ ]
4651}
4752export interface SFCStyleBlock extends SFCBlock {
4853 type : 'style'
You can’t perform that action at this time.
0 commit comments