Skip to content

Commit 89801a4

Browse files
jamesgeorge007yyx990803
authored andcommitted
chore(deps): migrate to memfs (#1627)
1 parent 5943319 commit 89801a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"jsdom": "^11.6.2",
7070
"lint-staged": "^7.0.0",
7171
"markdown-loader": "^2.0.2",
72-
"memory-fs": "^0.4.1",
72+
"memfs": "^3.0.3",
7373
"mini-css-extract-plugin": "^0.4.1",
7474
"node-sass": "^4.7.2",
7575
"normalize-newline": "^3.0.0",

Diff for: test/utils.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const hash = require('hash-sum')
44
const { JSDOM, VirtualConsole } = require('jsdom')
55
const webpack = require('webpack')
66
const merge = require('webpack-merge')
7-
const MemoryFS = require('memory-fs')
7+
const { createFsFromVolume, Volume } = require('memfs')
88

9-
const mfs = new MemoryFS()
9+
const mfs = new createFsFromVolume(new Volume()) // eslint-disable-line
1010
const VueLoaderPlugin = require('../lib/plugin')
1111

1212
const baseConfig = {
@@ -76,6 +76,7 @@ function bundle (options, cb, wontThrowError) {
7676

7777
const webpackCompiler = webpack(config)
7878
webpackCompiler.outputFileSystem = mfs
79+
webpackCompiler.outputFileSystem.join = path.join.bind(path)
7980
webpackCompiler.run((err, stats) => {
8081
const errors = stats.compilation.errors
8182
if (!wontThrowError) {

0 commit comments

Comments
 (0)