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
  b831b4ae_2713_c480_30e4_4d78e03b2b56["requiresBuild()"]
  8afb4b37_0b4b_c3fe_de00_b595098c0b22["generate()"]
  8afb4b37_0b4b_c3fe_de00_b595098c0b22 -->|calls| b831b4ae_2713_c480_30e4_4d78e03b2b56
  style b831b4ae_2713_c480_30e4_4d78e03b2b56 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
  }

Domain

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