acornjs/acorn-jsx

No default jsDelivr CDN file set

maor-benami opened this issue · 2 comments

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

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).

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