Home / File/ main-deeply-nested.js — vite Source File

main-deeply-nested.js — vite Source File

Architecture documentation for main-deeply-nested.js, a javascript file in the vite codebase.

Entity Profile

Relationship Graph

Source Code

const worker = new Worker(
  new URL('../deeply-nested-worker.js', import.meta.url),
  { type: 'module' },
)

function text(el, text) {
  document.querySelector(el).textContent = text
}

worker.addEventListener('message', (ev) => {
  if (ev.data.type === 'deeplyNestedSecondWorker') {
    text('.deeply-nested-second-worker', JSON.stringify(ev.data.data))
  } else if (ev.data.type === 'deeplyNestedThirdWorker') {
    text('.deeply-nested-third-worker', JSON.stringify(ev.data.data))
  } else {
    text('.deeply-nested-worker', JSON.stringify(ev.data.data))
  }
})

Domain

Subdomains

Functions

Frequently Asked Questions

What does main-deeply-nested.js do?
main-deeply-nested.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain, BuildPipeline subdomain.
What functions are defined in main-deeply-nested.js?
main-deeply-nested.js defines 1 function(s): text.
Where is main-deeply-nested.js in the architecture?
main-deeply-nested.js is located at playground/worker/worker/main-deeply-nested.js (domain: ViteCore, subdomain: BuildPipeline, directory: playground/worker/worker).

Analyze Your Own Codebase

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

Try Supermodel Free