Home / Function/ rebuild() — tailwindcss Function Reference

rebuild() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8e7134ff_eb3c_1882_65b6_26e94d179c02["rebuild()"]
  e69fa971_07ee_4408_aa61_1a88a7d071b9["index.ts"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|defined in| e69fa971_07ee_4408_aa61_1a88a7d071b9
  cb3faf45_ea97_efd1_2b93_4aa3acaea1f2["styleObserver()"]
  cb3faf45_ea97_efd1_2b93_4aa3acaea1f2 -->|calls| 8e7134ff_eb3c_1882_65b6_26e94d179c02
  f739a7c0_8e5b_65fe_3ebb_4b41e84fa7b0["start()"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|calls| f739a7c0_8e5b_65fe_3ebb_4b41e84fa7b0
  afda82ca_18b4_4587_eb7f_1518d8974ea8["createCompiler()"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|calls| afda82ca_18b4_4587_eb7f_1518d8974ea8
  6d138966_670f_d67e_815a_4fbca5969e50["build()"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|calls| 6d138966_670f_d67e_815a_4fbca5969e50
  f2ece27f_34d5_5ffe_acdd_e46c04ef65d6["end()"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|calls| f2ece27f_34d5_5ffe_acdd_e46c04ef65d6
  8f74b7b7_19eb_6fe4_498e_6cbeae096b6b["error()"]
  8e7134ff_eb3c_1882_65b6_26e94d179c02 -->|calls| 8f74b7b7_19eb_6fe4_498e_6cbeae096b6b
  style 8e7134ff_eb3c_1882_65b6_26e94d179c02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-browser/src/index.ts lines 208–230

function rebuild(kind: 'full' | 'incremental') {
  async function run() {
    if (!compiler && kind !== 'full') {
      return
    }

    let buildId = nextBuildId++

    I.start(`Build #${buildId} (${kind})`)

    if (kind === 'full') {
      await createCompiler()
    }

    I.start(`Build`)
    await build(kind)
    I.end(`Build`)

    I.end(`Build #${buildId} (${kind})`)
  }

  buildQueue = buildQueue.then(run).catch((err) => I.error(err))
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does rebuild() do?
rebuild() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-browser/src/index.ts.
Where is rebuild() defined?
rebuild() is defined in packages/@tailwindcss-browser/src/index.ts at line 208.
What does rebuild() call?
rebuild() calls 5 function(s): build, createCompiler, end, error, start.
What calls rebuild()?
rebuild() is called by 1 function(s): styleObserver.

Analyze Your Own Codebase

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

Try Supermodel Free