Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit cf19fae

Browse files
committed
fix(*): don't show exclude warning when only files present, fixes #97
1 parent 53276b0 commit cf19fae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tsconfig-utils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const TSCONFIG_ERROR = colors.red(`\n\n[awesome-typescript-loader] You have \`re
1717
`);
1818

1919
export function tsconfigSuggestions(config: TSConfig) {
20+
let hasOnlyFiles = config.files && !config.filesGlob && !config.exclude;
21+
if (hasOnlyFiles) { return; }
22+
2023
let hasExclude = config.exclude && (
2124
config.exclude.indexOf('node_modules') !== -1
2225
|| config.exclude.indexOf('./node_modules') !== -1

0 commit comments

Comments
 (0)