Sha256: 4cf4cc5a4b3179879bb4cdf50d0c44a216211014b14d8b2d4e6f4ab7058a7c61
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _config = _interopRequireDefault(require("./config")); var _transformation = require("./transformation"); var _transformSync = _interopRequireDefault(require("./transform-sync")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var transform = function transform(code, opts, callback) { if (typeof opts === "function") { opts = undefined; callback = opts; } if (callback === undefined) return (0, _transformSync.default)(code, opts); var cb = callback; process.nextTick(function () { var cfg; try { cfg = (0, _config.default)(opts); if (cfg === null) return cb(null, null); } catch (err) { return cb(err); } (0, _transformation.runAsync)(cfg, code, null, cb); }); }; exports.default = transform;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
condenser-0.0.4 | lib/condenser/processors/node_modules/@babel/core/lib/transform.js |