#3591·nitro

[vite] Very high memory usage when building tanstack start

Author: xKesvaLCreated Sep 25, 2025Updated Sep 12, 2026
Labelsbugneeds reproductionv3vite plugintanstack

Environment

  • Vite nitro (nightly) 3.0.0-20250925 to be precise Vite config:
typescript
const config = defineConfig({
  plugins: [
    // this is the plugin that enables path aliases
    viteTsConfigPaths({
      projects: ["./tsconfig.json"],
    }),
    tailwindcss(),
    tanstackStart(),
    nitro({
      config: {
        preset: "bun",
      },
    }),
    viteReact(),
  ],
});

Reproduction

I've tried reproducing the issue using the create-start-app with almost all addons to make the app bigger : https://github.com/xKesvaL/nitro-v3-high-memory

I do have a slightly bigger repo to test this on (see below), but it's private. Any maintainer is welcome to message me and I will happily give it to them.

Describe the bug

I am finding integrating the nitro v3 vite plugin with the new tanstack start RC is yielding way higher memory usage.

ImageImage

The two graphs are memory usage on my VPS while building latest start (132.7) + nitro v3 vite plugin (first) VS building beta start, the second one. As mentioned before, this is the private repo.

The build on the left did not manage to finish, as it ran out of memory.

I don't know where this comes from, but will be happy to help if I can

Here's the public repo I made with create-start-app, i've highlighted in red the moment nitro kicks in and memory usage ramps up crazily in 3-5 seconds. In green is vite. It's not as bad as on my VPS, but also not as big of a project.

Image

Additional context

No response

Logs

bash