Home / Function/ rebuild() — tailwindcss Function Reference

rebuild() — tailwindcss Function Reference

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

Function typescript Oxide Scanner calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  0047fefc_fb51_ceb3_8560_c129cba933be["rebuild()"]
  23d03804_a9a2_99ea_5362_f402708f8ba3["index.ts"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|defined in| 23d03804_a9a2_99ea_5362_f402708f8ba3
  f44a387e_d000_f18d_288f_56fae7777dc0["styleObserver()"]
  f44a387e_d000_f18d_288f_56fae7777dc0 -->|calls| 0047fefc_fb51_ceb3_8560_c129cba933be
  22d4c2e8_dc90_1645_f8f6_7cf2d4b3c368["start()"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|calls| 22d4c2e8_dc90_1645_f8f6_7cf2d4b3c368
  0a8e29f0_0853_474c_0fb8_4686e34304fd["createCompiler()"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|calls| 0a8e29f0_0853_474c_0fb8_4686e34304fd
  6e8698d4_c1fb_e530_f050_a2d8cf983c58["build()"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|calls| 6e8698d4_c1fb_e530_f050_a2d8cf983c58
  b9dcd96f_6821_b870_253e_1083d8548c8a["end()"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|calls| b9dcd96f_6821_b870_253e_1083d8548c8a
  f8468600_0590_d28b_d368_70a7ecca74ef["error()"]
  0047fefc_fb51_ceb3_8560_c129cba933be -->|calls| f8468600_0590_d28b_d368_70a7ecca74ef
  style 0047fefc_fb51_ceb3_8560_c129cba933be 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