Sha256: 143df5cd821c836a209d65c4b9b2983cff7937f3d3d6b9bfa11c15683ed64510

Contents?: true

Size: 734 Bytes

Versions: 4

Compression:

Stored size: 734 Bytes

Contents

// @flow

// duplicated from transform-file so we do not have to import anything here
type TransformFile = {
  (filename: string, callback: Function): void,
  (filename: string, opts: ?Object, callback: Function): void,
};

export const transformFile: TransformFile = (function transformFile(
  filename,
  opts,
  callback,
) {
  if (typeof opts === "function") {
    callback = opts;
  }

  callback(new Error("Transforming files is not supported in browsers"), null);
}: Function);

export function transformFileSync() {
  throw new Error("Transforming files is not supported in browsers");
}

export function transformFileAsync() {
  return Promise.reject(
    new Error("Transforming files is not supported in browsers"),
  );
}

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/core/src/transform-file-browser.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/core/src/transform-file-browser.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/core/src/transform-file-browser.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/core/src/transform-file-browser.js