Home / Function/ loadSync() — tailwindcss Function Reference

loadSync() — tailwindcss Function Reference

Architecture documentation for the loadSync() function in stylesheet.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  0ee8556f_4c1e_0020_388f_ac4745b8d237["loadSync()"]
  4d72f15c_1184_4396_0a3a_6a120fe36ae0["analyze()"]
  4d72f15c_1184_4396_0a3a_6a120fe36ae0 -->|calls| 0ee8556f_4c1e_0020_388f_ac4745b8d237
  style 0ee8556f_4c1e_0020_388f_ac4745b8d237 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/stylesheet.ts lines 78–85

  static loadSync(filepath: string) {
    filepath = path.resolve(process.cwd(), filepath)

    let css = fsSync.readFileSync(filepath, 'utf-8')
    let root = postcss.parse(css, { from: filepath })

    return new Stylesheet(root, filepath)
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does loadSync() do?
loadSync() is a function in the tailwindcss codebase.
What calls loadSync()?
loadSync() is called by 1 function(s): analyze.

Analyze Your Own Codebase

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

Try Supermodel Free