Skip to content

Conversation

@Colin3191
Copy link

Summary

#1128
Add explicit main and module fields to support:

  1. Webpack4 and other legacy bundlers (via main)
  2. Modern ES modules consumers (via module)
  3. Maintain backward compatibility with exports field

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Colin3191 Colin3191 changed the title feat(package.json): add main/module fields for better compatibility feat(create-rslib): add main/module fields for better compatibility Jul 25, 2025
@Colin3191 Colin3191 closed this Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants