Home / Function/ createInternalOptionsCache() — tailwindcss Function Reference

createInternalOptionsCache() — tailwindcss Function Reference

Architecture documentation for the createInternalOptionsCache() function in canonicalize-candidates.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  45a0d97e_737f_684f_3b05_f698078a9ed4["createInternalOptionsCache()"]
  7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e["canonicalize-candidates.ts"]
  45a0d97e_737f_684f_3b05_f698078a9ed4 -->|defined in| 7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e
  81ec8f98_1fb2_d7c3_dd65_3a9e51b3be39["prepareDesignSystemStorage()"]
  81ec8f98_1fb2_d7c3_dd65_3a9e51b3be39 -->|calls| 45a0d97e_737f_684f_3b05_f698078a9ed4
  style 45a0d97e_737f_684f_3b05_f698078a9ed4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/canonicalize-candidates.ts lines 156–164

function createInternalOptionsCache(
  designSystem: DesignSystem,
): DesignSystem['storage'][typeof INTERNAL_OPTIONS_KEY] {
  return new DefaultMap((signatureOptions: SignatureOptions) => {
    return new DefaultMap((features: Features) => {
      return { features, designSystem, signatureOptions } satisfies InternalCanonicalizeOptions
    })
  })
}

Subdomains

Frequently Asked Questions

What does createInternalOptionsCache() do?
createInternalOptionsCache() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/canonicalize-candidates.ts.
Where is createInternalOptionsCache() defined?
createInternalOptionsCache() is defined in packages/tailwindcss/src/canonicalize-candidates.ts at line 156.
What calls createInternalOptionsCache()?
createInternalOptionsCache() is called by 1 function(s): prepareDesignSystemStorage.

Analyze Your Own Codebase

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

Try Supermodel Free