KC's Workspace
    Preparing search index...
    interface ModuleInfo {
        code: string | null;
        dynamicallyImportedIds: string[];
        dynamicImporters: string[];
        exports: string[];
        id: string;
        importedIds: string[];
        importers: string[];
        inputFormat: "es" | "cjs" | "unknown";
        invalidate?: boolean;
        isEntry: boolean;
        meta: CustomPluginOptions;
        moduleSideEffects: ModuleSideEffects;
        packageJsonPath?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    code: string | null

    The source code of the module.

    null if external or not yet available.

    dynamicallyImportedIds: string[]

    The module ids dynamically imported by this module.

    dynamicImporters: string[]

    The ids of all modules that dynamically import this module.

    exports: string[]

    All exported variables

    id: string

    The id of the module for convenience

    importedIds: string[]

    The module ids statically imported by this module.

    importers: string[]

    The ids of all modules that statically import this module.

    inputFormat: "es" | "cjs" | "unknown"

    The detected format of the module, based on both its syntax and module definition metadata (such as package.json type and file extensions like .mjs/.cjs/.mts/.cts).

    • "esm" for ES modules (has import/export statements or is defined as ESM by module metadata)
    • "cjs" for CommonJS modules (uses module.exports, exports, top-level return, or is defined as CommonJS by module metadata)
    • "unknown" when the format could not be determined from either syntax or module definition metadata
    invalidate?: boolean
    isEntry: boolean

    Whether this module is a user- or plugin-defined entry point.

    meta: CustomPluginOptions

    See Custom module meta-data section for more details.

    moduleSideEffects: ModuleSideEffects
    packageJsonPath?: string