From 238f4fae0244babd5aa22256bd8fa07eabd0f5b8 Mon Sep 17 00:00:00 2001 From: wille Date: Sun, 20 Oct 2024 20:27:29 +0200 Subject: [PATCH] Release 1.0.3 --- README.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec78f0d..fcf399e 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,11 @@ export default defineConfig({ > [!IMPORTANT] -> Preloading does not show up in development mode. In development mode, Vite will inject CSS using inline style tags on demand, which will always come with some Flash Of Unstyled Content (FOUC). I tried hard but I couldn't find a way to extract the style tags to inline it dev mode to avoid the flash and have a reliable server render testing experience +> Preloading does not show up in development mode. In development mode, Vite will inject CSS using inline style tags on demand, which will always come with some Flash Of Unstyled Content (FOUC). [Read more](https://github.com/wille/vite-preload/pull/1) + +> [!NOTE] +> If some of your modules does not get preloaded, make sure `build.rollupOptions.output.experimentalMinChunkSize` is not set. Rollup might merge chunks so they are not mapped in the manifest and can't be found when calculating what chunks to preload. + --- diff --git a/package-lock.json b/package-lock.json index 0aff9d8..bbbd7a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vite-preload", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vite-preload", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "dependencies": { "@babel/generator": "^7.25.0", diff --git a/package.json b/package.json index c7bffcf..49fe601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-preload", - "version": "1.0.2", + "version": "1.0.3", "description": "Speed up your Vite application by preloading server rendered lazy modules and stylesheets as early as possible", "main": "dist/index.cjs", "module": "dist/index.js",