Conversation
Owner
|
No concern switching to something like esm, but just want to gut check: is using a cdn valuable enough to keep one or should we just build the arc.js into the bundle and load it that way? |
Collaborator
Author
now that both browsers and node support ESM natively, my take is that the maintenance overhead outweighs the benefit. using a CDN like this makes the demo 'plug n play' and points at the exact same code folks would be installing themselves via caveat: esm.sh is doing a little magic behind the scenes to flatten things out into a single file. swapping in https://unpkg.com/arc@1 would load exactly what is published on npm. |
springmeyer
approved these changes
Apr 14, 2026
Owner
springmeyer
left a comment
There was a problem hiding this comment.
Sound good, thanks for the explanation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
i'm not sure why, but https://cdn.skypack.dev/arc@1 still doesn't resolve.
all these work 🤷
https://cdn.skypack.dev/arc
https://cdn.skypack.dev/arc@1.0.0
https://cdn.skypack.dev/arc@latest
this PR swaps in esm.sh and importmap syntax instead.
ref: skypackjs/skypack-cdn#365