adjust() — svelte Function Reference
Architecture documentation for the adjust() function in state.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 235c8d25_76a1_8477_bb76_fbb408b6a46d["adjust()"] 62f818c8_e890_17ed_5ec1_92f953d4a7a6["state.js"] 235c8d25_76a1_8477_bb76_fbb408b6a46d -->|defined in| 62f818c8_e890_17ed_5ec1_92f953d4a7a6 05334dc2_42b5_e2cb_fe55_aa3f6a2de9df["analyze_module()"] 05334dc2_42b5_e2cb_fe55_aa3f6a2de9df -->|calls| 235c8d25_76a1_8477_bb76_fbb408b6a46d 78a6ba9a_5003_f569_a638_76e4f1977809["analyze_component()"] 78a6ba9a_5003_f569_a638_76e4f1977809 -->|calls| 235c8d25_76a1_8477_bb76_fbb408b6a46d style 235c8d25_76a1_8477_bb76_fbb408b6a46d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/state.js lines 130–144
export function adjust(state) {
const root_dir = state.rootDir?.replace(/\\/g, '/');
dev = state.dev;
runes = state.runes;
component_name = state.component_name ?? UNKNOWN_FILENAME;
if (typeof root_dir === 'string' && filename.startsWith(root_dir)) {
// make filename relative to rootDir
filename = filename.replace(root_dir, '').replace(/^[/\\]/, '');
}
ignore_stack = [];
ignore_map.clear();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does adjust() do?
adjust() is a function in the svelte codebase, defined in packages/svelte/src/compiler/state.js.
Where is adjust() defined?
adjust() is defined in packages/svelte/src/compiler/state.js at line 130.
What calls adjust()?
adjust() is called by 2 function(s): analyze_component, analyze_module.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free