Home / File/ index.js — vite Source File

index.js — vite Source File

Architecture documentation for index.js, a javascript file in the vite codebase.

Entity Profile

Source Code

const modules = import.meta.glob('./*.(js|ts)', { eager: true })
const globWithAlias = import.meta.glob('@dir/al*.js', { eager: true })

// test negative glob
import.meta.glob(['@dir/*.js', '!@dir/x.js'])
import.meta.glob(['!@dir/x.js', '@dir/*.js'])

// test for sourcemap
console.log('hello')

export { modules, globWithAlias }

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/glob-import/dir/index.js (directory: playground/glob-import/dir).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free