Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ESM #201

Closed
arlac77 opened this issue May 18, 2020 · 2 comments · Fixed by #1374
Closed

Provide ESM #201

arlac77 opened this issue May 18, 2020 · 2 comments · Fixed by #1374

Comments

@arlac77
Copy link

arlac77 commented May 18, 2020

As node now supports ESM natively. Can You please provide ESM directly.

By compiling ts into es2015

tsc --module es2015 --target es2015
  import { Queue, Worker } from "bullmq";
           ^^^^^
  SyntaxError: The requested module 'bullmq' does not provide an export named 'Queue'
@manast
Copy link
Contributor

manast commented May 18, 2020

How can we do that without breaking older versions of node?

@arlac77
Copy link
Author

arlac77 commented May 18, 2020

Conditional Exports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants