I have been thinking about more efficient worker development and hosting, seems to me that Cloudflare has the bits in place to support importScripts
in workers. I understands the initial reason for not supporting importScripts
, but that was before Cloudflare supported hosting static content. Seems to me that from a security and trust perspective, there is not much difference between bundling with wrangler
and referencing static assets pushed with Warngler. Why not allow using importScripts
so long as the path or even URL is to one to one of my workers? This is would be a bit Deno like (I just can’t say Denovian given that Deno is supposed to be more advanced than Node This could actually save Cloudflare on storage since there would only be one copy of the script source even if I used it in multiple workers.