Use the imports helper in async-to-module-method.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var _coroutine = require("bluebird").coroutine;
|
||||
|
||||
_coroutine(function* () {
|
||||
yield foo();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var _coroutine = require("bluebird").coroutine;
|
||||
|
||||
class Foo {
|
||||
foo() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var _coroutine = require("bluebird").coroutine;
|
||||
|
||||
var foo = (() => {
|
||||
var _ref = _coroutine(function* () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var _coroutine = require("bluebird").coroutine;
|
||||
|
||||
var foo = (() => {
|
||||
var _ref = _coroutine(function* () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var _coroutine = require("bluebird").coroutine;
|
||||
|
||||
let foo = (() => {
|
||||
var _ref = _coroutine(function* () {
|
||||
|
||||
Reference in New Issue
Block a user