Home / Function/ preprocess() — vue Function Reference

preprocess() — vue Function Reference

Architecture documentation for the preprocess() function in compileStyle.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  0b2d5d49_6100_90a7_4e55_d3f71845a4f2["preprocess()"]
  028e31ce_07f6_d5b2_134a_c0b5bb64823a["compileStyle.ts"]
  0b2d5d49_6100_90a7_4e55_d3f71845a4f2 -->|defined in| 028e31ce_07f6_d5b2_134a_c0b5bb64823a
  e630ee87_e220_092a_592c_f7079f566b16["doCompileStyle()"]
  e630ee87_e220_092a_592c_f7079f566b16 -->|calls| 0b2d5d49_6100_90a7_4e55_d3f71845a4f2
  style 0b2d5d49_6100_90a7_4e55_d3f71845a4f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileStyle.ts lines 133–147

function preprocess(
  options: SFCStyleCompileOptions,
  preprocessor: StylePreprocessor
): StylePreprocessorResults {
  return preprocessor(
    options.source,
    options.map,
    Object.assign(
      {
        filename: options.filename
      },
      options.preprocessOptions
    )
  )
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does preprocess() do?
preprocess() is a function in the vue codebase, defined in packages/compiler-sfc/src/compileStyle.ts.
Where is preprocess() defined?
preprocess() is defined in packages/compiler-sfc/src/compileStyle.ts at line 133.
What calls preprocess()?
preprocess() is called by 1 function(s): doCompileStyle.

Analyze Your Own Codebase

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

Try Supermodel Free