microsoft / microsoft/FeatureManagement-JavaScript
Include conditional exports in package.json
@zhiyuanliang-ms is already working on this.
Since Aug 24, 2024.
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 6
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Description
Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref
exports is supported by Node.js 12+ ref
Note that exports will take precedence over the main field: https://nodejs.org/api/packages.html#main
The exports field can produce extra extensibility, for example, tools like webpack will know some specific fields. ref
BTW, this is how azure sdk does: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/package.json
I prefer to follow azure sdk.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.