56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
// API
|
|
export { parse } from './parse'
|
|
export { compileTemplate } from './compileTemplate'
|
|
export { compileStyle, compileStyleAsync } from './compileStyle'
|
|
export { compileScript } from './compileScript'
|
|
export { rewriteDefault } from './rewriteDefault'
|
|
export {
|
|
shouldTransform as shouldTransformRef,
|
|
transform as transformRef,
|
|
transformAST as transformRefAST
|
|
} from '@vue/reactivity-transform'
|
|
|
|
// Utilities
|
|
export { parse as babelParse } from '@babel/parser'
|
|
import MagicString from 'magic-string'
|
|
export { MagicString }
|
|
// technically internal but we want it in @vue/repl, cast it as any to avoid
|
|
// relying on estree types
|
|
import { walk as _walk } from 'estree-walker'
|
|
export const walk = _walk as any
|
|
export {
|
|
generateCodeFrame,
|
|
walkIdentifiers,
|
|
extractIdentifiers,
|
|
isInDestructureAssignment,
|
|
isStaticProperty
|
|
} from '@vue/compiler-core'
|
|
|
|
// Types
|
|
export {
|
|
SFCParseOptions,
|
|
SFCParseResult,
|
|
SFCDescriptor,
|
|
SFCBlock,
|
|
SFCTemplateBlock,
|
|
SFCScriptBlock,
|
|
SFCStyleBlock
|
|
} from './parse'
|
|
export {
|
|
TemplateCompiler,
|
|
SFCTemplateCompileOptions,
|
|
SFCTemplateCompileResults
|
|
} from './compileTemplate'
|
|
export {
|
|
SFCStyleCompileOptions,
|
|
SFCAsyncStyleCompileOptions,
|
|
SFCStyleCompileResults
|
|
} from './compileStyle'
|
|
export { SFCScriptCompileOptions } from './compileScript'
|
|
export { AssetURLOptions, AssetURLTagConfig } from './templateTransformAssetUrl'
|
|
export {
|
|
CompilerOptions,
|
|
CompilerError,
|
|
BindingMetadata
|
|
} from '@vue/compiler-core'
|