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
  18b254d7_4530_90ad_11ed_fa759156351c["compiler()"]
  b9897393_3e36_7806_d172_b9debcd215f6["Stylesheet"]
  18b254d7_4530_90ad_11ed_fa759156351c -->|defined in| b9897393_3e36_7806_d172_b9debcd215f6
  817bb61a_7ad0_1186_790a_6a40126eed80["run()"]
  817bb61a_7ad0_1186_790a_6a40126eed80 -->|calls| 18b254d7_4530_90ad_11ed_fa759156351c
  63cea7e8_6a82_90d2_b2b0_c166362f218b["postCssAstToCssAst()"]
  18b254d7_4530_90ad_11ed_fa759156351c -->|calls| 63cea7e8_6a82_90d2_b2b0_c166362f218b
  style 18b254d7_4530_90ad_11ed_fa759156351c 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() {},
    })
  }

Subdomains

Called By

Frequently Asked Questions

What does compiler() do?
compiler() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is compiler() defined?
compiler() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 268.
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