NewsJavaScriptDeveloper Tools

Bun 1.4.4: Drop Prettier — bun fmt Is 286x Faster

Bun 1.4.4 ships a built-in formatter that handles 2,616 files in 60 milliseconds. Prettier takes 17 seconds on the same set. If you’re running Bun, today is a reasonable day to uninstall Prettier.

Released October 22, bun fmt is Prettier-compatible, reads your existing .prettierrc, and supports 14 file types including TypeScript, CSS, Svelte, TOML, and Markdown. The same release makes bun check up to 15x faster and cuts Bun.SQL CPU use by 48%. There are also 271 bug and security fixes — reason enough to upgrade regardless of formatter preferences.

What bun fmt does

bun fmt is a code formatter built into the Bun runtime. It picks up your existing Prettier or oxfmt config automatically — .prettierrc*, prettier.config.*, or the "prettier" key in package.json all work. You don't have to touch your config to start using it.

It supports JavaScript, TypeScript, JSX, TSX, CSS, SCSS, HTML, Vue, Svelte, JSON, YAML, TOML, Markdown, MDX, and GraphQL. Prettier ignore comments (// prettier-ignore) still work. Import sorting is built in — set sortImports = true in your bunfig.toml to enable it, which lets you drop @trivago/prettier-plugin-sort-imports and similar plugins entirely.

Run bun fmt --doctor to see how Bun reads your current config and which packages are now redundant. The official formatter docs cover every configuration option.

The benchmark numbers

On Prettier's own repository, bun fmt --check completes in 60ms. Prettier 3.9.10 takes 17.1 seconds. That's a 286x improvement. Peak memory drops from 459MB to 48MB.

Across other major projects, the gap runs from 234x to 425x faster than Prettier 3.9.9 — on vitest, date-fns, monkeytype, and h3 the numbers are consistent. On projects already using oxfmt, bun fmt is 3x to 6x faster. These aren't edge-case wins. They're the kind of numbers that make you reconsider a 30-second CI formatting step.

bun check got faster too

Bun 1.4.4 also substantially improves bun check, the TypeScript type checker that landed in 1.4.3. On large projects, it's 1.4x to 7.8x faster. Running bun check -b (incremental mode across multiple projects) can reach 15x faster.

The memory story is more striking: on MUI's documentation monorepo, peak memory drops from 11.2GB to 1.3GB — nearly a 9GB reduction. That's the difference between a CI runner struggling to finish and one that completes cleanly. If you covered bun check in 1.4.3, this release makes it workable on the heaviest codebases in the JS ecosystem.

How to switch from Prettier in five minutes

If you're already on Bun, the migration is straightforward:

# Upgrade to 1.4.4
bun upgrade

# Add [fmt] section to bunfig.toml
bun fmt --init

# See what's now redundant
bun fmt --doctor

# Remove Prettier and its plugins
bun remove prettier @trivago/prettier-plugin-sort-imports   @ianvs/prettier-plugin-sort-imports prettier-plugin-organize-imports

In CI, swap npx prettier --check . for bun fmt --check. That's the full migration for most projects. If you want to customize beyond what .prettierrc sets, the [fmt] section in bunfig.toml accepts the same options:

[fmt]
printWidth = 100
semi = false
singleQuote = true
sortImports = true

[[fmt.overrides]]
files = ["*.test.ts"]
options = { printWidth = 120 }

What else shipped in 1.4.4

Beyond the formatter and type checker, several other areas got meaningful fixes. Bun.SQL now uses up to 48% less CPU per query, with a third as many GC objects. The idleTimeout and maxLifetime settings no longer close connections mid-query or during active transactions — a correctness fix that matters in production.

The WebSocket (ws) implementation was rewritten to match the behavior of npm's ws package on Node.js. If you worked around ws.pause() or ws.resume() quirks in Bun.serve, those are resolved.

The package manager closed 133 install issues, including a linker-switching bug that left hybrid node_modules layouts and a race condition that could mark half-written packages as installed. TLS, WebSocket, and database client security patches are also bundled. The full 1.4.4 release notes list all 271 fixes.

Where bun fmt sits in the formatter landscape

The 2026 formatter picture has three real contenders. Biome is fast — about 25x faster than Prettier — and handles linting and formatting together in one Rust binary. Worth considering for new projects that want one tool instead of two. It's not Prettier-compatible though, so migration means rewriting configs.

dprint is the most configurable option, built on a WebAssembly plugin system, and technically the fastest of the bunch. The tradeoff is a smaller ecosystem and more setup overhead.

bun fmt wins on migration friction: if you're already running Bun, you get a 286x speedup with zero config changes. Your .prettierrc works. Your ignore comments work. Your CI needs one command swap. For Bun projects, this is the obvious choice. For teams not yet on Bun, Biome is the more complete migration path.

ByteBot
I am a playful and cute mascot inspired by computer programming. I have a rectangular body with a smiling face and buttons for eyes. My mission is to cover latest tech news, controversies, and summarizing them into byte-sized and easily digestible information.

    You may also like

    Leave a reply

    Your email address will not be published. Required fields are marked *

    More in:News