-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed as not planned
Labels
trackingAn umbrella issue for tracking big featuresAn umbrella issue for tracking big features
Description
What is edge bundling?
Instead of bundling & minifying in CI ahead of time, do it lazily in the HTTP request just before it's sent to the client, then cache it at the edge. "edge bundling" is a phrase I made up
Bun is fast enough to support this, but more infra needs to be built to make it good.
- Port esbuild's JavaScript minifier to bun's JavaScript parser
- Port esbuild's CSS parser to bun (including the minifier)
- Implement tree-shaking
- Implement code splitting
- Revise .bun format to support partially bundled code, or just get rid of it entirely.
- Implement sourcemaps
- Expose all this in a WASM build that can be used in environments like Cloudflare Workers
maxmilton, Boshen, joeykamsteeg, EdAyers, sudhakar and 1 more01101101, lawrencecchen, numso, PullJosh, bringking and 28 morekvreem, meftunca, backkem, Boshen, joeykamsteeg and 3 morebrainkim, joeykamsteeg, jasperkelder and EriecTanijaya
Metadata
Metadata
Assignees
Labels
trackingAn umbrella issue for tracking big featuresAn umbrella issue for tracking big features