Home / Function/ resolveJsId() — tailwindcss Function Reference

resolveJsId() — tailwindcss Function Reference

Architecture documentation for the resolveJsId() function in resolve.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  b450167c_267d_f5f1_2949_2913d41a5259["resolveJsId()"]
  65b55bca_918d_7580_9635_cd151fcd6ea5["getPackageVersion()"]
  65b55bca_918d_7580_9635_cd151fcd6ea5 -->|calls| b450167c_267d_f5f1_2949_2913d41a5259
  f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574["getPackageVersionSync()"]
  f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574 -->|calls| b450167c_267d_f5f1_2949_2913d41a5259
  style b450167c_267d_f5f1_2949_2913d41a5259 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/utils/resolve.ts lines 30–36

export function resolveJsId(id: string, base: string) {
  try {
    return esmResolver.resolveSync({}, base, id)
  } catch {
    return cjsResolver.resolveSync({}, base, id)
  }
}

Domain

Subdomains

Frequently Asked Questions

What does resolveJsId() do?
resolveJsId() is a function in the tailwindcss codebase.
What calls resolveJsId()?
resolveJsId() is called by 2 function(s): getPackageVersion, getPackageVersionSync.

Analyze Your Own Codebase

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

Try Supermodel Free