constants.ts — vite Source File
Architecture documentation for constants.ts, a typescript file in the vite codebase. 0 imports, 9 dependents.
Entity Profile
Dependency Diagram
graph LR ffe942a0_fdea_ef58_0f68_6f1fec25f285["constants.ts"] 9f67d7a4_f300_a592_a5b0_c8f97c2d3564["evaluatedModules.ts"] 9f67d7a4_f300_a592_a5b0_c8f97c2d3564 --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 569b12a9_015e_564e_efd3_205cedee54dd["hmrHandler.ts"] 569b12a9_015e_564e_efd3_205cedee54dd --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 c3eb47df_971b_0616_6c9f_29b3ded72224["css.ts"] c3eb47df_971b_0616_6c9f_29b3ded72224 --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 1ad5c135_fc65_cc8f_2918_6f109d7fd644["optimizedDeps.ts"] 1ad5c135_fc65_cc8f_2918_6f109d7fd644 --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 7916c84f_5621_2b3b_d220_a171ebce997f["environment.ts"] 7916c84f_5621_2b3b_d220_a171ebce997f --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 9da9b065_5c17_7764_d8e4_bd411021bf8d["transform.ts"] 9da9b065_5c17_7764_d8e4_bd411021bf8d --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 4b293f94_dc8f_b625_ac09_35b43008310b["fetchModule.ts"] 4b293f94_dc8f_b625_ac09_35b43008310b --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"] 031bc221_67a8_c579_f2bf_bb30a08beeb2 --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 abfc9e70_3c15_b3f0_a595_3cf27afb7e64["utils.ts"] abfc9e70_3c15_b3f0_a595_3cf27afb7e64 --> ffe942a0_fdea_ef58_0f68_6f1fec25f285 style ffe942a0_fdea_ef58_0f68_6f1fec25f285 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Prefix for resolved Ids that are not valid browser import specifiers
*/
export const VALID_ID_PREFIX = `/@id/`
/**
* Plugins that use 'virtual modules' (e.g. for helper functions), prefix the
* module ID with `\0`, a convention from the rollup ecosystem.
* This prevents other plugins from trying to process the id (like node resolution),
* and core features like sourcemaps can use this info to differentiate between
* virtual modules and regular files.
* `\0` is not a permitted char in import URLs so we have to replace them during
* import analysis. The id will be decoded back before entering the plugins pipeline.
* These encoded virtual ids are also prefixed by the VALID_ID_PREFIX, so virtual
* modules in the browser end up encoded as `/@id/__x00__{id}`
*/
export const NULL_BYTE_PLACEHOLDER = `__x00__`
export let SOURCEMAPPING_URL = 'sourceMa'
SOURCEMAPPING_URL += 'ppingURL'
export const MODULE_RUNNER_SOURCEMAPPING_SOURCE =
'//# sourceMappingSource=vite-generated'
export const ERR_OUTDATED_OPTIMIZED_DEP = 'ERR_OUTDATED_OPTIMIZED_DEP'
Domain
Imported By
- packages/vite/src/node/plugins/css.ts
- packages/vite/src/node/server/environment.ts
- packages/vite/src/module-runner/evaluatedModules.ts
- packages/vite/src/node/ssr/fetchModule.ts
- packages/vite/src/module-runner/hmrHandler.ts
- packages/vite/src/node/plugins/optimizedDeps.ts
- packages/vite/src/node/server/middlewares/transform.ts
- packages/vite/src/node/utils.ts
- packages/vite/src/shared/utils.ts
Source
Frequently Asked Questions
What does constants.ts do?
constants.ts is a source file in the vite codebase, written in typescript. It belongs to the HMRClient domain.
What files import constants.ts?
constants.ts is imported by 9 file(s): css.ts, environment.ts, evaluatedModules.ts, fetchModule.ts, hmrHandler.ts, optimizedDeps.ts, transform.ts, utils.ts, and 1 more.
Where is constants.ts in the architecture?
constants.ts is located at packages/vite/src/shared/constants.ts (domain: HMRClient, directory: packages/vite/src/shared).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free