Skip to content

Commit e28ac96

Browse files
committed
Clarify build.modulePreload in readme
1 parent 1bcd929 commit e28ac96

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ VITE_PRELOAD_MODE=none # or 'link-tag', 'link-header'
536536
> - Uses `rel="modulepreload"` for ES modules
537537
> - Automatically deduplicates URLs to prevent redundant preloads
538538
> - `link-header` mode is reserved for future HTTP/2 header-based preloading
539+
> - Requires Vite's [`build.modulePreload`](https://vite.dev/config/build-options#build-modulepreload) to be enabled (default). If you've disabled it in your Vite config, preloading won't work as import dependencies aren't tracked in the manifest.
539540
540541
**Performance Benefits:**
541542
- Reduces load time by downloading dependencies in parallel

0 commit comments

Comments
 (0)