-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
From looking at the Rust API it would be something like this?
interface InstrumentationConfig {
// Some instrumentation config
}
function create(...configs: InstrumentationConfig[]): InstrumentationMatcher;
interface InstrumentationMatcher {
// If this returns undefined, we know there's no transforming required for this specific file
getTransformer(moduleName: string, moduleVersion: string, file_path: string): Transformer | undefined;
}
interface Transformer {
transform(source: string): string;
transformWithSourcemap(source: string, sourcemap: string): [string, string];
}Metadata
Metadata
Assignees
Labels
No labels