Home / Function/ requiresBuild() — tailwindcss Function Reference

requiresBuild() — tailwindcss Function Reference

Architecture documentation for the requiresBuild() function in index.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  796ed0e7_5f51_25b9_1260_557d405e71dd["requiresBuild()"]
  bbdbdab4_b968_3686_d725_e087e212da83["generate()"]
  bbdbdab4_b968_3686_d725_e087e212da83 -->|calls| 796ed0e7_5f51_25b9_1260_557d405e71dd
  style 796ed0e7_5f51_25b9_1260_557d405e71dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-vite/src/index.ts lines 440–453

  private async requiresBuild(): Promise<boolean> {
    for (let [path, mtime] of this.buildDependencies) {
      if (mtime === null) return true
      try {
        let stat = await fs.stat(path)
        if (stat.mtimeMs > mtime) {
          return true
        }
      } catch {
        return true
      }
    }
    return false
  }

Subdomains

Called By

Frequently Asked Questions

What does requiresBuild() do?
requiresBuild() is a function in the tailwindcss codebase.
What calls requiresBuild()?
requiresBuild() is called by 1 function(s): generate.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free