-
Notifications
You must be signed in to change notification settings - Fork 22
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
Export CommonJS module #31
Comments
@wata727 Do you mean changing |
I think that the least impact from the current release is to add a new target. We plan to use moduleNameMapper to replace it during testing. See https://jestjs.io/docs/en/configuration.html#modulenamemapper-object-string-string {
"moduleNameMapper": {
"classcat": "classcat/dist/classcat.umd.js"
}
} |
@wata727 That's a good idea. Would you like to send me a PR? Otherwise, I can get to it later today. |
Sure! I'll try it. |
@jorgebucaran It worked well. Thank you! |
Congratulations on the v4 release 🎉
Btw, our Jest tests are broken with the classcat v4 😢
I guess that's probably because the main target is now an ES module. But Jest doesn't support ES modules natively. See jestjs/jest#4842
My team thinks it is not a good idea to introduce Babel just because of this problem... Could you also support CommonJS style modules? Thank you.
The text was updated successfully, but these errors were encountered: