UNPKG

692 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.transformFile = void 0;
7exports.transformFileAsync = transformFileAsync;
8exports.transformFileSync = transformFileSync;
9
10const transformFile = function transformFile(filename, opts, callback) {
11 if (typeof opts === "function") {
12 callback = opts;
13 }
14
15 callback(new Error("Transforming files is not supported in browsers"), null);
16};
17
18exports.transformFile = transformFile;
19
20function transformFileSync() {
21 throw new Error("Transforming files is not supported in browsers");
22}
23
24function transformFileAsync() {
25 return Promise.reject(new Error("Transforming files is not supported in browsers"));
26}
\No newline at end of file