versatica / awaitqueue

JavaScript utility to enqueue async tasks for Node.js and the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES6 import AwaitQueue from 'awaitqueue'; does not work

ibc opened this issue · comments

It should work given that the main module exports a class as follows:

module.exports = AwaitQueue;

However, when using browserify + babel or jest, it fails with:

awaitqueue_1.default is not a constructor

The following option is required in tsconfig.json:

"esModuleInterop": true

Yeah, not a big here.