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
  fcf1d6b1_3e3f_4998_362f_d01ac73af13c["preprocess()"]
  a8e4176a_85a7_66ad_a2b0_98c89cfc57f1["doCompileStyle()"]
  a8e4176a_85a7_66ad_a2b0_98c89cfc57f1 -->|calls| fcf1d6b1_3e3f_4998_362f_d01ac73af13c
  style fcf1d6b1_3e3f_4998_362f_d01ac73af13c 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.
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