Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"jsdom": "^11.6.2",
"lint-staged": "^7.0.0",
"markdown-loader": "^2.0.2",
"memory-fs": "^0.4.1",
"memfs": "^3.0.3",
"mini-css-extract-plugin": "^0.4.1",
"node-sass": "^4.7.2",
"normalize-newline": "^3.0.0",
Expand Down
5 changes: 3 additions & 2 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const hash = require('hash-sum')
const { JSDOM, VirtualConsole } = require('jsdom')
const webpack = require('webpack')
const merge = require('webpack-merge')
const MemoryFS = require('memory-fs')
const { createFsFromVolume, Volume } = require('memfs')

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

const baseConfig = {
Expand Down Expand Up @@ -76,6 +76,7 @@ function bundle (options, cb, wontThrowError) {

const webpackCompiler = webpack(config)
webpackCompiler.outputFileSystem = mfs
webpackCompiler.outputFileSystem.join = path.join.bind(path)
webpackCompiler.run((err, stats) => {
const errors = stats.compilation.errors
if (!wontThrowError) {
Expand Down