Releases: wille/vite-preload
Releases · wille/vite-preload
v1.0.3
What's Changed
- Support polyfills https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#modernpolyfills
asyncScript
option to generate an async entry module<script type=module async src=....
. Make sure to not hydrate or render react before DOMContentLoaded- Change preload order so fonts are placed after stylesheets (CSS>Font>Polyfill>Entry>Preloads)
- replace toSorted with sort equivalent (not in-place) by @gwright170 in #1
- Fix preloadFonts and preloadAssets not being picked up for the entry chunk
- Remove
mime
dependency
New Contributors
- @gwright170 made their first contribution in #1
Full Changelog: v1.0.2...v1.0.3
v1.0.2
- Properly allow React 19 RC and Vite 6 beta as peerDependencies
- Introduce
lazy()
- a React.lazy wrapper with preload functionality - Introduce
preloadAll()
to preload React.lazy components on the server to avoid the first request triggering the Suspense fallback
Full Changelog: v1.0.1...v1.0.2