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

Switch entirely to bun for development #294

Open
2 of 4 tasks
lgarron opened this issue Sep 17, 2023 · 0 comments
Open
2 of 4 tasks

Switch entirely to bun for development #294

lgarron opened this issue Sep 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lgarron
Copy link
Member

lgarron commented Sep 17, 2023

bun has a lot of advantages for development:

  • It can run TypeScript directly, allowing our scripts to be type-checked.
  • It can run a lot of web-native APIs (e.g. web workers).
  • It's faster than node to start up for scripts.
  • It's faster than npm at installing dependencies (although npm is a lot better than it used to be).
  • It has a bundler with an esbuild-inspired API, which could remove the need for a separate bundler.
  • Much better APIs for e.g. process exec and testing.

Issues blocking complete adoption for cubing.js:

We'll always want to test the build against node, but this can be one fairly simple test among all other tests.

@lgarron lgarron added the enhancement New feature or request label Sep 17, 2023
lgarron added a commit that referenced this issue Sep 17, 2023
We're not quite ready to switch to `bun` for the entire project yet. In particular, we still rely on `npm` and `package-lock.json` for dependency installation.
For remaining blockers, see: #294
lgarron added a commit that referenced this issue Sep 20, 2023
Remaining compatibility is tracked in: #294
lgarron added a commit that referenced this issue Sep 20, 2023
We use a workaround for `bun` types due to oven-sh/bun#358 (comment)
lgarron added a commit that referenced this issue Jan 14, 2024
Addresses a significant part of #294, thanks to oven-sh/bun#2492 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant