Skip to content

Commit eec6d37

Browse files
Pass the memory filesystem to the next middleware along with webpackStats
1 parent 610e260 commit eec6d37

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/middleware.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = function wrapper(context) {
1919
return new Promise(((resolve) => {
2020
ready(context, () => {
2121
res.locals.webpackStats = context.webpackStats;
22+
res.locals.fs = context.fs;
2223
resolve(next());
2324
}, req);
2425
}));

test/tests/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ describe('Server', () => {
339339
request(app).get('/foo/bar')
340340
.expect(200, () => {
341341
assert(locals.webpackStats);
342+
assert(locals.fs);
342343
done();
343344
});
344345
});

0 commit comments

Comments
 (0)