Ejdjdososs/fable-ai
0
1/* c8 ignore start */2 3// duplicated from transform-file so we do not have to import anything here4type TransformFile = {5 (filename: string, callback: (error: Error, file: null) => void): void;6 (7 filename: string,8 opts: any,9 callback: (error: Error, file: null) => void,10 ): void;11};12 13export const transformFile: TransformFile = function transformFile(14 filename,15 opts,16 callback?: (error: Error, file: null) => void,17) {18 if (typeof opts === "function") {19 callback = opts;20 }21 22 callback(new Error("Transforming files is not supported in browsers"), null);23};24 25export function transformFileSync(): never {26 throw new Error("Transforming files is not supported in browsers");27}28 29export function transformFileAsync() {30 return Promise.reject(31 new Error("Transforming files is not supported in browsers"),32 );33}34 