sourceMapIncludesSource() — react Function Reference
Architecture documentation for the sourceMapIncludesSource() function in SourceMapUtils.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD fd9af6fe_0d02_805e_69cc_273e539a9202["sourceMapIncludesSource()"] ff1125e1_0809_ce84_8615_e747ab0e6203["SourceMapUtils.js"] fd9af6fe_0d02_805e_69cc_273e539a9202 -->|defined in| ff1125e1_0809_ce84_8615_e747ab0e6203 af50a88a_0828_5d3a_feb9_e7a9a1f805c9["extractAndLoadSourceMapJSON()"] af50a88a_0828_5d3a_feb9_e7a9a1f805c9 -->|calls| fd9af6fe_0d02_805e_69cc_273e539a9202 style fd9af6fe_0d02_805e_69cc_273e539a9202 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/hooks/SourceMapUtils.js lines 16–34
export function sourceMapIncludesSource(
sourcemap: MixedSourceMap,
source: ?string,
): boolean {
if (source == null) {
return false;
}
if (sourcemap.mappings === undefined) {
const indexSourceMap: IndexSourceMap = sourcemap;
return indexSourceMap.sections.some(section => {
return sourceMapIncludesSource(section.map, source);
});
}
const basicMap: BasicSourceMap = sourcemap;
return basicMap.sources.some(
s => s === 'Inline Babel script' || source.endsWith(s),
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does sourceMapIncludesSource() do?
sourceMapIncludesSource() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/SourceMapUtils.js.
Where is sourceMapIncludesSource() defined?
sourceMapIncludesSource() is defined in packages/react-devtools-shared/src/hooks/SourceMapUtils.js at line 16.
What calls sourceMapIncludesSource()?
sourceMapIncludesSource() is called by 1 function(s): extractAndLoadSourceMapJSON.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free