flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
27
VISUALIZACION/node_modules/babel-plugin-transform-async-to-generator/lib/index.js
generated
vendored
Executable file
27
VISUALIZACION/node_modules/babel-plugin-transform-async-to-generator/lib/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports.default = function () {
|
||||
return {
|
||||
inherits: require("babel-plugin-syntax-async-functions"),
|
||||
|
||||
visitor: {
|
||||
Function: function Function(path, state) {
|
||||
if (!path.node.async || path.node.generator) return;
|
||||
|
||||
(0, _babelHelperRemapAsyncToGenerator2.default)(path, state.file, {
|
||||
wrapAsync: state.addHelper("asyncToGenerator")
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var _babelHelperRemapAsyncToGenerator = require("babel-helper-remap-async-to-generator");
|
||||
|
||||
var _babelHelperRemapAsyncToGenerator2 = _interopRequireDefault(_babelHelperRemapAsyncToGenerator);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
module.exports = exports["default"];
|
||||
Loading…
Add table
Add a link
Reference in a new issue