diff --git a/lib/debug/ProfilingPlugin.js b/lib/debug/ProfilingPlugin.js index a8ba8a2165c..ea65b35905d 100644 --- a/lib/debug/ProfilingPlugin.js +++ b/lib/debug/ProfilingPlugin.js @@ -137,9 +137,7 @@ const createTrace = outputPath => { callback(); }); // Tear down the readable trace stream. - if (trace.destroy) { - trace.destroy(); - } + trace.push(null); } }; };