entrypoint.ts — astro Source File
Architecture documentation for entrypoint.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d0781c85_d5b0_bbb7_2f9e_33703242c61a["entrypoint.ts"] c995d6da_e8ca_8156_18ca_b791a68abce0["../assets/services/sharp.js"] d0781c85_d5b0_bbb7_2f9e_33703242c61a --> c995d6da_e8ca_8156_18ca_b791a68abce0 baa53824_73a3_1e03_2043_4d0c058ecca5["../types/public/index.js"] d0781c85_d5b0_bbb7_2f9e_33703242c61a --> baa53824_73a3_1e03_2043_4d0c058ecca5 style d0781c85_d5b0_bbb7_2f9e_33703242c61a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// IMPORTANT: this file is the entrypoint for "astro/config". Keep it as light as possible!
import type { SharpImageServiceConfig } from '../assets/services/sharp.js';
import type { ImageServiceConfig } from '../types/public/index.js';
export { fontProviders } from '../assets/fonts/providers/index.js';
export { mergeConfig } from '../core/config/merge.js';
export { validateConfig } from '../core/config/validate.js';
export { envField } from '../env/config.js';
export { defineConfig, getViteConfig } from './index.js';
export { sessionDrivers } from '../core/session/drivers.js';
/**
* Return the configuration needed to use the Sharp-based image service
*/
export function sharpImageService(config: SharpImageServiceConfig = {}): ImageServiceConfig {
return {
entrypoint: 'astro/assets/services/sharp',
config,
};
}
/**
* Return the configuration needed to use the passthrough image service. This image services does not perform
* any image transformations, and is mainly useful when your platform does not support other image services, or you are
* not using Astro's built-in image processing.
* See: https://docs.astro.build/en/guides/images/#configure-no-op-passthrough-service
*/
export function passthroughImageService(): ImageServiceConfig {
return {
entrypoint: 'astro/assets/services/noop',
config: {},
};
}
Domain
Subdomains
Dependencies
- ../assets/services/sharp.js
- ../types/public/index.js
Source
Frequently Asked Questions
What does entrypoint.ts do?
entrypoint.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 entrypoint.ts?
entrypoint.ts defines 2 function(s): passthroughImageService, sharpImageService.
What does entrypoint.ts depend on?
entrypoint.ts imports 2 module(s): ../assets/services/sharp.js, ../types/public/index.js.
Where is entrypoint.ts in the architecture?
entrypoint.ts is located at packages/astro/src/config/entrypoint.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/config).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free