TanStackT
TanStack11mo ago
10 replies
full-green

Client assets (styles/bundles) aren't loaded when using bun preset

Hey guys, i have an interesting issue. When i'm using the bun preset, none of the build assets for the clients will work, but using the node-server preset it works just fine.

The config is pretty straight forward too:
export default defineConfig({
  vite: {
    plugins: [
      viteTsConfigPaths({
        projects: ['./tsconfig.json']
      }),
      tailwindcss()
    ]
  },
  server: {
    preset: 'node-server'
  },
  tsr: {
    autoCodeSplitting: true
  }
});
image.png
Was this page helpful?