dep.js — vite Source File
Architecture documentation for dep.js, a javascript file in the vite codebase.
Entity Profile
Source Code
// This file is depended by main.css via this.addWatchFile
export const color = 'red'
// Self-accept so that updating this file would not trigger a page reload.
// We only want to observe main.css updating itself.
if (import.meta.hot) {
import.meta.hot.accept()
}
Source
Frequently Asked Questions
What does dep.js do?
dep.js is a source file in the vite codebase, written in javascript.
Where is dep.js in the architecture?
dep.js is located at playground/hmr/css-deps/dep.js (directory: playground/hmr/css-deps).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free