webpack/lib/debug
Sam Saccone 735f99c01b Fix race condition in profiling plugin.
Based on some digging in this git history for the profiling plugin it looks like this commit exacerbated the issue:
883088e

Note, we are calling end() and then writeStream right after we call flush on the trace object
64b514e9bd/lib/trace-event.ts (L123)

The trace object is only calling _push to the writable stream but in no way ensuring that all data that has been pushed has actually been written to the output stream sooo we find ourselves encounter 🐎 [race] conditions.
2018-06-23 11:27:18 -07:00
..
ProfilingPlugin.js Fix race condition in profiling plugin. 2018-06-23 11:27:18 -07:00