Skip to content

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