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

Add a browser entry point in package.json #1044

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasongrout
Copy link
Member

By default, if we want to use ipyleaflet by itself in the browser (like voila, etc.), we want to serve up the AMD module. This points the default browser import to the AMD module. jsdelivr recognizes this, and we'll see if unpkg recognizes it too.

By default, if we want to use ipyleaflet by itself in the browser (like voila, etc.), we want to serve up the AMD module. This points the default browser import to the AMD module. jsdelivr recognizes this, and we'll see if unpkg recognizes it too.
@jasongrout jasongrout marked this pull request as draft August 26, 2022 23:51
@jasongrout
Copy link
Member Author

Converting to draft since it's not clear the full ramification of this. For example, will webpack start importing the dist/index.js? It may be better to do the more conservative:

"unpkg": "dist/index.js",
"jsdelivr": "dist/index.js"

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 this pull request may close these issues.

1 participant