From a3be30d25c27dfe714432c4c0f8bcf70de97d31e Mon Sep 17 00:00:00 2001 From: Edoardo Cavazza Date: Tue, 9 Oct 2018 06:32:12 +0200 Subject: [PATCH] Remove previous cache from memory after graph creation (#2496) * Remove previous cache from memory after graph creation * Add comment to cache option deletion --- src/rollup/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rollup/index.ts b/src/rollup/index.ts index c17b7598406..0778b468051 100644 --- a/src/rollup/index.ts +++ b/src/rollup/index.ts @@ -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);