@babel/plugin-transform-regenerator

    1. var _marked = [a].map(regeneratorRuntime.mark);
    2. function a() {
    3. function a$(_context) {
    4. while (1) {
    5. switch ((_context.prev = _context.next)) {
    6. _context.next = 2;
    7. return 1;
    8. case 2:
    9. case "end":
    10. }
    11. },
    12. _marked[0],
    13. this
    14. );
    15. }
    1. {
    2. "plugins": ["@babel/plugin-transform-regenerator"]
    1. babel --plugins @babel/plugin-transform-regenerator script.js