Skip to content
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

RFC: Support exports field of package.json #17

Open
fastner opened this issue Jun 2, 2020 · 1 comment
Open

RFC: Support exports field of package.json #17

fastner opened this issue Jun 2, 2020 · 1 comment

Comments

@fastner
Copy link
Member

fastner commented Jun 2, 2020

With support of ES modules in Node.js there is a new field exports that defines entry points for different engines (e.g. browser or node) and package formats (e.g. commonjs or ES modules):

https://nodejs.org/api/esm.html#esm_package_entry_points

Make them work in parallel to module, unpkg and types.

@swernerx
Copy link
Member

Could be a nice add-on indeed. I see these fields more and more in real life.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants