Home / Function/ read() — svelte Function Reference

read() — svelte Function Reference

Architecture documentation for the read() function in wrapper_bench.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  44e45b98_3d7d_1c08_1461_faeb96882ad3["read()"]
  e992ebb3_c79a_9dda_1e0f_dbe8aa9e3cb5["wrapper_bench.js"]
  44e45b98_3d7d_1c08_1461_faeb96882ad3 -->|defined in| e992ebb3_c79a_9dda_1e0f_dbe8aa9e3cb5
  15937926_0378_3955_58af_3bb46fe725ee["compile_svelte()"]
  15937926_0378_3955_58af_3bb46fe725ee -->|calls| 44e45b98_3d7d_1c08_1461_faeb96882ad3
  style 44e45b98_3d7d_1c08_1461_faeb96882ad3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js lines 42–44

function read(file) {
	return fs.readFileSync(file, 'utf-8').replace(/\r\n/g, '\n');
}

Subdomains

Called By

Frequently Asked Questions

What does read() do?
read() is a function in the svelte codebase, defined in benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js.
Where is read() defined?
read() is defined in benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js at line 42.
What calls read()?
read() is called by 1 function(s): compile_svelte.

Analyze Your Own Codebase

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

Try Supermodel Free