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

Commit

Permalink
fix(config): create new file cache if not defined, even on existing c…
Browse files Browse the repository at this point in the history
…ontext object
  • Loading branch information
alan-agius4 authored and danbucholtz committed May 2, 2017
1 parent d778857 commit 4359b3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ import * as Constants from './constants';
export function generateContext(context?: BuildContext): BuildContext {
if (!context) {
context = {};
context.fileCache = new FileCache();
}

if (!context.fileCache) {
context.fileCache = new FileCache();
}

context.isProd = [
Expand Down

0 comments on commit 4359b3d

Please sign in to comment.