"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme",
"dependencies": {
"@babel/parser": "^7.15.0",
- "@babel/types": "^7.15.0",
"@types/estree": "^0.0.48",
"@vue/compiler-core": "3.2.12",
"@vue/compiler-dom": "3.2.12",
"source-map": "^0.6.1"
},
"devDependencies": {
+ "@babel/types": "^7.15.0",
"@types/consolidate": "^0.14.0",
"@types/lru-cache": "^5.1.0",
"pug": "^3.0.1",
/**
* Compile the template and inline the resulting render function
* directly inside setup().
- * - Only affects <script setup>
+ * - Only affects `<script setup>`
* - This should only be used in production because it prevents the template
* from being hot-reloaded separately from component state.
*/
postcssOptions?: any
postcssPlugins?: any[]
/**
- * @deprecated
+ * @deprecated use `inMap` instead.
*/
map?: RawSourceMap
}
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'
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'