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

bake production build tracking issue #14763

Open
5 of 20 tasks
paperclover opened this issue Oct 23, 2024 · 0 comments
Open
5 of 20 tasks

bake production build tracking issue #14763

paperclover opened this issue Oct 23, 2024 · 0 comments
Labels
bake:prod specifically for using bun kit to build to prod. consider using the `bundler` tag instead tracking An umbrella issue for tracking big features

Comments

@paperclover
Copy link
Member

paperclover commented Oct 23, 2024

Related issue for dev server #14324

I currently don't have a huge plan like I do for the dev server. Part of that is because most of the work is already done (use existing bun build code, server components work can be mostly reused). I will expand the list as I think of more tasks.

High Level

  • Static Build
    • Prototype
    • CSS Linking
    • Use multiple threads / VMs for static rendering.*
    • Params
    • Implement static routers
  • Non-static build
    • Serialized Router
    • Server runtime (likely a special property on Bun.serve)
      • Does anything need to be done with cache control headers?
    • Asset/Static file serving
    • --compile one server together

*nice to have, not a strict blocker for 1.2

For both static and non-static build

  • Bug: Runtime file should be bundled for both client/server, instead of the client using the server build of it (which does not get written to disk)
  • Bug: SC Manifests need to contain output chunk names
  • Identifier minification for SCB export names
  • separateSSRGraph: false
  • Plugins
  • Verify it works on Windows

API

  • Decide on entry file convention, currently bun.app.ts. maybe bun.config.ts or bun.bake.ts.
  • prerender design choices. mainly around the idea of cancelation. need to think about non-static builds which if every route was known at bundle time, it is effectively static.
@paperclover paperclover added bake:prod specifically for using bun kit to build to prod. consider using the `bundler` tag instead tracking An umbrella issue for tracking big features labels Oct 23, 2024
This was referenced Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bake:prod specifically for using bun kit to build to prod. consider using the `bundler` tag instead tracking An umbrella issue for tracking big features
Projects
None yet
Development

No branches or pull requests

1 participant