rebuild() — tailwindcss Function Reference
Architecture documentation for the rebuild() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0["rebuild()"] 99a4b868_808e_a065_dfc7_989d72b89cc6["styleObserver()"] 99a4b868_808e_a065_dfc7_989d72b89cc6 -->|calls| 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 53ebf260_055a_065a_97c6_10bc1d92476b["start()"] 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 -->|calls| 53ebf260_055a_065a_97c6_10bc1d92476b 1f9197e1_4bbd_21b6_da7e_de2319e5ff8f["createCompiler()"] 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 -->|calls| 1f9197e1_4bbd_21b6_da7e_de2319e5ff8f 7665e7ed_1eb9_439b_dcf3_ba3075d2cb78["build()"] 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 -->|calls| 7665e7ed_1eb9_439b_dcf3_ba3075d2cb78 020a5eed_39cf_05ec_e603_096fba2472da["end()"] 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 -->|calls| 020a5eed_39cf_05ec_e603_096fba2472da ca1cd359_6c7d_f667_7afb_d810040e2b69["error()"] 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 -->|calls| ca1cd359_6c7d_f667_7afb_d810040e2b69 style 79efb43f_fcca_c5cf_0bb0_c18f1a2fffc0 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
Source
Frequently Asked Questions
What does rebuild() do?
rebuild() is a function in the tailwindcss codebase.
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