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
  8286c5ed_881e_5293_80e9_2e0f23c252d0["resolveJsId()"]
  39d349ef_5aba_74f4_ed62_f866ab2288c7["resolve.ts"]
  8286c5ed_881e_5293_80e9_2e0f23c252d0 -->|defined in| 39d349ef_5aba_74f4_ed62_f866ab2288c7
  c7bf3ebc_1d4b_a382_4d8c_9503895e3f2c["getPackageVersion()"]
  c7bf3ebc_1d4b_a382_4d8c_9503895e3f2c -->|calls| 8286c5ed_881e_5293_80e9_2e0f23c252d0
  de3714a2_211f_a4e9_f8b7_4a8dd2f45374["getPackageVersionSync()"]
  de3714a2_211f_a4e9_f8b7_4a8dd2f45374 -->|calls| 8286c5ed_881e_5293_80e9_2e0f23c252d0
  style 8286c5ed_881e_5293_80e9_2e0f23c252d0 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)
  }
}

Subdomains

Frequently Asked Questions

What does resolveJsId() do?
resolveJsId() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/utils/resolve.ts.
Where is resolveJsId() defined?
resolveJsId() is defined in packages/@tailwindcss-upgrade/src/utils/resolve.ts at line 30.
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