Properties
Optional customTransformers
customTransformers: TransformerFactory<SourceFile>[]
Optional emitHeader
emitHeader: boolean
Optional getModuleNamespace
get
ModuleNamespace: (name: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo) => string
Type declaration
-
- (name: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo): string
-
Parameters
-
name: string
-
Optional module: ResolvedModuleFull
-
Returns string
Optional getModulePathCode
get
ModulePathCode: (importPath: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo, dirname?: string) => string
Type declaration
-
- (importPath: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo, dirname?: string): string
-
Parameters
-
importPath: string
-
Optional module: ResolvedModuleFull
-
-
Optional dirname: string
Returns string
Optional getNamespace
getNamespace: (filePath: string) => string
Type declaration
-
- (filePath: string): string
-
Parameters
Returns string
Optional helperNamespace
helperNamespace: string
Optional modules
modules: {}
Optional namespace
namespace: string
Optional plugins
plugins: { emit: Function }[]
Optional showDiagnostics
showDiagnostics: boolean
Optional source
source: string
自定义语法转换,在
emit
之前执行