Open maor-benami opened 3 years ago
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).
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
This package doesn't have a default file set. You can set it via
jsdelivr
,browser
, ormain
field inpackage.json