SSROptions Type — vite Architecture
Architecture documentation for the SSROptions type/interface in index.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 7ca044d3_9cec_a27d_6c32_ee4c9c91b90f["SSROptions"] 49374947_ff6e_87cb_13b2_fec34d5712bc["index.ts"] 7ca044d3_9cec_a27d_6c32_ee4c9c91b90f -->|defined in| 49374947_ff6e_87cb_13b2_fec34d5712bc style 7ca044d3_9cec_a27d_6c32_ee4c9c91b90f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/ssr/index.ts lines 8–49
export interface SSROptions {
noExternal?: string | RegExp | (string | RegExp)[] | true
external?: string[] | true
/**
* Define the target for the ssr build. The browser field in package.json
* is ignored for node but used if webworker is the target
* This option will be removed in a future major version
* @default 'node'
*/
target?: SSRTarget
/**
* Control over which dependencies are optimized during SSR and esbuild options
* During build:
* no external CJS dependencies are optimized by default
* During dev:
* explicit no external CJS dependencies are optimized by default
* @experimental
*/
optimizeDeps?: SsrDepOptimizationConfig
resolve?: {
/**
* Conditions that are used in the plugin pipeline. The default value is the root config's `resolve.conditions`.
*
* Use this to override the default ssr conditions for the ssr build.
*
* @default rootConfig.resolve.conditions
*/
conditions?: string[]
/**
* Conditions that are used during ssr import (including `ssrLoadModule`) of externalized dependencies.
*
* @default ['node', 'module-sync']
*/
externalConditions?: string[]
mainFields?: string[]
}
}
Defined In
Source
Frequently Asked Questions
What is the SSROptions type?
SSROptions is a type/interface in the vite codebase, defined in packages/vite/src/node/ssr/index.ts.
Where is SSROptions defined?
SSROptions is defined in packages/vite/src/node/ssr/index.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free