DevEnvironmentOptions Type — vite Architecture
Architecture documentation for the DevEnvironmentOptions type/interface in config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 0b4a1d3c_f4e1_0cbf_24b9_c6e5ba875511["DevEnvironmentOptions"] 7da774f9_eca5_d54e_6e01_6bee7d460a2b["config.ts"] 0b4a1d3c_f4e1_0cbf_24b9_c6e5ba875511 -->|defined in| 7da774f9_eca5_d54e_6e01_6bee7d460a2b style 0b4a1d3c_f4e1_0cbf_24b9_c6e5ba875511 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/config.ts lines 189–240
export interface DevEnvironmentOptions {
/**
* Files to be pre-transformed. Supports glob patterns.
*/
warmup?: string[]
/**
* Pre-transform known direct imports
* defaults to true for the client environment, false for the rest
*/
preTransformRequests?: boolean
/**
* Enables sourcemaps during dev
* @default { js: true }
* @experimental
*/
sourcemap?: boolean | { js?: boolean; css?: boolean }
/**
* Whether or not to ignore-list source files in the dev server sourcemap, used to populate
* the [`x_google_ignoreList` source map extension](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).
*
* By default, it excludes all paths containing `node_modules`. You can pass `false` to
* disable this behavior, or, for full control, a function that takes the source path and
* sourcemap path and returns whether to ignore the source path.
*/
sourcemapIgnoreList?:
| false
| ((sourcePath: string, sourcemapPath: string) => boolean)
/**
* create the Dev Environment instance
*/
createEnvironment?: (
name: string,
config: ResolvedConfig,
context: CreateDevEnvironmentContext,
) => Promise<DevEnvironment> | DevEnvironment
/**
* For environments that support a full-reload, like the client, we can short-circuit when
* restarting the server throwing early to stop processing current files. We avoided this for
* SSR requests. Maybe this is no longer needed.
* @experimental
*/
recoverable?: boolean
/**
* For environments associated with a module runner.
* By default, it is false for the client environment and true for non-client environments.
* This option can also be used instead of the removed config.experimental.skipSsrTransform.
*/
moduleRunnerTransform?: boolean
}
Defined In
Source
Frequently Asked Questions
What is the DevEnvironmentOptions type?
DevEnvironmentOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/config.ts.
Where is DevEnvironmentOptions defined?
DevEnvironmentOptions is defined in packages/vite/src/node/config.ts at line 189.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free