vue3-yuanma/packages/compiler-core/src/index.ts

68 lines
1.7 KiB
TypeScript
Raw Normal View History

export { baseCompile } from './compile'
// Also expose lower level APIs & types
export {
CompilerOptions,
ParserOptions,
TransformOptions,
CodegenOptions,
2020-07-11 10:12:25 +08:00
HoistTransform,
2020-11-13 13:12:04 +08:00
BindingMetadata,
BindingTypes
} from './options'
export { baseParse, TextModes } from './parse'
2019-09-20 12:12:37 +08:00
export {
transform,
2019-09-22 03:47:26 +08:00
TransformContext,
createTransformContext,
traverseNode,
2020-02-07 14:06:51 +08:00
createStructuralDirectiveTransform,
NodeTransform,
StructuralDirectiveTransform,
DirectiveTransform
2019-09-20 12:12:37 +08:00
} from './transform'
export { generate, CodegenContext, CodegenResult } from './codegen'
export {
ErrorCodes,
CoreCompilerError,
CompilerError,
createCompilerError
} from './errors'
2020-02-07 14:06:51 +08:00
export * from './ast'
2019-10-11 06:02:51 +08:00
export * from './utils'
export * from './babelUtils'
2020-02-07 14:06:51 +08:00
export * from './runtimeHelpers'
2019-10-11 06:02:51 +08:00
2020-02-07 14:06:51 +08:00
export { getBaseTransformPreset, TransformPreset } from './compile'
2019-10-11 06:02:51 +08:00
export { transformModel } from './transforms/vModel'
export { transformOn } from './transforms/vOn'
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,
processExpression
} from './transforms/transformExpression'
2020-02-07 01:07:25 +08:00
export {
buildSlots,
SlotFnBuilder,
trackVForSlotScopes,
trackSlotScopes
} from './transforms/vSlot'
2020-04-15 22:51:07 +08:00
export {
transformElement,
resolveComponentType,
buildProps
} from './transforms/transformElement'
2020-02-06 10:04:40 +08:00
export { processSlotOutlet } from './transforms/transformSlotOutlet'
export { generateCodeFrame } from '@vue/shared'
2021-04-13 07:42:09 +08:00
// v2 compat only
export {
checkCompatEnabled,
warnDeprecation,
CompilerDeprecationTypes
} from './compat/compatConfig'