KC's Workspace
    Preparing search index...

    Make all properties in T required

    interface InternalResolveOptions {
        asSrc?: boolean;
        builtins: (string | RegExp)[];
        conditions: string[];
        dedupe: string[];
        extensions: string[];
        external: true | string[];
        externalConditions: string[];
        isBuild: boolean;
        isProduction: boolean;
        isRequire?: boolean;
        mainFields: string[];
        noExternal: string | true | RegExp | (string | RegExp)[];
        packageCache?: PackageCache;
        preferRelative?: boolean;
        preserveSymlinks: boolean;
        root: string;
        scan?: boolean;
        tryIndex?: boolean;
        tryPrefix?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    asSrc?: boolean

    src code mode also attempts the following:

    • resolving /xxx as URLs
    • resolving bare imports from optimized deps
    builtins: (string | RegExp)[]

    Array of strings or regular expressions that indicate what modules are builtin for the environment.

    conditions: string[]
    dedupe: string[]
    extensions: string[]
    ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']
    
    external: true | string[]

    Externalize the given dependencies and their transitive dependencies. Only works in server environments for now. Previously this was ssr.external.

    externalConditions: string[]
    isBuild: boolean
    isProduction: boolean
    isRequire?: boolean
    mainFields: string[]
    ['browser', 'module', 'jsnext:main', 'jsnext']
    
    noExternal: string | true | RegExp | (string | RegExp)[]

    Prevent listed dependencies from being externalized and will get bundled in build. Only works in server environments for now. Previously this was ssr.noExternal.

    packageCache?: PackageCache
    preferRelative?: boolean
    preserveSymlinks: boolean
    false
    
    root: string
    scan?: boolean
    tryIndex?: boolean
    tryPrefix?: string