babel/packages/babel-core/src/transform-file-browser.js
2017-10-02 13:55:37 -07:00

15 lines
340 B
JavaScript

// @flow
import type { FileResult } from "./transformation";
export default function transformFile(
filename: string,
opts?: Object = {},
callback: (?Error, FileResult | null) => void,
) {
if (typeof opts === "function") {
callback = opts;
}
callback(new Error("Transforming files is not supported in browsers"), null);
}