@lark-apaas/coding-vite-preset 1.0.15-alpha.5 → 1.0.15-alpha.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-vite-preset",
3
- "version": "1.0.15-alpha.5",
3
+ "version": "1.0.15-alpha.6",
4
4
  "description": "Vite 8 preset for OpenClaw projects",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -520,7 +520,8 @@ if (!window.__VITE_ERROR_OVERLAY_INITIALIZED__) {
520
520
  // 过滤已知常见噪声 (favicon / apple-touch-icon / manifest 等浏览器自动请求),
521
521
  // 避免用户"页面日志"面板被这类无害 404 淹没
522
522
  if (/\/favicon\.(ico|png|svg)|\/apple-touch-icon|\/manifest\.json|\/robots\.txt/.test(url)) return;
523
- handleRuntimeError(new Error('Resource load failed: ' + tag.toLowerCase() + ' ' + url));
523
+ // 资源 404 只上报到页面日志,不 render overlay(避免整页遮盖用户预览)
524
+ logError(['Resource load failed', tag.toLowerCase(), url], 'runtimeError');
524
525
  }
525
526
  }
526
527
  }, true);