The pnpm build command freezes at some point. Need to identify the cause and fix it.

Investigation Steps

  • Run pnpm build and observe where it hangs
  • Check for infinite loops or circular dependencies
  • Check vite-imagetools processing (large images, many images)
  • Check for problematic imports or dynamic imports
  • Try building with verbose output

Potential Causes

  • vite-imagetools processing too many images
  • Circular dependencies in imports
  • Large asset processing
  • Memory issues during build
  • Plugin conflicts

Build stability

Reliable builds

A static site template built with SvelteKit.

Sveleton, 2025