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 an ESM build #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add an ESM build #93

wants to merge 2 commits into from

Conversation

jcoyne
Copy link

@jcoyne jcoyne commented Mar 9, 2023

This builds on #92 and uses rollup to create an IIFE and an ESM build of this package. This allows leaflet-iiif to be used via:

<script type="module">import "https://cdnserver.com/leaflet-iiif"</script>

and it's dependencies can be provided via an importmap. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap

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