This module can't be used in ESM because it only exports a default property but default-import in Node would import the entire module.exports.
I see several solutions here:
- As what Docusaurus did, add a
module.exports = combinePromises. Seems hacky, but works.
- Add a named export
combinePromises.
- Publish as dual-package.
- In the next major, migrate to ESM.
This module can't be used in ESM because it only exports a
defaultproperty but default-import in Node would import the entiremodule.exports.I see several solutions here:
module.exports = combinePromises. Seems hacky, but works.combinePromises.