Skip to content

Implement a bundler designed for production #156

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

Closed
Jarred-Sumner opened this issue May 4, 2022 · 2 comments
Closed

Implement a bundler designed for production #156

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

Comments

@Jarred-Sumner
Copy link
Collaborator

Currently, bun's bundler is best suited to development. It prioritizes compilation speed over bundle size. I want bun's production bundler to prioritize these things:

  • bundle size
  • runtime performance
  • incremental production bundling fast enough to run in an HTTP request
  • onLoad/onResolve plugins & plugin performance. This will enable other frameworks like Vue and Svelte to easily work in Bun.
  • compilation speed
  • hot module reloading

This work has started in this branch.

The other thing I want as part of this project is a new bundling format which should support:

  • CSS files
  • image files & binary assets
  • minification
  • tree shaking
  • sourcemaps

This will be a single binary artifact which can either be run directly for bun.js (makes deploys easy) or be uploaded to a server and then extracted

@Jarred-Sumner Jarred-Sumner added the tracking An umbrella issue for tracking big features label May 4, 2022
@JakeCooper
Copy link

To add to the prod column:

  • disabling watch to prevent needless inode assignment for files that won't change

@Electroid
Copy link
Contributor

Closing as a duplicate, since we are tracking bundling here: #121

@Electroid Electroid closed this as not planned Won't fix, can't repro, duplicate, stale 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