Download node_modules/@babel/core/lib/transform-file.js from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40babel/core/lib/transform-file.js
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@babel/core/lib/transform-file.js
-
curl -L -o transform-file.js https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40babel/core/lib/transform-file.js
1.11 kB
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.transformFile = transformFile; | |
| exports.transformFileAsync = transformFileAsync; | |
| exports.transformFileSync = transformFileSync; | |
| function _gensync() { | |
| const data = require("gensync"); | |
| _gensync = function () { | |
| return data; | |
| }; | |
| return data; | |
| } | |
| var _index = require("./config/index.js"); | |
| var _index2 = require("./transformation/index.js"); | |
| var fs = require("./gensync-utils/fs.js"); | |
| ({}); | |
| const transformFileRunner = _gensync()(function* (filename, opts) { | |
| const options = Object.assign({}, opts, { | |
| filename | |
| }); | |
| const config = yield* (0, _index.default)(options); | |
| if (config === null) return null; | |
| const code = yield* fs.readFile(filename, "utf8"); | |
| return yield* (0, _index2.run)(config, code); | |
| }); | |
| function transformFile(...args) { | |
| transformFileRunner.errback(...args); | |
| } | |
| function transformFileSync(...args) { | |
| return transformFileRunner.sync(...args); | |
| } | |
| function transformFileAsync(...args) { | |
| return transformFileRunner.async(...args); | |
| } | |
| 0 && 0; | |
| //# sourceMappingURL=transform-file.js.map | |