@lark-apaas/fullstack-vite-preset 1.0.32-alpha.8 → 1.0.32-beta.0
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.
|
@@ -66,7 +66,7 @@ try {
|
|
|
66
66
|
}),
|
|
67
67
|
}, '*');
|
|
68
68
|
window.parent.postMessage({ type: 'RenderError', data: 'compileError' }, '*');
|
|
69
|
-
} catch (e) {}
|
|
69
|
+
} catch (e) { /* postMessage 失败可安全忽略,如 target origin 不匹配 */ }
|
|
70
70
|
try {
|
|
71
71
|
window.__COMPILE_ERROR__ = error;
|
|
72
72
|
const s = document.createElement('script');
|
package/package.json
CHANGED
|
@@ -583,9 +583,10 @@ if (!window.__VITE_ERROR_OVERLAY_INITIALIZED__) {
|
|
|
583
583
|
const msg = (err.message || '') + (err.frame ? '\n\n' + err.frame : '');
|
|
584
584
|
showCompileError(msg);
|
|
585
585
|
} catch (e) {
|
|
586
|
-
//
|
|
586
|
+
// showCompileError 失败可安全忽略 —— overlay 渲染降级不阻塞后续 setup;
|
|
587
|
+
// 且 SELECTED_LOG postMessage 已在服务端内联 script 里发过,页面日志不会丢
|
|
587
588
|
}
|
|
588
|
-
try { delete window.__COMPILE_ERROR__; } catch (e) {}
|
|
589
|
+
try { delete window.__COMPILE_ERROR__; } catch (e) { /* strict-mode / non-configurable delete 失败可安全忽略,不影响主流程 */ }
|
|
589
590
|
}
|
|
590
591
|
|
|
591
592
|
setupViteHMRListener();
|