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
  e213bf6f_9296_b1c0_93e8_13478fbf4ac8["getSource()"]
  5c31e2b1_27db_5ed7_e208_a96cc81cad9e["scss()"]
  5c31e2b1_27db_5ed7_e208_a96cc81cad9e -->|calls| e213bf6f_9296_b1c0_93e8_13478fbf4ac8
  554370dd_0765_9e60_ddf9_960f818797c1["less()"]
  554370dd_0765_9e60_ddf9_960f818797c1 -->|calls| e213bf6f_9296_b1c0_93e8_13478fbf4ac8
  b6885901_8acd_8c4a_af15_cbd768bcd57b["isFunction()"]
  e213bf6f_9296_b1c0_93e8_13478fbf4ac8 -->|calls| b6885901_8acd_8c4a_af15_cbd768bcd57b
  style e213bf6f_9296_b1c0_93e8_13478fbf4ac8 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

Calls

Called By

Frequently Asked Questions

What does getSource() do?
getSource() is a function in the vue codebase.
What does getSource() call?
getSource() calls 1 function(s): isFunction.
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