vite.config.js — vite Source File
Architecture documentation for vite.config.js, a javascript file in the vite codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 210c3e36_2564_e92f_1a76_edcc488583f0["vite.config.js"] 54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"] 210c3e36_2564_e92f_1a76_edcc488583f0 --> 54c37fea_4fe7_2693_71cb_1276b77f55f9 style 210c3e36_2564_e92f_1a76_edcc488583f0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { defaultClientConditions, defineConfig } from 'vite'
export default defineConfig({
build: {
minify: false,
},
resolve: {
dedupe: ['react'],
},
ssr: {
target: 'webworker',
noExternal: ['this-should-be-replaced-by-the-boolean'],
// Some webworker builds may choose to externalize node builtins as they may be implemented
// in the runtime, and so we can externalize it when bundling.
external: ['node:assert'],
resolve: {
conditions: [...defaultClientConditions, 'worker'],
},
},
plugins: [
{
name: '@vitejs/test-ssr-webworker/no-external',
config() {
return {
ssr: {
noExternal: true,
},
}
},
},
{
name: '@vitejs/test-ssr-webworker/no-external-array',
config() {
return {
ssr: {
noExternal: ['this-should-not-replace-the-boolean'],
},
}
},
},
],
})
Dependencies
- vite
Source
Frequently Asked Questions
What does vite.config.js do?
vite.config.js is a source file in the vite codebase, written in javascript.
What does vite.config.js depend on?
vite.config.js imports 1 module(s): vite.
Where is vite.config.js in the architecture?
vite.config.js is located at playground/ssr-webworker/vite.config.js (directory: playground/ssr-webworker).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free