{"library":"vite-plugin-bundle-prefetch","type":"library","category":null,"description":"Vite plugin that automatically adds <link rel=\"prefetch\"> tags to HTML output for all JavaScript chunks bundled in Vite builds. Current version 0.0.4 (beta, infrequent releases). The plugin scans the output directory for bundles, filters map files and legacy builds, then injects prefetch links into the final index.html. It addresses a gap where Vite's built-in preload only handles initial page loads, not prefetching for later navigation. Differentiates from similar tools like vite-plugin-prefetch by being minimal and focused on bundle-based prefetching. Works only with Vite; no support for rollup standalone or custom SSR pipelines.","language":"javascript","status":"active","version":"0.0.4","tags":["javascript","vite-plugin","prefetch","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-bundle-prefetch","imports":["import prefetchPlugin from 'vite-plugin-bundle-prefetch'","import type { Options } from 'vite-plugin-bundle-prefetch'","import { defineConfig, UserConfig } from 'vite'; \n// then use prefetchPlugin in plugins array"]},{"cmd":"yarn add vite-plugin-bundle-prefetch","imports":[]},{"cmd":"pnpm add vite-plugin-bundle-prefetch","imports":[]}],"homepage":null,"github":"https://github.com/dreambo8563/vite-plugin-bundle-prefetch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-bundle-prefetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}