我有使用gulp transpile
命令创建的javascript文件。我想获得原始的javascript文件。我怎样才能获得原始的js文件?是否有任何javascript模块或gulp命令来反转此命令?
由于
这是已编译的js文件的一部分:
....
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _Object$assign = require('babel-runtime/core-js/object/assign')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
Object.defineProperty(exports, '__esModule', {
value: true
});
var _bluebird = require('bluebird');
var _bluebird2 = _interopRequireDefault(_bluebird);
var _logger = require('../logger');
var _logger2 = _interopRequireDefault(_logger);
var _jimp = require('jimp');
var _jimp2 = _interopRequireDefault(_jimp);
var gulCommands = {},
commands = {},
helpers = {},
extensions = {},
crawlerBoostrap = {};
gulCommands.findEditTextViews = function callee$0$0() {
var context, params, elements;
return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context = '';
params = {
"strategy": "xpath",
"selector": "//android.widget.EditText",
context: context,
multiple: true
};
context$1$0.next = 4;
return _regeneratorRuntime.awrap(crawlerBoostrap.sendAction('find', params));
case 6:
case 'end':
return context$1$0.stop();
}
}, null, this);
};
....