Home / File/ vite.config.js — vite Source File

vite.config.js — vite Source File

Architecture documentation for vite.config.js, a javascript file in the vite codebase. 2 imports, 0 dependents.

File javascript 2 imports

Entity Profile

Dependency Diagram

graph LR
  bf97d340_7f38_927e_0af9_24d1e10092aa["vite.config.js"]
  51e96894_3556_ed5c_1ede_97d449867adf["node:path"]
  bf97d340_7f38_927e_0af9_24d1e10092aa --> 51e96894_3556_ed5c_1ede_97d449867adf
  54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"]
  bf97d340_7f38_927e_0af9_24d1e10092aa --> 54c37fea_4fe7_2693_71cb_1276b77f55f9
  style bf97d340_7f38_927e_0af9_24d1e10092aa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { resolve } from 'node:path'
import { defineConfig } from 'vite'

export default defineConfig({
  build: {
    outDir: './dist',
    manifest: true,
    rollupOptions: {
      input: {
        main: resolve(import.meta.dirname, './index.html'),
        other: resolve(import.meta.dirname, './other.js'),
      },
      treeshake: false,
      output: {
        format: 'cjs',
        // freeze: false,
        externalLiveBindings: false,
      },
    },
  },
})

Dependencies

  • node:path
  • vite

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 2 module(s): node:path, vite.
Where is vite.config.js in the architecture?
vite.config.js is located at playground/css-codesplit-cjs/vite.config.js (directory: playground/css-codesplit-cjs).

Analyze Your Own Codebase

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

Try Supermodel Free