workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

generate a compiled version of miniflare

Open threepointone opened this issue 3 years ago • 1 comments
trafficstars

We currently install miniflare as a dependency. However, it makes the install much slower, and bloats up the bundle a little bigger than it has to be. Instead, we should generate a bundled version of it (much like we already do for wrangler) and ship that. This would make installs a lot faster, and the dependency tree much smaller.

threepointone avatar Dec 02 '21 11:12 threepointone

Going to wait until open source runtime implemented https://github.com/cloudflare/wrangler2/issues/1637

cameron-robey avatar Aug 11 '22 11:08 cameron-robey

Closing this for now, as local development is undergoing changes related to the open-sourcing of the Workers runtime. We'll revisit this in the future, and consider whether this is a direction we want to go in for Miniflare v3 (especially considering how required workerd as a dependency will affect the bundle size)

penalosa avatar Feb 06 '23 16:02 penalosa