No default jsDelivr CDN file set
maor-benami opened this issue · 2 comments
maor-benami commented
This package doesn't have a default file set. You can set it via jsdelivr
, browser
, or main
field in package.json
RReverser commented
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.:
will work correctly.
Alternatively, you can, of course, link to index.js
on jsDelivr directly too (if they allow it).
jimaek commented
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