class SourceCompiler

Compiles an individual source according to its configuration. Supports tracing and diagnostics for observability.

Constructors

new
SourceCompiler(options?: SourceCompilerOptions)

Creates a new SourceCompiler with options

new
SourceCompiler(
logger?: ILogger,
eventEmitter?: CompilerEventEmitter,
)

Creates a new SourceCompiler with legacy parameters

new
SourceCompiler(
pipelineOrOptions?: TransformationPipeline | SourceCompilerOptions,
logger?: ILogger,
eventEmitter?: CompilerEventEmitter,
)

Properties

Methods

compile(
source: ISource,
sourceIndex?: number,
totalSources?: number,
): Promise<string[]>

Compiles a single source.