Home / File/ legacy.ts — astro Source File

legacy.ts — astro Source File

Architecture documentation for legacy.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.

File typescript 3 imports

Entity Profile

Dependency Diagram

graph LR
  9b1490ba_d687_eb7a_2861_f9086e570204["legacy.ts"]
  63ca69d3_187a_78ae_29a2_b62755ae5cda["virtual:astro:adapter-config"]
  9b1490ba_d687_eb7a_2861_f9086e570204 --> 63ca69d3_187a_78ae_29a2_b62755ae5cda
  c457f310_8df1_5df9_caba_36af1919c6b3["virtual:astro:adapter-entrypoint"]
  9b1490ba_d687_eb7a_2861_f9086e570204 --> c457f310_8df1_5df9_caba_36af1919c6b3
  7fa0f224_0fa3_4cdf_ea00_731b36139af8["virtual:astro:manifest"]
  9b1490ba_d687_eb7a_2861_f9086e570204 --> 7fa0f224_0fa3_4cdf_ea00_731b36139af8
  style 9b1490ba_d687_eb7a_2861_f9086e570204 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { args } from 'virtual:astro:adapter-config';
import * as serverEntrypointModule from 'virtual:astro:adapter-entrypoint';
import { manifest } from 'virtual:astro:manifest';

const _exports = serverEntrypointModule.createExports?.(manifest, args) || serverEntrypointModule;

// NOTE: This is intentionally obfuscated!
// Do NOT simplify this to something like `serverEntrypointModule.start?.(_manifest, _args)`
// They are NOT equivalent! Some bundlers will throw if `start` is not exported, but we
// only want to silently ignore it... hence the dynamic, obfuscated weirdness.
const _start = 'start';
if (Object.prototype.hasOwnProperty.call(serverEntrypointModule, _start)) {
	(serverEntrypointModule as any)[_start](manifest, args);
}

export default _exports;

Dependencies

  • virtual:astro:adapter-config
  • virtual:astro:adapter-entrypoint
  • virtual:astro:manifest

Frequently Asked Questions

What does legacy.ts do?
legacy.ts is a source file in the astro codebase, written in typescript.
What does legacy.ts depend on?
legacy.ts imports 3 module(s): virtual:astro:adapter-config, virtual:astro:adapter-entrypoint, virtual:astro:manifest.
Where is legacy.ts in the architecture?
legacy.ts is located at packages/astro/src/entrypoints/legacy.ts (directory: packages/astro/src/entrypoints).

Analyze Your Own Codebase

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

Try Supermodel Free