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
  f29a95c9_1a7d_1f94_04ba_9a97869b9a02["resolveJsId()"]
  e008c554_f7a9_9ac2_a33f_17769dc44155["getPackageVersion()"]
  e008c554_f7a9_9ac2_a33f_17769dc44155 -->|calls| f29a95c9_1a7d_1f94_04ba_9a97869b9a02
  533ef2c5_1881_2c6f_f557_41582fbe2478["getPackageVersionSync()"]
  533ef2c5_1881_2c6f_f557_41582fbe2478 -->|calls| f29a95c9_1a7d_1f94_04ba_9a97869b9a02
  style f29a95c9_1a7d_1f94_04ba_9a97869b9a02 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