Sorry, I should’ve tested this with ky
first.
It seems jsdelivr’s version is broken, so you’ll have to use a different cdn such as cdnjs. ky
also provides the main code as a default export. That means you’ll have to access ky using the default property, like so:
const { default: ky } = await import('https://cdnjs.cloudflare.com/ajax/libs/ky/0.27.0/index.min.js');