Home / Function/ addAssetImports() — astro Function Reference

addAssetImports() — astro Function Reference

Architecture documentation for the addAssetImports() function in mutable-data-store.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e8128657_5ca2_5835_1b1d_0ba8f6e44da0["addAssetImports()"]
  ecb98618_124a_e276_dd98_561beaedc6ea["MutableDataStore"]
  e8128657_5ca2_5835_1b1d_0ba8f6e44da0 -->|defined in| ecb98618_124a_e276_dd98_561beaedc6ea
  f03b05d5_a06a_1438_1154_d1d6dcdbbdb9["scopedStore()"]
  f03b05d5_a06a_1438_1154_d1d6dcdbbdb9 -->|calls| e8128657_5ca2_5835_1b1d_0ba8f6e44da0
  46376fa6_b848_94c4_1def_bd808a3a4fec["addAssetImport()"]
  e8128657_5ca2_5835_1b1d_0ba8f6e44da0 -->|calls| 46376fa6_b848_94c4_1def_bd808a3a4fec
  style e8128657_5ca2_5835_1b1d_0ba8f6e44da0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/mutable-data-store.ts lines 74–76

	addAssetImports(assets: Array<string>, filePath?: string) {
		assets.forEach((asset) => this.addAssetImport(asset, filePath));
	}

Subdomains

Called By

Frequently Asked Questions

What does addAssetImports() do?
addAssetImports() is a function in the astro codebase, defined in packages/astro/src/content/mutable-data-store.ts.
Where is addAssetImports() defined?
addAssetImports() is defined in packages/astro/src/content/mutable-data-store.ts at line 74.
What does addAssetImports() call?
addAssetImports() calls 1 function(s): addAssetImport.
What calls addAssetImports()?
addAssetImports() is called by 1 function(s): scopedStore.

Analyze Your Own Codebase

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

Try Supermodel Free