Workaround to import third-party libs on Workers Scripts?
I'm trying to build a full-stack app using Hono + ReactJS with Cloudflare Workers for Platforms. My pipeline now involves generating the components, sending these components to Cloudflare Containers, in Containers, I'm compiling React with Vite, and creating the Worker Script. I made a simple API that returns some hard-coded products with IDs and prices. Then I return these scripts, and upload them to Workers for Platforms using
formData.append
formData.append
It is all working and is actually fetching data
But I would like to extend this back-end to use Hono or create more complex API logic using any other third-party library. How can I do it? Am I thinking about it in the wrong way? How could I use Workers for Platforms to create a more complex back-end logic?
I thought about bundling Hono or the lib. I needed as a new script with a new formData append, but it sounds awkward to me