Skip to content

Let's give bun a try#142

Merged
bhousel merged 1 commit intomainfrom
bun
Oct 18, 2025
Merged

Let's give bun a try#142
bhousel merged 1 commit intomainfrom
bun

Conversation

@bhousel
Copy link
Copy Markdown
Member

@bhousel bhousel commented Oct 17, 2025

Bun is a fast all-in-one JavaScript and TypeScript runtime and toolkit. docs

With the newly released Bun v1.3, I thought it would be good to try it out, and I like it. Here's why:

Not only is it significantly faster than other tools, it simplifies things a lot. It basically replaces:

  • the runtime (node), it is mostly a drop-in replacement
  • package manager (npm/yarn), and tools to check for updates like npm check or taze
    • and it has an option to avoid installing anything too new - mitigating JavaScript supply-chain attacks.
  • bundler (esbuild/rollup/vite/parcel)
  • test runner (jest/node:test/vitest)
  • supports TypeScript natively, so we don't need tools like ts-node or a slow tsc transpilation step.
  • supports monorepos (not used here but I do need this elsewhere)
  • also has an enormous amount of other builtins, so a good opportunity to drop dependencies like
    • c8 for code coverage
    • shx for cross-platform shell commands
    • http-server , this is builtin
    • npm-run-all (this one is not really maintained anymore, I switched to npm-run-all2)

This commit also introduces some TypeScript. I'll probably migrate to TypeScript when I have some free time.

Bun is a new JavaScript/TypeScript runtime with everything built in.
It seems like it could be a lot easier than using a bunch of tools.
It also is a bit faster and has some improvements to security.
This replaces node, c8, esbuild, taze, maybe some other things.
@bhousel bhousel merged commit 5a86241 into main Oct 18, 2025
1 check passed
@bhousel bhousel deleted the bun branch October 18, 2025 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant