transform-file-browser.js 733 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.transformFile = void 0;
  6. exports.transformFileAsync = transformFileAsync;
  7. exports.transformFileSync = transformFileSync;
  8. const transformFile = exports.transformFile = function transformFile(filename, opts, callback) {
  9. if (typeof opts === "function") {
  10. callback = opts;
  11. }
  12. callback(new Error("Transforming files is not supported in browsers"), null);
  13. };
  14. function transformFileSync() {
  15. throw new Error("Transforming files is not supported in browsers");
  16. }
  17. function transformFileAsync() {
  18. return Promise.reject(new Error("Transforming files is not supported in browsers"));
  19. }
  20. 0 && 0;
  21. //# sourceMappingURL=transform-file-browser.js.map