Add an option for custom runtime (#3612)

This commit is contained in:
Dan Abramov
2016-08-31 18:59:43 +01:00
committed by Henry Zhu
parent 288e956699
commit 4ac0df00f1
6 changed files with 58 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
import _regeneratorRuntime from "foo/regenerator";
import _Symbol from "foo/core-js/symbol";
var _marked = [giveWord].map(_regeneratorRuntime.mark);
import foo, * as bar from "someModule";
export const myWord = _Symbol("abc");
export function giveWord() {
return _regeneratorRuntime.wrap(function giveWord$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return myWord;
case 2:
case "end":
return _context.stop();
}
}, _marked[0], this);
}
foo;
bar;