Home / Function/ getCombinedSourcemap() — vite Function Reference

getCombinedSourcemap() — vite Function Reference

Architecture documentation for the getCombinedSourcemap() function in pluginContainer.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  7f968f26_079b_e4e6_bf70_99a14c481596["getCombinedSourcemap()"]
  bbea215d_7020_772f_d578_a87b3eba030c["TransformPluginContext"]
  7f968f26_079b_e4e6_bf70_99a14c481596 -->|defined in| bbea215d_7020_772f_d578_a87b3eba030c
  cd131d16_e223_ab79_1b7c_8ea449ae51a2["cssPostPlugin()"]
  cd131d16_e223_ab79_1b7c_8ea449ae51a2 -->|calls| 7f968f26_079b_e4e6_bf70_99a14c481596
  3c78163f_527c_d054_7003_68d51942d57a["_getCombinedSourcemap()"]
  7f968f26_079b_e4e6_bf70_99a14c481596 -->|calls| 3c78163f_527c_d054_7003_68d51942d57a
  10b9dea8_362c_1af2_93be_afa4dd9aed9e["cleanUrl()"]
  7f968f26_079b_e4e6_bf70_99a14c481596 -->|calls| 10b9dea8_362c_1af2_93be_afa4dd9aed9e
  style 7f968f26_079b_e4e6_bf70_99a14c481596 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/pluginContainer.ts lines 1156–1166

  getCombinedSourcemap(): SourceMap {
    const map = this._getCombinedSourcemap()
    if (!map || (!('version' in map) && map.mappings === '')) {
      return new MagicString(this.originalCode).generateMap({
        includeContent: true,
        hires: 'boundary',
        source: cleanUrl(this.filename),
      }) as SourceMap
    }
    return map
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does getCombinedSourcemap() do?
getCombinedSourcemap() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is getCombinedSourcemap() defined?
getCombinedSourcemap() is defined in packages/vite/src/node/server/pluginContainer.ts at line 1156.
What does getCombinedSourcemap() call?
getCombinedSourcemap() calls 2 function(s): _getCombinedSourcemap, cleanUrl.
What calls getCombinedSourcemap()?
getCombinedSourcemap() is called by 1 function(s): cssPostPlugin.

Analyze Your Own Codebase

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

Try Supermodel Free