acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
651 stars 74 forks source link

No default jsDelivr CDN file set #126

Open maor-benami opened 3 years ago

maor-benami commented 3 years ago

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

RReverser commented 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.:

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 commented 3 years ago

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