@modern-js/module-tools
Version:
Simple, powerful, high-performance modern npm package development solution.
8 lines (7 loc) • 388 B
TypeScript
import type { CacheValue, ITransformContext } from '../../types';
import { SourcemapContext } from './sourcemap';
export declare class TransformContext extends SourcemapContext implements ITransformContext {
private cachedTransformResult;
addTransformResult(pluginId: number, result: CacheValue): void;
getValidCache(pluginId: number, code: string): CacheValue | undefined;
}