Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 4359b3d

Browse files
alan-agius4danbucholtz
authored andcommitted
fix(config): create new file cache if not defined, even on existing context object
1 parent d778857 commit 4359b3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import * as Constants from './constants';
2424
export function generateContext(context?: BuildContext): BuildContext {
2525
if (!context) {
2626
context = {};
27-
context.fileCache = new FileCache();
27+
}
28+
29+
if (!context.fileCache) {
30+
context.fileCache = new FileCache();
2831
}
2932

3033
context.isProd = [

0 commit comments

Comments
 (0)