Skip to content

Commit

Permalink
fix(babel-plugin-import-regenerator): fixed regenerator mutiple async…
Browse files Browse the repository at this point in the history
… bug
  • Loading branch information
Gcaufy committed Sep 21, 2018
1 parent 2b36c43 commit acdfda4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-plugin-import-regenerator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ let importedName;
exports = module.exports = ({types: t}) => {
return {
visitor: {
Program (path) {
importedName = '';
},
CallExpression (path, file) {
let callee = path.get('callee');
if (callee.node && callee.node.object && callee.node.property) {
Expand Down

0 comments on commit acdfda4

Please sign in to comment.