json.ts — vite Source File
Architecture documentation for json.ts, a typescript file in the vite codebase. 0 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40["json.ts"] 7da774f9_eca5_d54e_6e01_6bee7d460a2b["config.ts"] 7da774f9_eca5_d54e_6e01_6bee7d460a2b --> 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40 20c20aaf_ad5b_4014_72b5_c8262a2b5be1["ssrTransform.ts"] 20c20aaf_ad5b_4014_72b5_c8262a2b5be1 --> 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40 style 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export interface JsonOptions {
/**
* Generate a named export for every property of the JSON object
* @default true
*/
namedExports?: boolean
/**
* Generate performant output as JSON.parse("stringified").
*
* When set to 'auto', the data will be stringified only if the data is bigger than 10kB.
* @default 'auto'
*/
stringify?: boolean | 'auto'
}
const jsonLangs = `\\.(?:json|json5)(?:$|\\?)`
const jsonLangRE = new RegExp(jsonLangs)
export const isJSONRequest = (request: string): boolean =>
jsonLangRE.test(request)
Domain
Subdomains
Functions
Types
Source
Frequently Asked Questions
What does json.ts do?
json.ts is a source file in the vite codebase, written in typescript. It belongs to the PluginSystem domain, LegacySupport subdomain.
What functions are defined in json.ts?
json.ts defines 1 function(s): isJSONRequest.
What files import json.ts?
json.ts is imported by 2 file(s): config.ts, ssrTransform.ts.
Where is json.ts in the architecture?
json.ts is located at packages/vite/src/node/plugins/json.ts (domain: PluginSystem, subdomain: LegacySupport, directory: packages/vite/src/node/plugins).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free