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
  85b0ddf9_93d8_1f80_0dd8_439427b0d1ff["preprocess()"]
  1aad1b66_4ff0_fcc3_9eab_fd33ebad4a4c["compileStyle.ts"]
  85b0ddf9_93d8_1f80_0dd8_439427b0d1ff -->|defined in| 1aad1b66_4ff0_fcc3_9eab_fd33ebad4a4c
  eb225a87_b3c1_d8e5_4365_2b3c8f37effc["doCompileStyle()"]
  eb225a87_b3c1_d8e5_4365_2b3c8f37effc -->|calls| 85b0ddf9_93d8_1f80_0dd8_439427b0d1ff
  style 85b0ddf9_93d8_1f80_0dd8_439427b0d1ff 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