mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-01-12 17:13:19 +08:00
flush deferred warnings before writing to stdout
This commit is contained in:
@@ -774,6 +774,9 @@ func rebuildImpl(
|
||||
|
||||
// Stop now if there were errors
|
||||
if !log.HasErrors() {
|
||||
// Flush any deferred warnings now
|
||||
log.AlmostDone()
|
||||
|
||||
if buildOpts.Write {
|
||||
// Special-case writing to stdout
|
||||
if options.WriteToStdout {
|
||||
|
||||
Reference in New Issue
Block a user