Home / Function/ compiler() — tailwindcss Function Reference

compiler() — tailwindcss Function Reference

Architecture documentation for the compiler() function in stylesheet.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  48809bde_54f2_e8e3_6b2c_2861fdc49d90["compiler()"]
  c1db9de2_3654_d42b_b9f2_1c5a0ccbd307["run()"]
  c1db9de2_3654_d42b_b9f2_1c5a0ccbd307 -->|calls| 48809bde_54f2_e8e3_6b2c_2861fdc49d90
  c90ec073_0241_abd8_3427_8edf14bd20d2["postCssAstToCssAst()"]
  48809bde_54f2_e8e3_6b2c_2861fdc49d90 -->|calls| c90ec073_0241_abd8_3427_8edf14bd20d2
  style 48809bde_54f2_e8e3_6b2c_2861fdc49d90 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/stylesheet.ts lines 268–276

  async compiler(): Promise<Awaited<ReturnType<typeof compileAst>> | null> {
    if (!this.isTailwindRoot) return null
    if (!this.file) return null

    return compileAst(postCssAstToCssAst(this.root), {
      base: path.dirname(this.file),
      onDependency() {},
    })
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does compiler() do?
compiler() is a function in the tailwindcss codebase.
What does compiler() call?
compiler() calls 1 function(s): postCssAstToCssAst.
What calls compiler()?
compiler() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free