Home / Function/ createResolvedUserConfig() — tailwindcss Function Reference

createResolvedUserConfig() — tailwindcss Function Reference

Architecture documentation for the createResolvedUserConfig() function in prepare-config.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  c223b5bc_475d_c40f_0314_bed60d87e0a0["createResolvedUserConfig()"]
  d1aa21a8_ad44_6ad5_f1e9_8c1f02bbff2d["prepareConfig()"]
  d1aa21a8_ad44_6ad5_f1e9_8c1f02bbff2d -->|calls| c223b5bc_475d_c40f_0314_bed60d87e0a0
  b620f573_84b9_a33a_291f_6bb912350445["loadModule()"]
  c223b5bc_475d_c40f_0314_bed60d87e0a0 -->|calls| b620f573_84b9_a33a_291f_6bb912350445
  6b5865d6_780d_1bbb_5df1_7ecca0e9b1a1["resolveConfig()"]
  c223b5bc_475d_c40f_0314_bed60d87e0a0 -->|calls| 6b5865d6_780d_1bbb_5df1_7ecca0e9b1a1
  style c223b5bc_475d_c40f_0314_bed60d87e0a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/template/prepare-config.ts lines 73–87

async function createResolvedUserConfig(fullConfigPath: string): Promise<Config> {
  let [noopDesignSystem, unresolvedUserConfig] = await Promise.all([
    __unstable__loadDesignSystem(
      css`
        @import 'tailwindcss';
      `,
      { base: __dirname },
    ),
    loadModule(fullConfigPath, __dirname, () => {}).then((result) => result.module) as Config,
  ])

  return resolveConfig(noopDesignSystem, [
    { base: dirname(fullConfigPath), config: unresolvedUserConfig, reference: false },
  ]).resolvedConfig as any
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createResolvedUserConfig() do?
createResolvedUserConfig() is a function in the tailwindcss codebase.
What does createResolvedUserConfig() call?
createResolvedUserConfig() calls 2 function(s): loadModule, resolveConfig.
What calls createResolvedUserConfig()?
createResolvedUserConfig() is called by 1 function(s): prepareConfig.

Analyze Your Own Codebase

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

Try Supermodel Free