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
  009792d8_fa5a_1d29_4aac_d248ee77f321["vite.config.js"]
  51e96894_3556_ed5c_1ede_97d449867adf["node:path"]
  009792d8_fa5a_1d29_4aac_d248ee77f321 --> 51e96894_3556_ed5c_1ede_97d449867adf
  54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"]
  009792d8_fa5a_1d29_4aac_d248ee77f321 --> 54c37fea_4fe7_2693_71cb_1276b77f55f9
  style 009792d8_fa5a_1d29_4aac_d248ee77f321 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

const dirname = import.meta.dirname

export default defineConfig({
  build: {
    manifest: true,
    rollupOptions: {
      input: {
        main: resolve(dirname, './index.html'),
        other: resolve(dirname, './other.js'),
        style2: resolve(dirname, './style2.js'),
        'shared-css-with-js': resolve(dirname, 'shared-css-with-js.html'),
        'shared-css-no-js': resolve(dirname, 'shared-css-no-js.html'),
      },
      output: {
        // manualChunks(id) {
        //   // make `chunk.css` it's own chunk for easier testing of pure css chunks
        //   if (id.includes('chunk.css')) {
        //     return 'chunk'
        //   }
        // },
        codeSplitting: {
          groups: [
            // make `chunk.css` it's own chunk for easier testing of pure css chunks
            {
              name: 'chunk',
              test: 'chunk.css',
            },
          ],
        },
      },
    },
  },
})

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/vite.config.js (directory: playground/css-codesplit).

Analyze Your Own Codebase

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

Try Supermodel Free