GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — prevent writing the same message multiple times to stderr · webpack/webpack@56d8a8f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • ProgressPlugin.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/ProgressPlugin.js‎

Copy file name to clipboardExpand all lines: lib/ProgressPlugin.js
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const schema = require("../schemas/plugins/ProgressPlugin.json");
1212

1313
const createDefaultHandler = profile => {
1414
let lineCaretPosition = 0;
15+
let lastMessage = "";
1516
let lastState;
1617
let lastStateTime;
1718

@@ -52,8 +53,11 @@ const createDefaultHandler = profile => {
5253
lastStateTime = now;
5354
}
5455
}
55-
goToLineStart(msg);
56-
process.stderr.write(msg);
56+
if (lastMessage !== msg) {
57+
goToLineStart(msg);
58+
process.stderr.write(msg);
59+
lastMessage = msg;
60+
}
5761
};
5862

5963
const goToLineStart = nextMessage => {

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.