1import MagicString from 'magic-string'
2import LRU from 'lru-cache'
3▶import { walkIdentifiers, isFunctionType } from './babelUtils'
4import { BindingMetadata, BindingTypes } from './types'
5import { SFCDescriptor, SFCScriptBlock } from './parseComponent'
· · ·
24 TSType,
25 TSTypeLiteral,
26▶ TSFunctionType,
27 ObjectProperty,
28 ArrayExpression,
· · ·
96 * normal `<script>` + `<script setup>` if both are present.
97 */
98▶export function compileScript(
99 sfc: SFCDescriptor,
100 options: SFCScriptCompileOptions = { id: '' }
· · ·
208 let emitsRuntimeDecl: Node | undefined
209 let emitsTypeDecl:
210▶ | TSFunctionType
211 | TSTypeLiteral
212 | TSInterfaceBody
· · ·
236 const scriptEndOffset = script && script.end
237
238▶ function helper(key: string): string {
239 helperImports.add(key)
240 return `_${key}`
+ 59 more matches in this file