Home / Function/ loadSss() — vite Function Reference

loadSss() — vite Function Reference

Architecture documentation for the loadSss() function in css.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09["loadSss()"]
  c3eb47df_971b_0616_6c9f_29b3ded72224["css.ts"]
  751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09 -->|defined in| c3eb47df_971b_0616_6c9f_29b3ded72224
  6aa50cd4_4412_2a02_b76b_495614715811["compilePostCSS()"]
  6aa50cd4_4412_2a02_b76b_495614715811 -->|calls| 751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09
  8a5344e1_7e0d_70d0_9c51_6a40c301277b["transformSugarSS()"]
  8a5344e1_7e0d_70d0_9c51_6a40c301277b -->|calls| 751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09
  ee6b4ebe_4e17_548c_a8a5_aafc4db9c675["loadPreprocessorPath()"]
  751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09 -->|calls| ee6b4ebe_4e17_548c_a8a5_aafc4db9c675
  style 751b79e8_9d2f_8cb9_88a2_dc2d6f7ccc09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/css.ts lines 2455–2464

async function loadSss(root: string): Promise<PostCSS.Syntax> {
  if (!cachedSss) {
    cachedSss = (async () => {
      const sssPath = loadPreprocessorPath(PostCssDialectLang.sss, root)
      const resolved = (await import(pathToFileURL(sssPath).href)).default
      return (cachedSss = resolved)
    })()
  }
  return cachedSss
}

Domain

Subdomains

Frequently Asked Questions

What does loadSss() do?
loadSss() is a function in the vite codebase, defined in packages/vite/src/node/plugins/css.ts.
Where is loadSss() defined?
loadSss() is defined in packages/vite/src/node/plugins/css.ts at line 2455.
What does loadSss() call?
loadSss() calls 1 function(s): loadPreprocessorPath.
What calls loadSss()?
loadSss() is called by 2 function(s): compilePostCSS, transformSugarSS.

Analyze Your Own Codebase

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

Try Supermodel Free