feat: support cjs and esm extensions#1675
Merged
silviuaavram merged 1 commit intomasterfrom Feb 9, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates Downshift’s published entry points to use explicit CommonJS (.cjs) and ESM (.mjs) build artifact extensions so Node/bundlers pick the intended module format (addressing #1505).
Changes:
- Switch package entry points (
main,module,exports,react-native) to.cjs/.mjsartifact filenames. - Update misc build-import tests to reference the new artifact names.
- Bump
kcd-scriptsto v17.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| package.json | Updates package entrypoints/exports to .cjs + .mjs artifacts and bumps build tooling. |
| other/misc-tests/jest.config.js | Adds a Jest mapping rule intended to handle .mjs in misc tests. |
| other/misc-tests/tests/build.js | Updates misc build tests to import the renamed build artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bc2b14b to
192a2e0
Compare
|
🎉 This PR is included in version 9.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
What
Build files now have cjs and mjs file extensions.
Why
Fixes #1505
How
Update kcd scripts to v17.
Changes
Checklist