Home / Function/ isImportedBy() — astro Function Reference

isImportedBy() — astro Function Reference

Architecture documentation for the isImportedBy() function in vite.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ddebbe73_0992_18e1_1ef1_fc21c7e2f362["isImportedBy()"]
  07d85cd0_2c3b_d625_d196_6081b8d3c820["vite.ts"]
  ddebbe73_0992_18e1_1ef1_fc21c7e2f362 -->|defined in| 07d85cd0_2c3b_d625_d196_6081b8d3c820
  1990e7cb_6306_328a_9c7d_94c08193d1d1["crawlGraph()"]
  1990e7cb_6306_328a_9c7d_94c08193d1d1 -->|calls| ddebbe73_0992_18e1_1ef1_fc21c7e2f362
  style ddebbe73_0992_18e1_1ef1_fc21c7e2f362 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/vite-plugin-astro-server/vite.ts lines 120–127

function isImportedBy(parent: string, entry: EnvironmentModuleNode) {
	for (const importer of entry.importers) {
		if (importer.id === parent) {
			return true;
		}
	}
	return false;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isImportedBy() do?
isImportedBy() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-astro-server/vite.ts.
Where is isImportedBy() defined?
isImportedBy() is defined in packages/astro/src/vite-plugin-astro-server/vite.ts at line 120.
What calls isImportedBy()?
isImportedBy() is called by 1 function(s): crawlGraph.

Analyze Your Own Codebase

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

Try Supermodel Free