rolldown.dts.config.ts — vite Source File
Architecture documentation for rolldown.dts.config.ts, a typescript file in the vite codebase. 9 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c2239521_b59e_589c_03c3_99028d5442bd["rolldown.dts.config.ts"] e6032fbc_44cf_58d6_868d_dd15106c18c5["node:fs"] c2239521_b59e_589c_03c3_99028d5442bd --> e6032fbc_44cf_58d6_868d_dd15106c18c5 ad382781_051b_4f17_29a3_3e882464e6c0["node:module"] c2239521_b59e_589c_03c3_99028d5442bd --> ad382781_051b_4f17_29a3_3e882464e6c0 693ca867_249b_3e5a_0ce1_8930413b7fcd["rolldown"] c2239521_b59e_589c_03c3_99028d5442bd --> 693ca867_249b_3e5a_0ce1_8930413b7fcd d5925040_3eed_2e33_5e8b_b5bb5357a3c5["parseAst"] c2239521_b59e_589c_03c3_99028d5442bd --> d5925040_3eed_2e33_5e8b_b5bb5357a3c5 e689310f_6799_4612_0b67_6051031c1391["rolldown-plugin-dts"] c2239521_b59e_589c_03c3_99028d5442bd --> e689310f_6799_4612_0b67_6051031c1391 58a7011d_3425_df76_4672_23715ace7358["parser"] c2239521_b59e_589c_03c3_99028d5442bd --> 58a7011d_3425_df76_4672_23715ace7358 9e9dbb79_1534_cc80_fad3_0ca53a4e579d["estree-walker"] c2239521_b59e_589c_03c3_99028d5442bd --> 9e9dbb79_1534_cc80_fad3_0ca53a4e579d ff79973e_f09f_1c6b_f6b5_d1707df47116["magic-string"] c2239521_b59e_589c_03c3_99028d5442bd --> ff79973e_f09f_1c6b_f6b5_d1707df47116 b1047419_5d23_23a5_c856_99c2b7bbc43a["types"] c2239521_b59e_589c_03c3_99028d5442bd --> b1047419_5d23_23a5_c856_99c2b7bbc43a style c2239521_b59e_589c_03c3_99028d5442bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { readFileSync } from 'node:fs'
import { builtinModules } from 'node:module'
import { defineConfig } from 'rolldown'
import type {
OutputChunk,
Plugin,
PluginContext,
RenderedChunk,
} from 'rolldown'
import { parseAst } from 'rolldown/parseAst'
import { dts } from 'rolldown-plugin-dts'
import { parse as parseWithBabel } from '@babel/parser'
import { walk } from 'estree-walker'
import MagicString from 'magic-string'
import type {
Directive,
ModuleExportName,
Program,
Statement,
} from '@oxc-project/types'
const pkg = JSON.parse(
readFileSync(new URL('./package.json', import.meta.url)).toString(),
)
const external = [
/^node:*/,
/^vite\//,
/^rolldown\//,
/^#types\//,
...Object.keys(pkg.dependencies),
...Object.keys(pkg.peerDependencies),
]
export default defineConfig({
input: {
index: './src/node/index.ts',
'module-runner': './src/module-runner/index.ts',
internal: './src/node/internalIndex.ts',
},
output: {
dir: './dist/node',
chunkFileNames: 'chunks/[name].d.ts',
format: 'esm',
},
treeshake: {
moduleSideEffects: 'no-external',
},
external,
plugins: [
patchTypes(),
addNodePrefix(),
dts({
tsconfig: './tsconfig.base.json',
compilerOptions: {
noEmit: false,
skipLibCheck: true, // lib check is done on final types
stripInternal: true,
paths: {
'vite/module-runner': ['./src/module-runner'],
// ... (377 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- estree-walker
- magic-string
- node:fs
- node:module
- parseAst
- parser
- rolldown
- rolldown-plugin-dts
- types
Source
Frequently Asked Questions
What does rolldown.dts.config.ts do?
rolldown.dts.config.ts is a source file in the vite codebase, written in typescript. It belongs to the HMRClient domain, HotRuntime subdomain.
What functions are defined in rolldown.dts.config.ts?
rolldown.dts.config.ts defines 13 function(s): addNodePrefix, cleanUnnecessaryComments, escapeRegex, getAllImportBindings, getImportBindings, patchTypes, removeInternal, replaceConfusingTypeNames, stringifyModuleExportName, stripInternalTypes, and 3 more.
What does rolldown.dts.config.ts depend on?
rolldown.dts.config.ts imports 9 module(s): estree-walker, magic-string, node:fs, node:module, parseAst, parser, rolldown, rolldown-plugin-dts, and 1 more.
Where is rolldown.dts.config.ts in the architecture?
rolldown.dts.config.ts is located at packages/vite/rolldown.dts.config.ts (domain: HMRClient, subdomain: HotRuntime, directory: packages/vite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free