vite-magic-tree-shaking - v1.1.0
    Preparing search index...

    Interface GenerateEntriesOptions

    interface GenerateEntriesOptions {
        warnOnExportsMismatch?: boolean;
        followSymlinks?: boolean;
        exclude?: (relativePath: string) => boolean;
        include?: (relativePath: string) => boolean;
        onCollision?: "error" | "overwrite";
        exports?: Omit<ExportsOptions, "sourceRoot">;
    }
    Index
    warnOnExportsMismatch?: boolean

    When true, compares the generated entries against package.json exports and emits a console.warn if they are out of sync.

    Useful in vite.config.ts to catch forgotten vite-magic generate runs at build/dev time.

    false
    
    followSymlinks?: boolean

    Follow symbolic links that remain inside srcDir.

    false
    
    exclude?: (relativePath: string) => boolean

    Called for files and directories. Return true to exclude the path.

    include?: (relativePath: string) => boolean

    Called for valid source files. Return true to include the file.

    onCollision?: "error" | "overwrite"

    How duplicate entry keys are handled.

    'error'
    
    exports?: Omit<ExportsOptions, "sourceRoot">

    Output contract used by warnOnExportsMismatch.