Skip to content

Releases: wille/vite-preload

v1.0.3

20 Oct 18:41
Compare
Choose a tag to compare

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

Full Changelog: v1.0.2...v1.0.3

v1.0.2

16 Sep 09:41
Compare
Choose a tag to compare
  • 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

v1.0.1

12 Sep 15:19
Compare
Choose a tag to compare
  • Vite 6 allowed as a peerDependency

v1.0.0

04 Sep 17:19
Compare
Choose a tag to compare

Minimal changes since v0.0.2 but now tested thoroughly in production and considered stable.

v0.0.2

22 Aug 11:59
Compare
Choose a tag to compare
  • Preloads are lined up identical to vite
  • Supports preloading static assets using preloadFonts and preloadAssets
  • CSP nonce support

Publish

18 Aug 20:48
Compare
Choose a tag to compare
Publish Pre-release
Pre-release

First functional release, only effective on prod builds. The objective is to have preloading and inline CSS supported in the developer environment as well.