interface ITransformSeries extends IModule, TransformOutput {
type: "html" | "css" | "js";
baseConfig: PlainObject;
outputConfig: PlainObject; // Same as baseConfig when using an inline transformer
sourceMap: SourceMap; // Primary sourceMap
code: string;
metadata: PlainObject; // Custom request values and modifiable per transformer
productionRelease: boolean;
supplementChunks: ChunkData[];
imported: boolean; // ESM detected
createSourceMap(code: string): SourceMap; // Use "nextMap" method for sourceMap (additional sourceMaps)
/* ESM */
getMainFile?(code?: string, imports?: StringMap): SourceInput<string> | undefined;
getSourceFiles?(imports?: StringMap): SourceInput<[string, string?, string?][]> | undefined;
/* Return values */
out: {
sourceFiles?: string[]; // ESM (e.g. files to watch)
ignoreCache?: boolean;
messageAppend?: string;
logAppend?: LogStatus[];
logQueued?: LogStatus[];
};
version: string; // Requested version
packageName: string;
packageVersion: string; // Context version
/* Module */
host: IFileManager;
username: string;
}