Next.js Discord

Discord Forum

Next.js 14 development server compiling very slow with Bun?

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I am trying out bun, but so far it has been horrible when it comes to the *development server performance *.

Here is my package.json information and some performance benchmarks:

{
  "scripts": {
    "dev": "next dev --turbo"
  }
}


I am running my development server with the following command:

bun --bun run dev


Benchmark images are attached (it does not really give justice to how slow bun dev build is for some reason. using node hot reloads are taking 250ms at most, while using bun each small change in css can take up to 5 seconds to apply).

If anyone has any ideas or solutions please help 🙏

Next.js: ^14.2.4
Bun: 1.1.29

1 Reply

Sun bearOP
bump