Home / File/ index.js — vite Source File

index.js — vite Source File

Architecture documentation for index.js, a javascript file in the vite codebase. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  36cc19c2_7009_12aa_c186_2d745f4b08a0["index.js"]
  5d5715a3_449b_0911_5037_2596b6003ba9["foo.json"]
  36cc19c2_7009_12aa_c186_2d745f4b08a0 --> 5d5715a3_449b_0911_5037_2596b6003ba9
  df04c4fe_97c0_e5a8_0efb_ce2e3d6fc16f["bar.json"]
  36cc19c2_7009_12aa_c186_2d745f4b08a0 --> df04c4fe_97c0_e5a8_0efb_ce2e3d6fc16f
  style 36cc19c2_7009_12aa_c186_2d745f4b08a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import barJson from 'virtual:/bar.json'
import fooJson from './foo.json'

// 'TRANSFORM_COUNT' is injected by the transform plugin
document.getElementById('transform-count').innerHTML = TRANSFORM_COUNT

document.getElementById('module-type-json-pre').innerHTML =
  fooJson.moduleTypePre
document.getElementById('module-type-json-post').innerHTML =
  fooJson.moduleTypePost

document.getElementById('module-type-json-virtual-pre').innerHTML =
  barJson.moduleTypePre
document.getElementById('module-type-json-virtual-post').innerHTML =
  barJson.moduleTypePost

// 'LAZY_HOOK_FILTER_CONTENT' is replaced by lazy-hook-filter plugin
document.getElementById('lazy-hook-filter').innerHTML =
  'LAZY_HOOK_FILTER_CONTENT'

Domain

Dependencies

Frequently Asked Questions

What does index.js do?
index.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain.
What does index.js depend on?
index.js imports 2 module(s): bar.json, foo.json.
Where is index.js in the architecture?
index.js is located at playground/transform-plugin/index.js (domain: ViteCore, directory: playground/transform-plugin).

Analyze Your Own Codebase

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

Try Supermodel Free