Home / Function/ start() — vite Function Reference

start() — vite Function Reference

Architecture documentation for the start() function in index.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  21c23839_d37b_7105_7569_d8c6f394b60d["start()"]
  ebed723b_f143_390f_439d_dfaa680d6d16["index.ts"]
  21c23839_d37b_7105_7569_d8c6f394b60d -->|defined in| ebed723b_f143_390f_439d_dfaa680d6d16
  6d5b7f61_22fe_5498_a292_5c478890d5f3["init()"]
  6d5b7f61_22fe_5498_a292_5c478890d5f3 -->|calls| 21c23839_d37b_7105_7569_d8c6f394b60d
  282a997b_9e00_e156_622e_62b2131bc496["run()"]
  21c23839_d37b_7105_7569_d8c6f394b60d -->|calls| 282a997b_9e00_e156_622e_62b2131bc496
  a98fac98_65d4_fff2_41b7_d0dbf3ca8339["getRunCommand()"]
  21c23839_d37b_7105_7569_d8c6f394b60d -->|calls| a98fac98_65d4_fff2_41b7_d0dbf3ca8339
  style 21c23839_d37b_7105_7569_d8c6f394b60d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/create-vite/src/index.ts lines 434–444

function start(root: string, agent: string) {
  if (process.env._VITE_TEST_CLI) {
    prompts.log.step('Starting dev server... (skipped in test)')
    return
  }
  prompts.log.step('Starting dev server...')
  run(getRunCommand(agent, 'dev'), {
    stdio: 'inherit',
    cwd: root,
  })
}

Subdomains

Called By

Frequently Asked Questions

What does start() do?
start() is a function in the vite codebase, defined in packages/create-vite/src/index.ts.
Where is start() defined?
start() is defined in packages/create-vite/src/index.ts at line 434.
What does start() call?
start() calls 2 function(s): getRunCommand, run.
What calls start()?
start() is called by 1 function(s): init.

Analyze Your Own Codebase

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

Try Supermodel Free