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
fix(commonjs): add .cjs to default file extensions. #524
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening a PR. Before we can prosede, we'll need you to add relevant tests. That's a hard requirement for all fix and feature PRs. This also isn't a refactor - you're attempting to fix an issue by adding code.
While I very much agree that we need to add |
@lukastaegert You're right, that definitely doesn't make sense - will update. Very sorry about the issues here, TY for your review as well @shellscape. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my side
* Added .cjs and .mjs to default file extensions. * Removed accidental yarn.lock. * Added test. * Added snapshots. * Removed unneeded extension. * Moved extension check, refactored Array.indexOf() to Array.includes()
Rollup Plugin Name:
commonjs
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers: #523
Description
Adds
.cjs
to default file extensions.