source: imaps-frontend/node_modules/@babel/core/lib/transform-file.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.transformFile = transformFile;
7exports.transformFileAsync = transformFileAsync;
8exports.transformFileSync = transformFileSync;
9function _gensync() {
10 const data = require("gensync");
11 _gensync = function () {
12 return data;
13 };
14 return data;
15}
16var _index = require("./config/index.js");
17var _index2 = require("./transformation/index.js");
18var fs = require("./gensync-utils/fs.js");
19({});
20const transformFileRunner = _gensync()(function* (filename, opts) {
21 const options = Object.assign({}, opts, {
22 filename
23 });
24 const config = yield* (0, _index.default)(options);
25 if (config === null) return null;
26 const code = yield* fs.readFile(filename, "utf8");
27 return yield* (0, _index2.run)(config, code);
28});
29function transformFile(...args) {
30 transformFileRunner.errback(...args);
31}
32function transformFileSync(...args) {
33 return transformFileRunner.sync(...args);
34}
35function transformFileAsync(...args) {
36 return transformFileRunner.async(...args);
37}
380 && 0;
39
40//# sourceMappingURL=transform-file.js.map
Note: See TracBrowser for help on using the repository browser.