buildProject() — vite Function Reference
Architecture documentation for the buildProject() function in modulePreloadPolyfill.spec.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 9b73feeb_5714_f219_6b88_3cc70c29cfe6["buildProject()"] 0d441474_bd18_6871_34d1_98946e530e5a["modulePreloadPolyfill.spec.ts"] 9b73feeb_5714_f219_6b88_3cc70c29cfe6 -->|defined in| 0d441474_bd18_6871_34d1_98946e530e5a bbded320_f805_2b6e_3109_088d194024a2["build()"] 9b73feeb_5714_f219_6b88_3cc70c29cfe6 -->|calls| bbded320_f805_2b6e_3109_088d194024a2 style 9b73feeb_5714_f219_6b88_3cc70c29cfe6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/__tests__/plugins/modulePreloadPolyfill/modulePreloadPolyfill.spec.ts lines 6–37
const buildProject = ({ format = 'es' as ModuleFormat } = {}) =>
build({
logLevel: 'silent',
build: {
write: false,
rollupOptions: {
input: 'main.js',
output: {
format,
},
treeshake: {
moduleSideEffects: false,
},
},
minify: false,
},
plugins: [
{
name: 'test',
resolveId(id) {
if (id === 'main.js') {
return `\0${id}`
}
},
load(id) {
if (id === '\0main.js') {
return `import '${modulePreloadPolyfillId}'`
}
},
},
],
}) as Promise<RolldownOutput>
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does buildProject() do?
buildProject() is a function in the vite codebase, defined in packages/vite/src/node/__tests__/plugins/modulePreloadPolyfill/modulePreloadPolyfill.spec.ts.
Where is buildProject() defined?
buildProject() is defined in packages/vite/src/node/__tests__/plugins/modulePreloadPolyfill/modulePreloadPolyfill.spec.ts at line 6.
What does buildProject() call?
buildProject() 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