( filename, opts, callback?: (error: Error, file: null) => void, )
| 11 | }; |
| 12 | |
| 13 | export 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 | |
| 25 | export function transformFileSync(): never { |
| 26 | throw new Error("Transforming files is not supported in browsers"); |
nothing calls this directly
no outgoing calls
no test coverage detected