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

unpkg package.json entry point #489

Closed
peterpeterparker opened this issue Sep 6, 2021 · 2 comments · Fixed by #642
Closed

unpkg package.json entry point #489

peterpeterparker opened this issue Sep 6, 2021 · 2 comments · Fixed by #642

Comments

@peterpeterparker
Copy link
Member

Is your feature request related to a problem? Please describe.

The agent-js libraries are available in the Unpkg CDN but, point per default to the CJS entry point. Because it's a CDN, I would have expected the esm output as default entry point.

Describe the solution you'd like

Add an unpkg entry point to the package.json that point to the esm bundles.

@krpeacock
Copy link
Contributor

@peterpeterparker can you link to the unpkg docs for entry points?

@peterpeterparker
Copy link
Member Author

If you omit the file path (i.e. use a “bare” URL), unpkg will serve the file specified by the unpkg field in package.json, or fall back to main.

Source: https://unpkg.com/

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

Successfully merging a pull request may close this issue.

2 participants