webpack 4.28.2 → 4.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  const fs = require("fs");
2
+ const path = require("path");
3
+ const mkdirp = require("mkdirp");
2
4
  const { Tracer } = require("chrome-trace-event");
3
5
  const validateOptions = require("schema-utils");
4
6
  const schema = require("../../schemas/plugins/debug/ProfilingPlugin.json");
@@ -93,6 +95,10 @@ const createTrace = outputPath => {
93
95
  noStream: true
94
96
  });
95
97
  const profiler = new Profiler(inspector);
98
+ if (/\/|\\/.test(outputPath)) {
99
+ const dirPath = path.dirname(outputPath);
100
+ mkdirp.sync(dirPath);
101
+ }
96
102
  const fsStream = fs.createWriteStream(outputPath);
97
103
 
98
104
  let counter = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "4.28.2",
3
+ "version": "4.28.3",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",