KC's Workspace
    Preparing search index...

    Type Alias DepOptimizationOptions

    DepOptimizationOptions: DepOptimizationConfig & {
        entries?: string | string[];
        force?: boolean;
    }

    Type Declaration

    • Optionalentries?: string | string[]

      By default, Vite will crawl your index.html to detect dependencies that need to be pre-bundled. If build.rollupOptions.input is specified, Vite will crawl those entry points instead.

      If neither of these fit your needs, you can specify custom entries using this option - the value should be a tinyglobby pattern or array of patterns (https://github.com/SuperchupuDev/tinyglobby) that are relative from vite project root. This will overwrite default entries inference.

    • Optional Experimentalforce?: boolean

      Force dep pre-optimization regardless of whether deps have changed.