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

No default jsDelivr CDN file set #126

Open
maor-benami opened this issue Aug 16, 2021 · 2 comments
Open

No default jsDelivr CDN file set #126

maor-benami opened this issue Aug 16, 2021 · 2 comments

Comments

@maor-benami
Copy link

This package doesn't have a default file set. You can set it via jsdelivr, browser, or main field in package.json

@RReverser
Copy link
Member

RReverser commented Aug 16, 2021

It looks like more of a jsDelivr problem, and we never documented that we support it anyway. npm and compatible CDNs recognise that index.js is the main file without any special annotations. I personally use unpkg.com and recommend it as well, e.g.:

https://unpkg.com/acorn-jsx

will work correctly.

Alternatively, you can, of course, link to index.js on jsDelivr directly too (if they allow it).

@jimaek
Copy link

jimaek commented Aug 16, 2021

You can load any file in the package https://cdn.jsdelivr.net/npm/acorn-jsx@5.3.2/
Or could also try the ESM feature of jsDelivr https://cdn.jsdelivr.net/npm/acorn-jsx/+esm

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

No branches or pull requests

3 participants