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
  68e0856a_9def_2393_d694_827f4f3af860["compiler()"]
  c890fa7b_6e17_4e5d_74bf_b797d0f757b8["Stylesheet"]
  68e0856a_9def_2393_d694_827f4f3af860 -->|defined in| c890fa7b_6e17_4e5d_74bf_b797d0f757b8
  6066f111_c660_b87d_6993_07d8cc779b5c["run()"]
  6066f111_c660_b87d_6993_07d8cc779b5c -->|calls| 68e0856a_9def_2393_d694_827f4f3af860
  117741fb_51f9_63e4_669e_170efd25ca86["postCssAstToCssAst()"]
  68e0856a_9def_2393_d694_827f4f3af860 -->|calls| 117741fb_51f9_63e4_669e_170efd25ca86
  style 68e0856a_9def_2393_d694_827f4f3af860 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