Skip to content

Commit dff39a1

Browse files
Josh Goldberghiroppy
Josh Goldberg
authored andcommitted
fix: directly used mkdirp instead of through Webpack (#436)
Fixes Webpack 5 usage by no longer requiring the removed webpack/lib/node/NodeOutputFileSystem
1 parent c9a5aa5 commit dff39a1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/fs.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ const fs = require('fs');
44
const path = require('path');
55

66
const MemoryFileSystem = require('memory-fs');
7+
const mkdirp = require('mkdirp');
78
const { colors } = require('webpack-log');
8-
const NodeOutputFileSystem = require('webpack/lib/node/NodeOutputFileSystem');
99

1010
const DevMiddlewareError = require('./DevMiddlewareError');
1111

12-
const { mkdirp } = new NodeOutputFileSystem();
13-
1412
module.exports = {
1513
toDisk(context) {
1614
const compilers = context.compiler.compilers || [context.compiler];

package-lock.json

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"dependencies": {
3434
"memory-fs": "^0.4.1",
3535
"mime": "^2.4.2",
36+
"mkdirp": "^0.5.1",
3637
"range-parser": "^1.2.1",
3738
"webpack-log": "^2.0.0"
3839
},

0 commit comments

Comments
 (0)