Home / File/ dynamic-import.js — vite Source File

dynamic-import.js — vite Source File

Architecture documentation for dynamic-import.js, a javascript file in the vite codebase. 3 imports, 0 dependents.

File javascript ViteCore ConfigEngine 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  bdee79ae_fb78_8a29_95de_3276dab16a77["dynamic-import.js"]
  5567590d_8897_830e_9892_ef7be37de253["simple.js"]
  bdee79ae_fb78_8a29_95de_3276dab16a77 --> 5567590d_8897_830e_9892_ef7be37de253
  51e96894_3556_ed5c_1ede_97d449867adf["node:path"]
  bdee79ae_fb78_8a29_95de_3276dab16a77 --> 51e96894_3556_ed5c_1ede_97d449867adf
  6feed3e8_55b8_cce7_b5ef_e40b872585f7["node:url"]
  bdee79ae_fb78_8a29_95de_3276dab16a77 --> 6feed3e8_55b8_cce7_b5ef_e40b872585f7
  style bdee79ae_fb78_8a29_95de_3276dab16a77 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import path from 'node:path'
import * as staticModule from './simple'
import { pathToFileURL } from 'node:url'

export const initialize = async () => {
  const nameRelative = './simple'
  const nameAbsolute = '/fixtures/simple'
  const nameAbsoluteExtension = '/fixtures/simple.js'
  const absolutePath = path.join(import.meta.dirname, 'simple.js')
  const fileUrl = pathToFileURL(absolutePath)
  return {
    dynamicProcessed: await import('./simple'),
    dynamicRelative: await import(nameRelative),
    dynamicAbsolute: await import(nameAbsolute),
    dynamicAbsoluteExtension: await import(nameAbsoluteExtension),
    dynamicAbsoluteFull: await import(
      (process.platform === 'win32' ? '/@fs/' : '') + absolutePath
    ),
    dynamicFileUrl: await import(fileUrl),
    static: staticModule,
  }
}

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does dynamic-import.js do?
dynamic-import.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in dynamic-import.js?
dynamic-import.js defines 1 function(s): initialize.
What does dynamic-import.js depend on?
dynamic-import.js imports 3 module(s): node:path, node:url, simple.js.
Where is dynamic-import.js in the architecture?
dynamic-import.js is located at packages/vite/src/node/ssr/runtime/__tests__/fixtures/dynamic-import.js (domain: ViteCore, subdomain: ConfigEngine, directory: packages/vite/src/node/ssr/runtime/__tests__/fixtures).

Analyze Your Own Codebase

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

Try Supermodel Free