Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support edge bundling (tracking) #121

Open
1 of 7 tasks
Jarred-Sumner opened this issue Mar 2, 2022 · 0 comments
Open
1 of 7 tasks

Support edge bundling (tracking) #121

Jarred-Sumner opened this issue Mar 2, 2022 · 0 comments
Labels
tracking An umbrella issue for tracking big features

Comments

@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented Mar 2, 2022

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
@FinnRG FinnRG added the enhancement New feature or request label Jul 9, 2022
@Electroid Electroid added tracking An umbrella issue for tracking big features and removed enhancement New feature or request labels Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking An umbrella issue for tracking big features
Projects
None yet
Development

No branches or pull requests

3 participants