From 3357cbfff203fbc0a7ccf20fe7c8bc93f43050fa Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Sun, 19 Apr 2020 23:43:20 -0400 Subject: [PATCH] (optim): no need for separate cacheRoot per format - similarly to the previous commit, it's unnecessary and less performant to have a separate cacheRoot per format - each TS compilation occurs before the format is changed anyway, so at that point in the process, format is irrelevant - builds can now re-use cache from other formats, which resulted in a perf boost during testing --- src/createRollupConfig.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/createRollupConfig.ts b/src/createRollupConfig.ts index a06f5df24..abf5623c4 100644 --- a/src/createRollupConfig.ts +++ b/src/createRollupConfig.ts @@ -146,7 +146,6 @@ export async function createRollupConfig( }, typescript({ typescript: ts, - cacheRoot: `./node_modules/.cache/tsdx/${opts.format}/`, tsconfig: opts.tsconfig, tsconfigDefaults: { exclude: [