{"library":"vite-plugin-preload","type":"library","category":null,"description":"Vite plugin that preloads all JS chunks and CSS stylesheets generated by dynamic imports (e.g., React.lazy) into the HTML entry point. As of v0.7.0, it automatically injects <link rel=\"modulepreload\"> and <link rel=\"stylesheet\"> tags for every chunk produced by code splitting, improving load performance by prefetching before the user navigates. It differs from manual chunking plugins by targeting framework-level lazy imports rather than Rollup's manualChunks. Released at a moderate cadence, it supports Vite 5+, TypeScript types out of the box, and offers options to filter chunks, choose preload vs prefetch mode, and generate a manifest JSON.","language":"javascript","status":"active","version":"0.7.0","tags":["javascript","vite","preload","plugin","bundle","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-preload","imports":["import preload from 'vite-plugin-preload'","import type { PreloadOptions } from 'vite-plugin-preload'","const preload = require('vite-plugin-preload')"]},{"cmd":"yarn add vite-plugin-preload","imports":[]},{"cmd":"pnpm add vite-plugin-preload","imports":[]}],"homepage":null,"github":"https://github.com/jarlef/vite-plugin-preload","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-preload","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}