Skip to content

Turbopack and Tailwind hangs on large codebases #78407

@hrhthegreat

Description

@hrhthegreat

Link to the code that reproduces this issue

https://github.com/hamidrezahanafi/turbopack-tw-large-codebase

To Reproduce

  1. Start the dev mode with turbopack on
  2. App hangs on Compiling

Current vs. Expected behavior

Current: Application hangs on compiling
Expected: It should compile and show the page

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041
  Available memory (MB): 49152
  Available CPU cores: 14
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: 4.9.1
  pnpm: N/A
Relevant Packages:
  next: 15.3.0
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.3.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

This is related to tailwind/postcss plugin based on my investigation and I created this 40000 files codebase and it seems like this code on tailwind postcss plugin is registering all the files and it hangs when it pass certain number or size of files

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.locked

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions