Home / Function/ buildWithPlugin() — vite Function Reference

buildWithPlugin() — vite Function Reference

Architecture documentation for the buildWithPlugin() function in hooks.spec.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  7334fb40_099e_4ae2_47cc_9569925a344a["buildWithPlugin()"]
  3fd9950b_bcb7_a128_9aed_592d2aca94e6["hooks.spec.ts"]
  7334fb40_099e_4ae2_47cc_9569925a344a -->|defined in| 3fd9950b_bcb7_a128_9aed_592d2aca94e6
  bbded320_f805_2b6e_3109_088d194024a2["build()"]
  7334fb40_099e_4ae2_47cc_9569925a344a -->|calls| bbded320_f805_2b6e_3109_088d194024a2
  style 7334fb40_099e_4ae2_47cc_9569925a344a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/__tests__/plugins/hooks.spec.ts lines 75–84

const buildWithPlugin = async (plugin: Plugin) => {
  await build({
    root: path.resolve(import.meta.dirname, '../packages/build-project'),
    logLevel: 'error',
    build: {
      write: false,
    },
    plugins: [plugin, resolveEntryPlugin],
  })
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does buildWithPlugin() do?
buildWithPlugin() is a function in the vite codebase, defined in packages/vite/src/node/__tests__/plugins/hooks.spec.ts.
Where is buildWithPlugin() defined?
buildWithPlugin() is defined in packages/vite/src/node/__tests__/plugins/hooks.spec.ts at line 75.
What does buildWithPlugin() call?
buildWithPlugin() calls 1 function(s): build.

Analyze Your Own Codebase

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

Try Supermodel Free