Home / File/ import-plugin-browser.ts — astro Source File

import-plugin-browser.ts — astro Source File

Architecture documentation for import-plugin-browser.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

File typescript CoreAstro RenderingEngine 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ffc8a6cb_350b_ac23_852a_b1d522d34751["import-plugin-browser.ts"]
  54ce55cc_9dc1_4ebd_28dd_358c1e22d4e7["unified"]
  ffc8a6cb_350b_ac23_852a_b1d522d34751 --> 54ce55cc_9dc1_4ebd_28dd_358c1e22d4e7
  style ffc8a6cb_350b_ac23_852a_b1d522d34751 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// This file should be imported as `#import-plugin`
import type * as unified from 'unified';

// In the browser, we can try to do a plain import
export async function importPlugin(p: string): Promise<unified.Plugin> {
	const importResult = await import(p);
	return importResult.default;
}

Domain

Subdomains

Functions

Dependencies

  • unified

Frequently Asked Questions

What does import-plugin-browser.ts do?
import-plugin-browser.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in import-plugin-browser.ts?
import-plugin-browser.ts defines 1 function(s): importPlugin.
What does import-plugin-browser.ts depend on?
import-plugin-browser.ts imports 1 module(s): unified.
Where is import-plugin-browser.ts in the architecture?
import-plugin-browser.ts is located at packages/markdown/remark/src/import-plugin-browser.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/markdown/remark/src).

Analyze Your Own Codebase

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

Try Supermodel Free