ES6 import AwaitQueue from 'awaitqueue'; does not work
ibc opened this issue · comments
Iñaki Baz Castillo commented
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
Iñaki Baz Castillo commented
José Luis Millán commented
The following option is required in tsconfig.json
:
"esModuleInterop": true
Iñaki Baz Castillo commented
Yeah, not a big here.