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
  2ff7d66b_531f_4719_0d70_d76656b5591a["createInternalOptionsCache()"]
  20406e7c_6ee8_4626_dbef_5b37708f4d30["prepareDesignSystemStorage()"]
  20406e7c_6ee8_4626_dbef_5b37708f4d30 -->|calls| 2ff7d66b_531f_4719_0d70_d76656b5591a
  style 2ff7d66b_531f_4719_0d70_d76656b5591a 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.
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