vite.config.ts — vite Source File
Architecture documentation for vite.config.ts, a typescript file in the vite codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 20d8957f_ba11_8d96_3fec_b1933e2fc3b9["vite.config.ts"] 54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"] 20d8957f_ba11_8d96_3fec_b1933e2fc3b9 --> 54c37fea_4fe7_2693_71cb_1276b77f55f9 style 20d8957f_ba11_8d96_3fec_b1933e2fc3b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
type Connect,
type Plugin,
type PluginOption,
createServerModuleRunner,
defineConfig,
} from 'vite'
export default defineConfig((env) => ({
clearScreen: false,
appType: 'custom',
plugins: [
vitePluginSsrMiddleware({
entry: '/src/entry-server',
preview: new URL('./dist/server/index.js', import.meta.url).toString(),
}),
{
name: 'global-server',
configureServer(server) {
Object.assign(globalThis, { __globalServer: server })
},
},
{
name: 'build-client',
async buildApp(builder) {
await builder.build(builder.environments.client)
},
},
],
resolve: {
noExternal: true,
},
environments: {
client: {
build: {
minify: false,
sourcemap: true,
outDir: 'dist/client',
},
optimizeDeps: {
rolldownOptions: {
// manual test for https://github.com/vitejs/rolldown-vite/issues/416
transform: {},
},
},
},
ssr: {
optimizeDeps: {
noDiscovery: false,
},
build: {
outDir: 'dist/server',
rollupOptions: {
input: {
index: '/src/entry-server',
},
},
},
},
},
// ... (62 more lines)
Domain
Subdomains
Functions
Dependencies
- vite
Source
Frequently Asked Questions
What does vite.config.ts do?
vite.config.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 vite.config.ts?
vite.config.ts defines 1 function(s): vitePluginSsrMiddleware.
What does vite.config.ts depend on?
vite.config.ts imports 1 module(s): vite.
Where is vite.config.ts in the architecture?
vite.config.ts is located at playground/environment-react-ssr/vite.config.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/environment-react-ssr).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free