Urara-Blog/node_modules/.pnpm-store/v3/files/6c/0e05ed9632cfc5e3435fecb84e8024f587ad9257c457e24410b72a1775f1bb9e056b29e5a93f343cc099060e435d293db152898c0d4882d3a22b8e232ae87f
2022-08-14 01:14:53 +08:00

27 lines
713 B
Text

export declare type TransformOptions = {
source: string;
filename?: string;
ts?: boolean;
retainLines?: boolean;
legacy?: boolean;
[key: string]: any;
};
export declare type TRANSFORM_RESULT = {
code: string;
error?: any;
};
export declare type JITIOptions = {
transform?: (opts: TransformOptions) => TRANSFORM_RESULT;
debug?: boolean;
cache?: boolean | string;
sourceMaps?: boolean;
requireCache?: boolean;
v8cache?: boolean;
interopDefault?: boolean;
esmResolve?: boolean;
cacheVersion?: string;
onError?: (error: Error) => void;
legacy?: boolean;
extensions?: string[];
transformOptions?: Omit<TransformOptions, 'source'>;
};