bimba-cli 0.7.27 → 0.7.28
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 +1 -1
- package/serve.js +5 -1
package/package.json
CHANGED
package/serve.js
CHANGED
|
@@ -854,6 +854,7 @@ export function serve(entrypoint, flags) {
|
|
|
854
854
|
const list = Array.isArray(errors) ? errors : [errors]
|
|
855
855
|
const signature = errorSignature(list)
|
|
856
856
|
const previous = takeError(display)
|
|
857
|
+
const duplicate = previous?.signature === signature
|
|
857
858
|
|
|
858
859
|
const item = {
|
|
859
860
|
file: display,
|
|
@@ -863,7 +864,10 @@ export function serve(entrypoint, flags) {
|
|
|
863
864
|
time: new Date().toLocaleTimeString('ru-RU', { hour: '2-digit', minute: '2-digit', second: '2-digit' }),
|
|
864
865
|
}
|
|
865
866
|
_activeErrors.set(key, item)
|
|
866
|
-
|
|
867
|
+
|
|
868
|
+
// The terminal is append-only in many real shells. Repeated reports of the
|
|
869
|
+
// same active error update the browser overlay, but must not print again.
|
|
870
|
+
if (duplicate) {
|
|
867
871
|
broadcast({ type: 'error', file: display, time: item.time, errors: item.payload })
|
|
868
872
|
return
|
|
869
873
|
}
|