Home / Function/ importPlugin() — astro Function Reference

importPlugin() — astro Function Reference

Architecture documentation for the importPlugin() function in load-plugins.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  bd2a8d12_3d39_7568_0bce_8046e9507c49["importPlugin()"]
  005bacb3_f924_d887_25a0_84c0b6efe1be["load-plugins.ts"]
  bd2a8d12_3d39_7568_0bce_8046e9507c49 -->|defined in| 005bacb3_f924_d887_25a0_84c0b6efe1be
  1bd356d0_f7e9_b2c5_1d9e_f1a15e556f72["loadPlugins()"]
  1bd356d0_f7e9_b2c5_1d9e_f1a15e556f72 -->|calls| bd2a8d12_3d39_7568_0bce_8046e9507c49
  style bd2a8d12_3d39_7568_0bce_8046e9507c49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/markdown/remark/src/load-plugins.ts lines 4–10

async function importPlugin(p: string | unified.Plugin<any[], any>) {
	if (typeof p === 'string') {
		return await _importPlugin(p);
	} else {
		return p;
	}
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does importPlugin() do?
importPlugin() is a function in the astro codebase, defined in packages/markdown/remark/src/load-plugins.ts.
Where is importPlugin() defined?
importPlugin() is defined in packages/markdown/remark/src/load-plugins.ts at line 4.
What calls importPlugin()?
importPlugin() is called by 1 function(s): loadPlugins.

Analyze Your Own Codebase

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

Try Supermodel Free