@spirobel/mininext 0.8.0 → 0.8.1

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.
@@ -56,7 +56,7 @@ export async function buildSkeleton({ stringLiterals, values, root, mini, config
56
56
  headers: { "Content-Type": "application/json; charset=utf-8" },
57
57
  });
58
58
  const hmrReloadScript = `<script>
59
- setInterval(reload, 100);
59
+ setInterval(reload, 1000);
60
60
  async function reload(){
61
61
  try {
62
62
  const res = await fetch("${hmrUrl}");
@@ -202,7 +202,7 @@ export async function hmr(skel, params) {
202
202
  const watcherCode = `
203
203
  import fs from "node:fs";
204
204
  const files=[${escapedPaths}];
205
- files.forEach(f=>fs.watchFile(f,{interval:100},()=>{
205
+ files.forEach(f=>fs.watchFile(f,{interval:1000},()=>{
206
206
  console.log("file changed:",f);
207
207
  process.exit(0);
208
208
  })
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "clean": "rm -rf ./dist"
12
12
  },
13
13
  "files": ["dist"],
14
- "version": "0.8.0",
14
+ "version": "0.8.1",
15
15
  "devDependencies": {
16
16
  "@types/bun": "^1.3.9"
17
17
  },