Commit 89801a46 authored by James George's avatar James George Committed by Evan You

chore(deps): migrate to memfs (#1627)

parent 59433190
......@@ -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 = {
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment