We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref
main
module
exports is supported by Node.js 12+ ref
exports
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.
The text was updated successfully, but these errors were encountered:
zhiyuanliang-ms
No branches or pull requests
Currently, we have
main
andmodule
in the package.json which specify the entry point for cjs and esm. refexports
is supported by Node.js 12+ refNote that
exports
will take precedence over themain
field: https://nodejs.org/api/packages.html#mainThe
exports
field can produce extra extensibility, for example, tools like webpack will know some specific fields. refBTW, 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.
The text was updated successfully, but these errors were encountered: