Skip to content

Commit

Permalink
fix: use native mkdirp replacement to address webpack-dev-middleware …
Browse files Browse the repository at this point in the history
…changes

Fixing `TypeError: localFs.mkdirp is not a function`, caused by the migration from `memfs@3` to `memfs@4` in webpack/webpack-dev-middleware#1693, where `mkdirp` was removed. See: https://github.com/streamich/memfs/releases/tag/v4.2.0

Refs: ztoben#441
  • Loading branch information
Den-dp committed Feb 5, 2025
1 parent 2d438a7 commit e1c7b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/output/createOutputWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = function (options) {
}

if (options.keepInMemory) {
localFs.mkdirp(options.path, mkdirCallback)
localFs.mkdir(options.path, { recursive: true }, mkdirCallback)
} else {
fs.mkdir(options.path, { recursive: true }, mkdirCallback)
}
Expand Down

0 comments on commit e1c7b30

Please sign in to comment.