fix: use compilerOptions.rootDir to filter files (#249)

When compilerOptions.rootDir is specified, it is used instead of process.cwd() to filter files. 

Possible fix for #237
This commit is contained in:
Nicolas THIERION 2020-10-29 16:41:12 +01:00 committed by GitHub
parent 35b04d73ab
commit e9af09fe0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
}