Home / File/ index.ts — astro Source File

index.ts — astro Source File

Architecture documentation for index.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
  79808134_e601_d5cb_bb64_ccd2b6ae31d1["index.ts"]
  263e522e_1aa5_ebc3_e7d6_45ebc51671f7["vite"]
  79808134_e601_d5cb_bb64_ccd2b6ae31d1 --> 263e522e_1aa5_ebc3_e7d6_45ebc51671f7
  style 79808134_e601_d5cb_bb64_ccd2b6ae31d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { Plugin as VitePlugin } from 'vite';

export default function vitePluginFileURL(): VitePlugin {
	return {
		name: 'astro:vite-plugin-file-url',
		enforce: 'pre',
		resolveId: {
			filter: {
				id: /^file:\/\//,
			},
			handler(id, importer) {
				const rest = id.slice(7);
				return this.resolve(rest, importer);
			},
		},
	};
}

Domain

Subdomains

Dependencies

  • vite

Frequently Asked Questions

What does index.ts do?
index.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 index.ts?
index.ts defines 1 function(s): vitePluginFileURL.
What does index.ts depend on?
index.ts imports 1 module(s): vite.
Where is index.ts in the architecture?
index.ts is located at packages/astro/src/vite-plugin-fileurl/index.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/vite-plugin-fileurl).

Analyze Your Own Codebase

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

Try Supermodel Free