Home / Function/ getSource() — vue Function Reference

getSource() — vue Function Reference

Architecture documentation for the getSource() function in stylePreprocessors.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  cb2cd8b2_72ca_3a6e_f406_51f46fe0a38a["getSource()"]
  ba46daf5_ee23_b1e3_6003_bd7f1eb01c21["stylePreprocessors.ts"]
  cb2cd8b2_72ca_3a6e_f406_51f46fe0a38a -->|defined in| ba46daf5_ee23_b1e3_6003_bd7f1eb01c21
  40abbf2e_9f1d_2de0_db70_88472f2d90f3["scss()"]
  40abbf2e_9f1d_2de0_db70_88472f2d90f3 -->|calls| cb2cd8b2_72ca_3a6e_f406_51f46fe0a38a
  64a9c7fd_734d_cae2_81b6_f165ffc3ee16["less()"]
  64a9c7fd_734d_cae2_81b6_f165ffc3ee16 -->|calls| cb2cd8b2_72ca_3a6e_f406_51f46fe0a38a
  style cb2cd8b2_72ca_3a6e_f406_51f46fe0a38a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/stylePreprocessors.ts lines 115–125

function getSource(
  source: string,
  filename: string,
  additionalData?: string | ((source: string, filename: string) => string)
) {
  if (!additionalData) return source
  if (isFunction(additionalData)) {
    return additionalData(source, filename)
  }
  return additionalData + source
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getSource() do?
getSource() is a function in the vue codebase, defined in packages/compiler-sfc/src/stylePreprocessors.ts.
Where is getSource() defined?
getSource() is defined in packages/compiler-sfc/src/stylePreprocessors.ts at line 115.
What calls getSource()?
getSource() is called by 2 function(s): less, scss.

Analyze Your Own Codebase

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

Try Supermodel Free