Angular Modernizer
    Preparing search index...

    Interface PathAliasResolverOptions

    Options for PathAliasResolver configuration

    interface PathAliasResolverOptions {
        baseDir?: string;
        customAliases?: PathAliasMapping[];
        enabled?: boolean;
        normalizePaths?: boolean;
        preserveAliases?: boolean;
        tsconfigPath?: string;
    }
    Index

    Properties

    baseDir?: string

    Base directory for resolving relative paths

    project.getCompilerOptions().rootDir || project root
    
    customAliases?: PathAliasMapping[]

    Custom tsconfig path overrides If provided, these will be merged with tsconfig.json paths

    enabled?: boolean

    Whether path alias resolution is enabled When false, preprocessFileContent returns content unchanged

    true
    
    normalizePaths?: boolean

    Whether to normalize paths to use forward slashes

    true
    
    preserveAliases?: boolean

    Whether to preserve path aliases instead of resolving to relative paths When true, aliases remain as-is (e.g., @shared/* stays as @shared/*)

    false
    
    tsconfigPath?: string

    Custom tsconfig.json path to use instead of project's tsconfig Useful when project has multiple tsconfigs