Home / Function/ compile() — tailwindcss Function Reference

compile() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1f83fc7f_b81f_b901_0d0a_48b6bff9e7fa["compile()"]
  ac975fa0_6dfb_5b95_d79d_ea10cebf80a5["prepareConfig()"]
  ac975fa0_6dfb_5b95_d79d_ea10cebf80a5 -->|calls| 1f83fc7f_b81f_b901_0d0a_48b6bff9e7fa
  2cba246e_336d_6f47_8fa4_83f35f72c847["createCompileOptions()"]
  1f83fc7f_b81f_b901_0d0a_48b6bff9e7fa -->|calls| 2cba246e_336d_6f47_8fa4_83f35f72c847
  046d4182_1181_6bdc_f5a1_e865fc7afdb6["ensureSourceDetectionRootExists()"]
  1f83fc7f_b81f_b901_0d0a_48b6bff9e7fa -->|calls| 046d4182_1181_6bdc_f5a1_e865fc7afdb6
  style 1f83fc7f_b81f_b901_0d0a_48b6bff9e7fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-node/src/compile.ts lines 100–104

export async function compile(css: string, options: CompileOptions) {
  let compiler = await _compile(css, createCompileOptions(options))
  await ensureSourceDetectionRootExists(compiler)
  return compiler
}

Subdomains

Called By

Frequently Asked Questions

What does compile() do?
compile() is a function in the tailwindcss codebase.
What does compile() call?
compile() calls 2 function(s): createCompileOptions, ensureSourceDetectionRootExists.
What calls compile()?
compile() is called by 1 function(s): prepareConfig.

Analyze Your Own Codebase

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

Try Supermodel Free