switch from unpkg to jsdelivr #1244
Closed
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.
This replaces unpkg.com with jsdelivr.com, which is actively maintained and seems somewhat more robust (I've been experiencing a lot of issues with unpkg recently and I'm apparently not alone).
At least in local testing, jsDelivr also seems faster. However:
...doesn't work, because it should be
./components/index.js
. Personally I'm not too concerned about this — packages should contain valid imports.svelte
but notsvelte/legacy
, for example — it doesn't appear to handlepkg.exports
correctly. Appending/+esm
to pathnames results in a 200 response, but not one we can use (it bundles stuff in a way that would break things).