Commit 6ded275
1 parent 2ed8c60 commit 6ded275
File tree
5 files changed
+645
-674
lines changed- bin
- scripts
5 files changed
+645
-674
lines changed+13-9
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 26 |
| |
31 | 27 |
| |
32 | 28 |
| |
| |||
436 | 432 |
| |
437 | 433 |
| |
438 | 434 |
| |
439 |
| - | |
| 435 | + | |
440 | 436 |
| |
441 | 437 |
| |
442 | 438 |
| |
443 | 439 |
| |
444 |
| - | |
| 440 | + | |
445 | 441 |
| |
446 | 442 |
| |
447 | 443 |
| |
448 | 444 |
| |
449 |
| - | |
| 445 | + | |
450 | 446 |
| |
451 | 447 |
| |
452 | 448 |
| |
| |||
491 | 487 |
| |
492 | 488 |
| |
493 | 489 |
| |
494 |
| - | |
495 |
| - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
496 | 500 |
| |
497 | 501 |
| |
498 | 502 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
|
+615-660
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+3-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| |||
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 |
| - | |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
114 |
| - | |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
118 | 117 |
| |
119 | 118 |
| |
120 | 119 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + |
6 commit comments
Izhaki commentedon Mar 18, 2019
@evenstensberg
I wonder why the change from
console.log
toconsole.error
in this commit?This change breaks the tests for us and while we can modify the tests, we now have no way to distinguish a real error from a log entry.
Conceptually I can't work out the sense in using
console.error
for what is clearly not an error.Concretely, we have this code:
Followed by:
evenstensberg commentedon Mar 19, 2019
Hi. We did it because when you used
--json
to pipe your arguments to, it would include the console log. @jhnns has some resources on why console.error is the best case hereIzhaki commentedon Mar 20, 2019
OK. So in the case of:
webpack --json > stats.json
Why not disable the
console.log()
?I mean, isn't
--json
a way to request JSON output rather thanconsole.log()
?I also wonder how you got around this in tests? Are you not testing cases where there was an error? Say a bad webpack config?
evenstensberg commentedon Mar 20, 2019
Yeah that would be an option, but in watch, watch will either way output that we’re watching the files, which I want to have there. We changed the tests
Izhaki commentedon Mar 20, 2019
So is this a done deal?
Asking so to know whether to go ahead and update our tests.
evenstensberg commentedon Mar 22, 2019
Yes