main.ts — vite Source File
Architecture documentation for main.ts, a typescript file in the vite codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f3cbb1e5_c80d_111d_3e5a_dd59daf27e85["main.ts"] f94d1401_a60f_bc22_36ef_a2f8a47cb267["counter.ts"] f3cbb1e5_c80d_111d_3e5a_dd59daf27e85 --> f94d1401_a60f_bc22_36ef_a2f8a47cb267 809a114a_67e4_0e6a_b9eb_9be889875154["useCounter"] f3cbb1e5_c80d_111d_3e5a_dd59daf27e85 --> 809a114a_67e4_0e6a_b9eb_9be889875154 06ff20d6_a554_4239_74b1_8737318987c5["vue"] f3cbb1e5_c80d_111d_3e5a_dd59daf27e85 --> 06ff20d6_a554_4239_74b1_8737318987c5 style f3cbb1e5_c80d_111d_3e5a_dd59daf27e85 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { watchEffect } from 'vue'
import { useCounter } from './counter'
const { count, increment, decrement } = useCounter()
watchEffect(() => {
document.querySelector('#app')!.textContent = `${count.value}`
})
const timer = setInterval(() => {
if (count.value < 6) {
increment()
} else {
decrement()
clearInterval(timer)
}
}, 1000)
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does main.ts do?
main.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in main.ts?
main.ts defines 1 function(s): timer.
What does main.ts depend on?
main.ts imports 3 module(s): counter.ts, useCounter, vue.
Where is main.ts in the architecture?
main.ts is located at playground/devtools/src/main.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/devtools/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free