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

Type declaration

  • Optional entries?: 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 fast-glob pattern or array of patterns (https://github.com/mrmlnc/fast-glob#basic-syntax) that are relative from vite project root. This will overwrite default entries inference.

  • Optional Experimental force?: boolean

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