@foldkit/vite-plugin 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -20,7 +20,10 @@ const configureServer = (server) => {
20
20
  isHmrReload = false;
21
21
  });
22
22
  };
23
- const handleHotUpdate = ({ server }) => {
23
+ const handleHotUpdate = ({ server, modules, }) => {
24
+ if (modules.length === 0) {
25
+ return;
26
+ }
24
27
  isHmrReload = true;
25
28
  server.ws.send({ type: 'full-reload' });
26
29
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/vite-plugin",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Vite plugin for Foldkit hot module reloading with state preservation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "vite": "^7.0.0"
20
20
  },
21
21
  "devDependencies": {
22
- "typescript": "^5.9.3",
22
+ "typescript": "^6.0.2",
23
23
  "vite": "^7.3.1"
24
24
  },
25
25
  "keywords": [