|
|
@@ -9,7 +9,6 @@ import {
|
|
|
import * as CompilerDOM from '@vue/compiler-dom'
|
|
|
import { RawSourceMap, SourceMapGenerator } from 'source-map'
|
|
|
import { TemplateCompiler } from './compileTemplate'
|
|
|
-import { Statement } from '@babel/types'
|
|
|
import { parseCssVars } from './cssVars'
|
|
|
import { createCache } from './cache'
|
|
|
|
|
|
@@ -41,8 +40,14 @@ export interface SFCScriptBlock extends SFCBlock {
|
|
|
type: 'script'
|
|
|
setup?: string | boolean
|
|
|
bindings?: BindingMetadata
|
|
|
- scriptAst?: Statement[]
|
|
|
- scriptSetupAst?: Statement[]
|
|
|
+ /**
|
|
|
+ * import('\@babel/types').Statement
|
|
|
+ */
|
|
|
+ scriptAst?: any[]
|
|
|
+ /**
|
|
|
+ * import('\@babel/types').Statement
|
|
|
+ */
|
|
|
+ scriptSetupAst?: any[]
|
|
|
}
|
|
|
export interface SFCStyleBlock extends SFCBlock {
|
|
|
type: 'style'
|