testVue() — vite Function Reference
Architecture documentation for the testVue() function in vite.config.js from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 56d7fbb4_10d8_805f_c6b4_95ecb5823bfc["testVue()"] 4f18463e_0189_3a52_f9d6_673fd03d4b34["vite.config.js"] 56d7fbb4_10d8_805f_c6b4_95ecb5823bfc -->|defined in| 4f18463e_0189_3a52_f9d6_673fd03d4b34 style 56d7fbb4_10d8_805f_c6b4_95ecb5823bfc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/optimize-deps/vite.config.js lines 74–99
function testVue() {
return {
name: 'testvue',
transform(code, id) {
if (id.includes('dep-linked-include/Test.vue')) {
return {
code: `
import { defineComponent } from 'vue'
export default defineComponent({
name: 'Test',
render() {
return '[success] rendered from Vue'
}
})
`.trim(),
}
}
// fallback to empty module for other vue files
if (!id.startsWith('\0') && id.endsWith('.vue')) {
return { code: `export default {}` }
}
},
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testVue() do?
testVue() is a function in the vite codebase, defined in playground/optimize-deps/vite.config.js.
Where is testVue() defined?
testVue() is defined in playground/optimize-deps/vite.config.js at line 74.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free