Skip to content

Commit

Permalink
fix: directly used mkdirp instead of through Webpack (#436)
Browse files Browse the repository at this point in the history
Fixes Webpack 5 usage by no longer requiring the removed webpack/lib/node/NodeOutputFileSystem
  • Loading branch information
Josh Goldberg authored and hiroppy committed Jul 8, 2019
1 parent c9a5aa5 commit dff39a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/fs.js
Expand Up @@ -4,13 +4,11 @@ const fs = require('fs');
const path = require('path');

const MemoryFileSystem = require('memory-fs');
const mkdirp = require('mkdirp');
const { colors } = require('webpack-log');
const NodeOutputFileSystem = require('webpack/lib/node/NodeOutputFileSystem');

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

const { mkdirp } = new NodeOutputFileSystem();

module.exports = {
toDisk(context) {
const compilers = context.compiler.compilers || [context.compiler];
Expand Down
4 changes: 1 addition & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -33,6 +33,7 @@
"dependencies": {
"memory-fs": "^0.4.1",
"mime": "^2.4.2",
"mkdirp": "^0.5.1",
"range-parser": "^1.2.1",
"webpack-log": "^2.0.0"
},
Expand Down

0 comments on commit dff39a1

Please sign in to comment.