vue3-yuanma/packages/compiler-sfc/src/index.ts
2020-07-10 22:12:25 -04:00

34 lines
813 B
TypeScript

// API
export { parse } from './parse'
export { compileTemplate } from './compileTemplate'
export { compileStyle, compileStyleAsync } from './compileStyle'
export { compileScript, analyzeScriptBindings } from './compileScript'
export { rewriteDefault } from './rewriteDefault'
// Types
export {
SFCParseOptions,
SFCDescriptor,
SFCBlock,
SFCTemplateBlock,
SFCScriptBlock,
SFCStyleBlock
} from './parse'
export {
TemplateCompiler,
SFCTemplateCompileOptions,
SFCTemplateCompileResults
} from './compileTemplate'
export {
SFCStyleCompileOptions,
SFCAsyncStyleCompileOptions,
SFCStyleCompileResults
} from './compileStyle'
export { SFCScriptCompileOptions } from './compileScript'
export {
CompilerOptions,
CompilerError,
BindingMetadata,
generateCodeFrame
} from '@vue/compiler-core'