method SourceCompiler.prototype.compile SourceCompiler.prototype.compile(source: ISource,sourceIndex?: number,totalSources?: number,): Promise<string[]> Compiles a single source. Parameters source: ISource Source configuration optional sourceIndex: number = 0 Index of this source in the configuration (for event reporting) optional totalSources: number = 1 Total number of sources being compiled (for event reporting) Return Type Promise<string[]> Array of compiled rules Throws SourceError if compilation fails