index.js — vite Source File
Architecture documentation for index.js, a javascript file in the vite codebase.
Entity Profile
Source Code
// Importing a shared dependency used by other modules,
// so dependency optimizer creates a common chunk.
// This is used to setup a test scenario, where dep scanner
// could not determine all of the used dependencies on first
// pass, e.g., a dependency that is aliased using an absolute
// path, in which case it used to trigger unnecessary "full
// reloads" invalidating all modules in a module graph.
const cloneDeep = require('lodash/cloneDeep')
// no-op, using imported module for sake of completeness
module.exports = cloneDeep({
message: 'From dep-alias-using-absolute-path',
}).message
Source
Frequently Asked Questions
What does index.js do?
index.js is a source file in the vite codebase, written in javascript.
Where is index.js in the architecture?
index.js is located at playground/optimize-deps/dep-alias-using-absolute-path/index.js (directory: playground/optimize-deps/dep-alias-using-absolute-path).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free