Home / Function/ isCommonNotAstro() — astro Function Reference

isCommonNotAstro() — astro Function Reference

Architecture documentation for the isCommonNotAstro() function in create-vite.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  1030c3db_a263_4ec6_e9f7_5814d88d569f["isCommonNotAstro()"]
  60b1393e_9046_7d4d_1df5_b46cd58358d1["create-vite.ts"]
  1030c3db_a263_4ec6_e9f7_5814d88d569f -->|defined in| 60b1393e_9046_7d4d_1df5_b46cd58358d1
  156b640b_04f8_ebda_901f_2b1e9a0418aa["createVite()"]
  156b640b_04f8_ebda_901f_2b1e9a0418aa -->|calls| 1030c3db_a263_4ec6_e9f7_5814d88d569f
  style 1030c3db_a263_4ec6_e9f7_5814d88d569f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/create-vite.ts lines 319–329

function isCommonNotAstro(dep: string): boolean {
	return (
		COMMON_DEPENDENCIES_NOT_ASTRO.includes(dep) ||
		COMMON_PREFIXES_NOT_ASTRO.some(
			(prefix) =>
				prefix.startsWith('@')
					? dep.startsWith(prefix)
					: dep.substring(dep.lastIndexOf('/') + 1).startsWith(prefix), // check prefix omitting @scope/
		)
	);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isCommonNotAstro() do?
isCommonNotAstro() is a function in the astro codebase, defined in packages/astro/src/core/create-vite.ts.
Where is isCommonNotAstro() defined?
isCommonNotAstro() is defined in packages/astro/src/core/create-vite.ts at line 319.
What calls isCommonNotAstro()?
isCommonNotAstro() is called by 1 function(s): createVite.

Analyze Your Own Codebase

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

Try Supermodel Free