Skip to content

Commit ed345fa

Browse files
jamesgeorge007evilebottnawi
authored andcommitted
chore(deps): switch to memfs (#791)
1 parent 2e14b68 commit ed345fa

File tree

3 files changed

+45
-22
lines changed

3 files changed

+45
-22
lines changed

package-lock.json

Lines changed: 41 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"jest-junit": "^8.0.0",
8585
"jquery": "^3.4.1",
8686
"lint-staged": "^9.4.2",
87-
"memory-fs": "^0.4.1",
87+
"memfs": "^3.0.3",
8888
"node-sass": "^4.12.0",
8989
"npm-run-all": "^4.1.5",
9090
"popper.js": "^1.15.0",

test/helpers/compiler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import del from 'del';
77
import path from 'path';
88
import webpack from 'webpack';
9-
import MemoryFS from 'memory-fs';
9+
import { createFsFromVolume, Volume } from 'memfs';
1010

1111
const module = (config) => {
1212
return {
@@ -70,7 +70,8 @@ export default function(fixture, config = {}, options = {}) {
7070
const compiler = webpack(config);
7171

7272
if (!options.output) {
73-
compiler.outputFileSystem = new MemoryFS();
73+
compiler.outputFileSystem = new createFsFromVolume(new Volume()); // eslint-disable-line
74+
compiler.outputFileSystem.join = path.join.bind(path);
7475
}
7576

7677
return new Promise((resolve, reject) =>

0 commit comments

Comments
 (0)