Skip to content

Commit

Permalink
Remove previous cache from memory after graph creation (#2496)
Browse files Browse the repository at this point in the history
* Remove previous cache from memory after graph creation

* Add comment to cache option deletion
  • Loading branch information
edoardocavazza authored and lukastaegert committed Oct 9, 2018
1 parent 137ea94 commit a3be30d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rollup/index.ts
Expand Up @@ -168,6 +168,9 @@ export default function rollup(

const graph = new Graph(inputOptions, curWatcher);
curWatcher = undefined;

// remove the cache option from the memory after graph creation (cache is not used anymore)
delete inputOptions.cache;

timeStart('BUILD', 1);

Expand Down

0 comments on commit a3be30d

Please sign in to comment.