We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
When trying to use this lib with Jest, it fails because you are using ESM syntax (import [...] from '[...]')
import [...] from '[...]'
Would you consider exporting it in a fashion, that supports both CommonJS and ESM?
An article about the problem and how it should be done: https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html
The text was updated successfully, but these errors were encountered:
No plans to do that. The problem is your Jest config.
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Sorry, something went wrong.
No branches or pull requests
Hello,
When trying to use this lib with Jest, it fails because you are using ESM syntax (
import [...] from '[...]'
)Would you consider exporting it in a fashion, that supports both CommonJS and ESM?
An article about the problem and how it should be done:
https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html
The text was updated successfully, but these errors were encountered: