Is it possible to upload a worker script (w/ ESM syntax) using the API?

According to the API docs, uploaded scripts have to be in service worker syntax – and I can confirm this: scripts in ESM syntax can be deployed via the browser editor but not via the API.

Is this going to be fixed? Is there a way to work around this?

thanks!
Was this page helpful?