Home / File/ serve.ts — vite Source File

serve.ts — vite Source File

Architecture documentation for serve.ts, a typescript file in the vite codebase. 2 imports, 1 dependents.

File typescript ViteCore ConfigEngine 2 imports 1 dependents 2 functions

Entity Profile

Dependency Diagram

graph LR
  5207a374_7a47_9f47_013b_d15becbef767["serve.ts"]
  a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"]
  5207a374_7a47_9f47_013b_d15becbef767 --> a340ba46_b2b7_3048_3bb3_6907a74c8464
  d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"]
  5207a374_7a47_9f47_013b_d15becbef767 --> d3fd5575_295b_d6be_24dd_62d277645dc9
  bb44d8bf_6bbb_4d69_abfb_7511a2ea1712["tsconfig-json-load-error.spec.ts"]
  bb44d8bf_6bbb_4d69_abfb_7511a2ea1712 --> 5207a374_7a47_9f47_013b_d15becbef767
  style 5207a374_7a47_9f47_013b_d15becbef767 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { afterAll } from 'vitest'
import { startDefaultServe } from '~utils'

export let serveError: Error | undefined

export async function serve() {
  try {
    await startDefaultServe()
  } catch (e) {
    serveError = e
  }
}

export function clearServeError() {
  serveError = undefined
}

afterAll(() => {
  if (serveError) {
    throw serveError
  }
})

Domain

Subdomains

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

What does serve.ts do?
serve.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in serve.ts?
serve.ts defines 2 function(s): clearServeError, serve.
What does serve.ts depend on?
serve.ts imports 2 module(s): vitest, ~utils.
What files import serve.ts?
serve.ts is imported by 1 file(s): tsconfig-json-load-error.spec.ts.
Where is serve.ts in the architecture?
serve.ts is located at playground/tsconfig-json-load-error/__tests__/serve.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/tsconfig-json-load-error/__tests__).

Analyze Your Own Codebase

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

Try Supermodel Free