2019-12-14 02:22:15 +08:00
|
|
|
export { baseCompile } from './compile'
|
2019-09-21 00:16:19 +08:00
|
|
|
|
|
|
|
// Also expose lower level APIs & types
|
2019-12-11 01:53:26 +08:00
|
|
|
export {
|
2023-02-02 16:20:32 +08:00
|
|
|
type CompilerOptions,
|
|
|
|
type ParserOptions,
|
|
|
|
type TransformOptions,
|
|
|
|
type CodegenOptions,
|
|
|
|
type HoistTransform,
|
|
|
|
type BindingMetadata,
|
2020-11-13 13:12:04 +08:00
|
|
|
BindingTypes
|
2019-12-11 01:53:26 +08:00
|
|
|
} from './options'
|
2019-12-23 08:44:21 +08:00
|
|
|
export { baseParse, TextModes } from './parse'
|
2019-09-20 12:12:37 +08:00
|
|
|
export {
|
|
|
|
transform,
|
2023-02-02 16:20:32 +08:00
|
|
|
type TransformContext,
|
2020-02-08 02:56:18 +08:00
|
|
|
createTransformContext,
|
|
|
|
traverseNode,
|
2020-02-07 14:06:51 +08:00
|
|
|
createStructuralDirectiveTransform,
|
2023-02-02 16:20:32 +08:00
|
|
|
type NodeTransform,
|
|
|
|
type StructuralDirectiveTransform,
|
|
|
|
type DirectiveTransform
|
2019-09-20 12:12:37 +08:00
|
|
|
} from './transform'
|
2023-02-02 16:20:32 +08:00
|
|
|
export { generate, type CodegenContext, type CodegenResult } from './codegen'
|
2019-10-09 23:13:13 +08:00
|
|
|
export {
|
|
|
|
ErrorCodes,
|
2023-02-02 16:20:32 +08:00
|
|
|
createCompilerError,
|
|
|
|
type CoreCompilerError,
|
|
|
|
type CompilerError
|
2019-10-09 23:13:13 +08:00
|
|
|
} from './errors'
|
2020-02-07 14:06:51 +08:00
|
|
|
|
2019-09-17 02:43:29 +08:00
|
|
|
export * from './ast'
|
2019-10-11 06:02:51 +08:00
|
|
|
export * from './utils'
|
2021-08-23 02:51:16 +08:00
|
|
|
export * from './babelUtils'
|
2020-02-07 14:06:51 +08:00
|
|
|
export * from './runtimeHelpers'
|
2019-10-11 06:02:51 +08:00
|
|
|
|
2023-02-02 16:20:32 +08:00
|
|
|
export { getBaseTransformPreset, type TransformPreset } from './compile'
|
2019-10-11 06:02:51 +08:00
|
|
|
export { transformModel } from './transforms/vModel'
|
|
|
|
export { transformOn } from './transforms/vOn'
|
2020-02-05 05:47:12 +08:00
|
|
|
export { transformBind } from './transforms/vBind'
|
2020-02-07 14:06:51 +08:00
|
|
|
export { noopDirectiveTransform } from './transforms/noopDirectiveTransform'
|
2020-02-06 10:04:40 +08:00
|
|
|
export { processIf } from './transforms/vIf'
|
|
|
|
export { processFor, createForLoopParams } from './transforms/vFor'
|
2020-02-04 04:51:41 +08:00
|
|
|
export {
|
|
|
|
transformExpression,
|
2022-10-26 16:18:19 +08:00
|
|
|
processExpression,
|
|
|
|
stringifyExpression
|
2020-02-04 04:51:41 +08:00
|
|
|
} from './transforms/transformExpression'
|
2020-02-07 01:07:25 +08:00
|
|
|
export {
|
|
|
|
buildSlots,
|
2023-02-02 16:20:32 +08:00
|
|
|
type SlotFnBuilder,
|
2020-02-07 01:07:25 +08:00
|
|
|
trackVForSlotScopes,
|
|
|
|
trackSlotScopes
|
|
|
|
} from './transforms/vSlot'
|
2020-04-15 22:51:07 +08:00
|
|
|
export {
|
|
|
|
transformElement,
|
|
|
|
resolveComponentType,
|
2022-02-04 08:58:28 +08:00
|
|
|
buildProps,
|
|
|
|
buildDirectiveArgs,
|
2023-02-02 16:20:32 +08:00
|
|
|
type PropsExpression
|
2020-04-15 22:51:07 +08:00
|
|
|
} from './transforms/transformElement'
|
2020-02-06 10:04:40 +08:00
|
|
|
export { processSlotOutlet } from './transforms/transformSlotOutlet'
|
2022-05-13 08:57:43 +08:00
|
|
|
export { getConstantType } from './transforms/hoistStatic'
|
2020-03-01 11:04:42 +08:00
|
|
|
export { generateCodeFrame } from '@vue/shared'
|
2021-04-13 07:42:09 +08:00
|
|
|
|
|
|
|
// v2 compat only
|
|
|
|
export {
|
|
|
|
checkCompatEnabled,
|
|
|
|
warnDeprecation,
|
|
|
|
CompilerDeprecationTypes
|
|
|
|
} from './compat/compatConfig'
|