Use the imports helper in async-to-module-method.

This commit is contained in:
Logan Smyth
2017-09-19 11:29:49 -07:00
parent ec9754bc40
commit 11715cb7af
7 changed files with 19 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
import { coroutine as _coroutine } from "bluebird";
var _coroutine = require("bluebird").coroutine;
_coroutine(function* () {
yield foo();

View File

@@ -1,4 +1,4 @@
import { coroutine as _coroutine } from "bluebird";
var _coroutine = require("bluebird").coroutine;
class Foo {
foo() {

View File

@@ -1,4 +1,4 @@
import { coroutine as _coroutine } from "bluebird";
var _coroutine = require("bluebird").coroutine;
var foo = (() => {
var _ref = _coroutine(function* () {

View File

@@ -1,4 +1,4 @@
import { coroutine as _coroutine } from "bluebird";
var _coroutine = require("bluebird").coroutine;
var foo = (() => {
var _ref = _coroutine(function* () {

View File

@@ -1,4 +1,4 @@
import { coroutine as _coroutine } from "bluebird";
var _coroutine = require("bluebird").coroutine;
let foo = (() => {
var _ref = _coroutine(function* () {