From 05cc0460d28398ffb4ba01d52c7e75efba0e684a Mon Sep 17 00:00:00 2001 From: Nicolas THIERION Date: Sat, 24 Oct 2020 21:03:46 +0200 Subject: [PATCH] fix: use compilerOptions.rootDir to filter files When compilerOptions.rootDir is specified, it is used instead of process.cwd() to filter files. Possible fix for #237 --- src/get-options-overrides.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get-options-overrides.ts b/src/get-options-overrides.ts index db67db5a..a12f7090 100644 --- a/src/get-options-overrides.ts +++ b/src/get-options-overrides.ts @@ -71,5 +71,5 @@ export function createFilter(context: IContext, pluginOptions: IOptions, parsedC context.debug(() => `included:\n${JSON.stringify(included, undefined, 4)}`); context.debug(() => `excluded:\n${JSON.stringify(excluded, undefined, 4)}`); - return createRollupFilter(included, excluded); + return createRollupFilter(included, excluded, { resolve: parsedConfig.options.rootDir }); }