Skip to main content

CompilationDependencies

Collect module-resolution dependencies for compiler caching and watch integration.

Import​

import { CompilationDependencies } from '@bedrock-core/builder-bundler/dependencies';

Signature​

new CompilationDependencies(root: string, config?: string)

Parameters​

ParameterTypeDefaultDescription
rootstring—Project directory for compiler configuration
configstring—Optional tsconfig path relative to root

Members​

MemberBehavior
filesSet of observed input paths and missing candidates
candidates(file)Track a resolved path, alternative extensions, index files and package metadata
imports(specifier, directory)Track relative, package and tsconfig-alias resolution candidates
parents(directory)Track ancestor package metadata

Notes​

Missing candidates matter: adding a file can change which module a later build resolves. This class collects dependency paths; it does not watch them or compile an entry.