Skip to content

Commit

Permalink
chore(deps): switch to memfs (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and evilebottnawi committed Jan 10, 2020
1 parent 2e14b68 commit ed345fa
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 22 deletions.
60 changes: 41 additions & 19 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -84,7 +84,7 @@
"jest-junit": "^8.0.0",
"jquery": "^3.4.1",
"lint-staged": "^9.4.2",
"memory-fs": "^0.4.1",
"memfs": "^3.0.3",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"popper.js": "^1.15.0",
Expand Down
5 changes: 3 additions & 2 deletions test/helpers/compiler.js
Expand Up @@ -6,7 +6,7 @@
import del from 'del';
import path from 'path';
import webpack from 'webpack';
import MemoryFS from 'memory-fs';
import { createFsFromVolume, Volume } from 'memfs';

const module = (config) => {
return {
Expand Down Expand Up @@ -70,7 +70,8 @@ export default function(fixture, config = {}, options = {}) {
const compiler = webpack(config);

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

return new Promise((resolve, reject) =>
Expand Down

0 comments on commit ed345fa

Please sign in to comment.