File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 33var webpack = require ( 'webpack' ) ;
44var MemoryFileSystem = require ( 'memory-fs' ) ;
55
6- var outputFileSystem = new MemoryFileSystem ( ) ;
7-
86/**
97 * Basic in memory compiler, promisified
108 * @param testConfig - the plugin config being tested run through the webpack compiler
@@ -13,10 +11,10 @@ var outputFileSystem = new MemoryFileSystem();
1311module . exports = function pack ( testConfig ) {
1412 return new Promise ( function ( resolve , reject ) {
1513 var compiler = webpack ( testConfig ) ;
16- compiler . outputFileSystem = outputFileSystem ;
14+ compiler . outputFileSystem = new MemoryFileSystem ( ) ;
1715 compiler . run ( function ( err , stats ) {
1816 if ( err ) {
19- return reject ( { err : err , stats : stats } ) ;
17+ return reject ( err ) ;
2018 }
2119 return resolve ( stats ) ;
2220 } ) ;
You can’t perform that action at this time.
0 commit comments