Skip to content

Support edge bundling (tracking) #121

@Jarred-Sumner

Description

@Jarred-Sumner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    trackingAn umbrella issue for tracking big features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions