Comments (5)
I don't expect this to change, it's a known limitation of the default files. You have several options, however:
- Use the esm mode if it works correctly with your package (this enables bundling, which may change behavior in some specific cases, but usually it's okay and results in faster load times): https://cdn.jsdelivr.net/npm/@pyscript/core/+esm
- Reference the file directly: https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/index.js
- Use the
jsdelivr
field, as you already did
from jsdelivr.
P.S. +esm
breaks in all possible ways and we're creating our own optimized dist folder that should never need extra changes on top ... but we got it solved with jsdelivr
and nothing indeed breaks with that π
from jsdelivr.
FYI we're trying to see if an intentionally broken artifact could fix the current state but I am worried if you fix this bug instead such artifact will suddenly break too ... if you think you are going to fix this please let me know but if you think that's just fine as it is then we should be good if the jsdelivr
field in package.json
is granted to have higher priority than others, thank you.
from jsdelivr.
P.S. I can confirm the artifact works via import('https://cdn.jsdelivr.net/npm/@pyscript/core@latest')
from jsdelivr.
it's a known limitation of the default files
unpkg simply redirects to the entry point which works as expected so this seems to be more a choice (avoid redirect) than a limitation but I am OK with this answer if it means we can trust current jsdelivr
to point at a non existent path that replicates the actual module name so we're good and you can close this, thank you!
from jsdelivr.
Related Issues (20)
- False positives issue in jsDelivr purge API HOT 1
- Increase package size limit for dns-blocklists HOT 5
- https://esm.run/hyop/single_hyop - Failed to bundle using Rollup v2.79.1. HOT 3
- ε ³δΊ**icpε€ζ‘ HOT 2
- Syntax Error with @netlify/blobs HOT 1
- ESM Module for [email protected] loading in debug mode HOT 3
- Support SourceForge / GitLab HOT 4
- Many esm.run URLs are broken since yesterday HOT 1
- Increase package size limit for hadith-api
- Failed to bundle @ckeditor/ckeditor5-source-editing using Rollup v2.79.1: failed to resolve an internal import.
- Failed to bundle @smithy/hash-blob-browser using Rollup v2.79.1
- JSDelivr can't find `.wasm` file (but the esm.sh CDN works fine)
- Angular core 17.3.3 esm bundle
- esm.run fails to bundle `pixi-filters` but esm.sh works HOT 2
- Increase package size limit for Articulate360ForKhaoNiewClassroom HOT 2
- cdn.jsdelivr.net has SSL issue. HOT 252
- 421 Misdirected Request - errors HOT 2
- SSL Issue on your every link HOT 6
- Purging API reverts the resources to its past version HOT 4
- File newly added to GH repo will not cache, displays "Package size exceeded" error instead HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdelivr.