- Issue created by @brianperry
- Merge request !77Target es2020 to transpile without class properties syntax β (Merged) created by brianperry
- Status changed to Needs review
9 months ago 10:23pm 2 March 2024 - πΊπΈUnited States brianperry
It actually looks like jsdelivr / esm.run is smart enough to handle this today.
https://esm.run/@drupal-api-client/json-api-client
Codepen:
https://codepen.io/brianperry/pen/gOyboza
Still don't see how targeting es2020 would hurt. Would be nice to support unpkg as well.
- Status changed to RTBC
9 months ago 12:42am 5 March 2024 - Status changed to Fixed
8 months ago 3:11pm 14 March 2024 - πΊπΈUnited States brianperry
The most recent release did in fact resolve the error when using json-api-client as a module on unpkg:
https://unpkg.com/@drupal-api-client/json-api-client@0.7.2/dist/index.mjs?module
But I still can't seem to use it in a codepen:
https://codepen.io/brianperry/pen/BaELdOx?editors=1111
I think we can mark this as fixed though - we have one functional CDN example we can suggest. We can open an issue specific to unpkg if there is demand.
Automatically closed - issue fixed for 2 weeks with no activity.